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:
You'll be using winset() to set the properties, something similar to..
Edit: Zohan was right, I was half asleep typing that.. all nighters, hah.