ID:157594
 
How do I go about using pushbuttons in my skin to toggle the input setting for my output (Ex. OOC and Say). I understand how to set up the initial verb but I want to be able to toggle it with skin buttons. Please help any way possible, and thanks!
Try using the winset proc...
Here is the link of reference: http://www.byond.com/ members/?command=reference&path=proc%2Fwinset
In response to Twinsen99
guess i should have read more than 33% of the refrence... Thanks!
In response to Darkjohn66
Sorry but still having issues with this. Whatever I type into my Input box comes in the output with whatever I type.
My button is called btnsay that I push, my output is called output1 and is set to default, my input is called input1 and is set to default.
mob
verb
btnsay()
set hidden = 1
winset(usr, "default.input1", "command=\"Talk_With_Icon")

mob/verb/Talk_With_Icon(Msg as text)
set hidden = 1
view() << "\icon[usr] [usr] says, '[Msg]'"

....yeah !_!. I cant get this to work.

Edit- Ill keep searching byond and trying diff methods :)
In response to Darkjohn66
Please get into more detail with this so I can help you.
In response to Ssj4justdale
basically changing the set command on a skin item with a button.
In response to Darkjohn66
Ok so for example, [OOCBUTTON] and you click it and it switches to [SAYBUTTON]?