obj
SettingsDown
name = "Settings Down"
icon = 'Buttons2.dmi'
screen_loc = "16,3"
icon_state = "down"
layer = MOB_LAYER+999
Click()
usr.client.screen-=new/obj/Sound
usr.client.screen-=new/obj/SettingsDown
usr.settingsopen=0
Settings
name = "Settings"
icon = 'Buttons2.dmi'
screen_loc = "16,1"
icon_state = "settings"
layer = MOB_LAYER+999
Click()
if(usr.settingsopen==0)
usr.client.screen+=new/obj/Sound
usr.client.screen+=new/obj/SettingsDown
usr.settingsopen=1
Problem description:
Hi guys, i'm working on these HUD icons on screen and they work fine all together the only thing is i made this "Settings" icon wich is supposed to when clicked on show some more icons above it for like sound. Now the problem is they do show up but when clicked on another HUD icon they dont disappear.
I tried working with mouse_opasity but that didnt work either. Does someone see the problem in my code?
Thank you,
Chaokai