Is there any layer concept in tonegodGUI?

Is there any layer concept like the nifty-layer but in tonegodGUI?
because i want to hide a layer from the beginning in my game, then use a button to control its’ show/hide.

thanks.

Hi there,

elements can be hidden with the hide() method, or I suppose you can set its z location on the GUI node

Hiding it will usually work just fine

@chankahou said: Is there any layer concept like the nifty-layer but in tonegodGUI? because i want to hide a layer from the beginning in my game, then use a button to control its' show/hide.

thanks.

There can be…

You can use the following flag on Element to remove it’s render component and use it as a container only:

[java]
Element.setAsContainerOnly();
[/java]

Set them to the screen dimensions and you have full-screen layers. However, I don’t think the library currently reorder’s child element z-order based on user selection.

I would also look at AppState as an alternative for this concept:

initialize = show the related components
cleanup = hide the related components

Like suggested in the post above.

Thanks all,

I got it,
I want to ask more about how to set an element with its component is default hidden in *.gui.xml file ?

@chankahou said: Thanks all,

I got it,
I want to ask more about how to set an element with its component is default hidden in *.gui.xml file ?

Sorry about the delay here. Been rather ill today.

I think you could use a method tag to call setIsVisible, but I’ll need to check and test it tomorrow morning.

Thanks,

one more question:
how to define a tab-group with some tabs in xml.

Take care of yourself.

@chankahou said: Thanks,

one more question:
how to define a tab-group with some tabs in xml.

Take care of yourself.

That is a darn good question =)

I have no clue atm… need to go try and figure it out. I swear I am usually not this lame… but I wrote the layout parser and have never used it aside from in a test or 2… which means it is probably missing a control or 3.

Thanks you,

These problem I solved in java init()…