Author Topic: More help on the GUI  (Read 11367 times)

Sorry I got confused when you added the getValue to the variables, that won't work. Just write it as $StartingAmmoPlaceHolder = $StartingAmmo; instead.

Quite alright, but that is what broke it before, no matter how I wrote the expression, the value of starting ammo would be changed to that of startingammoplaceholder which was always 0...

If i used the getvalue code, everything would come out ok(except tons of console spam, im looking into that tho), but it would display the message a ton of times.


screw it that's not really necessary, how would i script the radio buttons?
« Last Edit: October 05, 2014, 11:40:45 PM by zombekillz »


Radio Buttons?

they are the ones where only one can be selected at once, an example would be shader levels in the options gui.

Uhh it should be the same as the getValue you just have to add a thing that deselects the other options.

Uhh it should be the same as the getValue you just have to add a thing that deselects the other options.
This is wrong.

Just set the groupNum to the same number on all the GuiRadioCtrls that you want. Only one control of that groupNum will be able to be selected at a time.

What about the scripting of the buttons, it doesn't seem to work the same way as the checkbox's scripts, using getvalue and all.

What about the scripting of the buttons, it doesn't seem to work the same way as the checkbox's scripts, using getvalue and all.
getValue does work for GuiRadioCtrls. And if you want something to happen when the button is clicked, just put the function in the command box.

Thanks, I guess I just need to experiment more with it.