ID:942196
 
I've got an interface made, and I have an input that defaults to the OOC verb in the interface editor, so that everything typed into it in-game prefixes with OOC. I'm sure you know how this works, so here is my problem:

I have a button next to it that I want to toggle the default command from OOC to say. Toggling from OOC to a Local Chat. How would I make this button toggle the default command of the input? Is this code-side or interface-side?

Thanks for any help you may be able to provide.
You can us winset() in code or .winset in the interface, but in this case .winset is the better option. It explains how to use it in the skin reference.
I figured it out. I created a verb that checks a variable telling if OOC was enabled or not, and then sets the MainInput command. The button in the interface simply runs this verb each time it is pressed.

Thanks for the help!