ID:157383
 
Just wondering, do I have to do all the programming for this?



Ex: Button A is pushed, check mark appears, tracker variable A = 1.

Button B is pushed, check mark appears, tracker variable B = 1.

Button A is pushed again, check mark disappears, tracker variable A = 0.



Push "OK" button, procedure checks all tracker variables and runs the block of code those tracker variables belong to.



Is that right?
Try using htmlib and html form demo resources by Dantom.

You can find them here:
http://www.byond.com/developer/Dantom/htmllib
http://www.byond.com/developer/Dantom/FormDemo
In response to Blafblabla
In response to Blafblabla
I'm using interface though, not HTML
In response to Super Saiyan X
Maybe I should clarify:


I realize there are radio buttons on the interface, and am already using them. My question is what is the programming behind it to make it function how it should.


So just read first post for example of what I mean.
In response to Speedro
the buttons take verb commands. So just create a verb, and hide it. you can set the
set(button as text)
set hidden = 1
switch(button)
if("A")
if(!variable_1) variable_1 = 1
else vairbale_1 = 0
if("B")
if(!variable_2) variable_2 = 1
else vairbale_2 = 0

so, the command for the buttons should be;
for button A - set "A"
for button B - set "B"

then for a submit/Okay button, just make it check the variables with another verb.
not sure if this is the best way to do it, but it's what I would do.
of course though, you could just use winget(src,"A","is-chcked) to see if the button is checked in the submit button, and not use a command in the A/B buttons at all.
In response to Super Saiyan X
I knew how to do that already, just making sure it was the right way :p


Also rather than checking if the variable is null and switching vise versa, I think it might be better to do something like "variable a = !variable a", meaning it will switch from true to false and around.