obj/Hud
Skilltreebutton
icon = 'Pack.dmi'
icon_state="T"
layer = MOB_LAYER+900000
screen_loc="4,1"
Click()
usr.SkillTree()
mob/verb
closeHud()
src.client.screen-=new/obj/Hud/Skilltreebutton
mob/verb
OpenHud()
src.client.screen+=new/obj/Hud/Skilltreebutton
Problem description:I Need it so when the Interface Button Is Clicked it will Hit Closehud And Close the Hud but i trying with verb to make it work but when hit close hud it wont take it off the screen
Also, adding gigantic values to something's layer can cause undesired results. Stick to reasonable values. You can use decimal values (like 2.5) if needed.