client
MouseEntered(atom/A,location)
if(istype(A,/obj/HUD/Slot1Tab))
var/i=new/obj/HUD/PP1(usr.client)
textfont.QuickText(i, "PP 35/35", layer=FLY_LAYER)
if(istype(A,/obj/HUD/Slot2Tab))
var/i2=new/obj/HUD/PP2(usr.client)
textfont.QuickText(i2, "PP 35/35", layer=FLY_LAYER)
if(istype(A,/obj/HUD/Slot3Tab))
var/i3=new/obj/HUD/PP3(usr.client)
textfont.QuickText(i3, "PP 35/35", layer=FLY_LAYER)
if(istype(A,/obj/HUD/Slot4Tab))
var/i4=new/obj/HUD/PP4(usr.client)
textfont.QuickText(i4, "PP 35/35", layer=FLY_LAYER)
MouseExited()
if(locate(/obj/HUD/PP1) in screen)
del(locate(/obj/HUD/PP1) in screen)
if(locate(/obj/HUD/PP2) in screen)
del(locate(/obj/HUD/PP2) in screen)
if(locate(/obj/HUD/PP3) in screen)
del(locate(/obj/HUD/PP3) in screen)
if(locate(/obj/HUD/PP4) in screen)
del(locate(/obj/HUD/PP4) in screen)
else return
ID:157257
Apr 13 2010, 1:34 pm
|
|
What would be the best way to make the code below more simplified and more efficient?
|
This is just a quickie