|
UI question about action
Hey, take a look at this code
itemDef
{
name createserver
group playbuttons
text @MENUS_CREATE
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 0 200 130 24
font 3
textscale 0.8
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 0
textalignx 65
backcolor 0 0 0 0
forecolor 0.7 0.7 0.7 1
visible 0
action
{
play "sound/weapons/saber/saberhup1.mp3" ;
show grpsettings_createserver ;
show humanbotfield ;
show humanbotnonfield ;
}
}
Now my item is such that if I click on the Create Server button, it unhides grpsettings_createserver, humanbotfield and humanbotnonfield. Can I define my item such that if I click another time on it, instead of, showing grpsettings_createserver, humanbotfield and humanbotnonfield, it will hide them instead?
|