ID:1034717
 
(See the best response by Kitsueki.)
I really don't have a clue coding in the interface although I've used tutorial. I basically want to code the buttons to do the same thing as the default BYOND interface. But I am not sure if I'm doing it correctly.. :/

PS: I want it to do the same commands as the default BYOND interface, but I just did some changes to fit my project.

Code:
mob/verb
TextButton()
set hidden=1
if(usr.text_shown)
usr.text_shown=0
winshow(usr,"TextWindow.MainText",0)//Hides the Text
else//If the Info isn't Shown..
usr.text_shown=1
winshow(usr,"TextWindow.MainText",1)

BrowserButton()
set hidden=1
if(usr.browser_shown)
usr.browser_shown=0
winshow(usr,"BrowserWindow.MainBrowser",0)//Hides the Browser
else//If the Browser isn't Shown..
usr.browser_shown=1
winshow(usr,"BrowserWindow.MainBrowser",1)

InfoButton()
set hidden=1
if(usr.info_shown)
usr.info_shown=0
winshow(usr,"InfoWindow.MainInfo",0)//Hides the Info
else//If the Info isn't Shown..
usr.info_shown=1
winshow(usr,"InfoWindow.MainInfo",1)


MacroButton()
set hidden=1
usr.client.command_text=".alt"


Problem description:

Best response
Read over the Skin Reference to find the properties of each type of control and what they effect: http://www.byond.com/docs/ref/skinparams.html

You'll be using winset() to set the properties, something similar to..

winset(src, "control_name", "parameter=value;")


Edit: Zohan was right, I was half asleep typing that.. all nighters, hah.
I believe winshow only shows the window, and hides it.
i think ur probably talking about
winset