Impz0r
Member
|
Question regarding GuiCustom
Hey there,
right now I'm toying around with the gui and its capabilities. There is the possibility to inherit from GuiCustom and build your very own control which is very nice. The thing is, there is no parenting, atleast I'm unable to add other controls als children to GuiCustom control within the GUI Editor.
What I want to achive is the following:
I need some kind of invisible frame where I add all GUI controls for one menu, like Main Menu is build of the root control (the invisible GuiCustom) and its children who build the actual Main Menu.
Is this possible with GuiCustom? Or is there another GUI control i could abuse for such a behavior (maybe the Window control, but how do I not render it but its children?). Btw I tried the Image Control aswell, but it seems there is no parenting either..
PS: I just played abit more with the GUI Editor and now I'm wondering how to set Fonts for specific controls i.e. Button, ComboBox, etc. ? What's the normal way to change the font?
Any thoughts ?
Thanks in advance!
Mfg Imp
(This post was last modified: 05-30-2010 07:13 PM by Impz0r.)
|
|
05-30-2010 05:56 PM |
|
Esenthel
Administrator
|
RE: Question regarding GuiCustom
Hi,
Parenting is supported in Desktop, Window, Region and Tabs objects.
For font of Button, Combobox you need to adjust them in the codes.
inside Button, Combobox, or GUI, classess/objects
I guess its Gui.tds_button?
|
|
05-31-2010 01:12 PM |
|
Impz0r
Member
|
RE: Question regarding GuiCustom
Thank you Esenthel, this was most helpful!
|
|
05-31-2010 02:46 PM |
|