Confirmedusers
13,514
edits
Ninjanomnom (talk | contribs) m (Double checked information and added version) |
Mirotworez (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
{{GameVersion|1.15}} | {{GameVersion|1.15}} | ||
<languages/><translate> | |||
Creating good graphical user interfaces is a challenging task - sometimes even the largest of companies mess it up. | Creating good graphical user interfaces is a challenging task - sometimes even the largest of companies mess it up. | ||
Line 43: | Line 43: | ||
This is the component that builds and manages your GUI elements for you. You can create a composer via the client api: <code>capi.Gui.CreateCompo(dialogName, bounds)</code>. You have to supply it with a unique identifier and the overall dialog bounds. Once you have a GUIComposer instance you can chain-add elements. Here's a small example: | This is the component that builds and manages your GUI elements for you. You can create a composer via the client api: <code>capi.Gui.CreateCompo(dialogName, bounds)</code>. You have to supply it with a unique identifier and the overall dialog bounds. Once you have a GUIComposer instance you can chain-add elements. Here's a small example: | ||
</translate> | |||
<syntaxhighlight lang="c#"> | <syntaxhighlight lang="c#"> | ||
private void SetupDialog() | private void SetupDialog() |