obj/clothes
DblClick()
usr.handleClothing(src.type,"[src.identifier]")
mob/proc/handleClothing(obj/clothes/C,clothing)
if(!src.vars["[clothing]"])
var/obj/clothes/S = new C()
src.vars["[clothing]"] = S
var/new_color = F_Color_Selector.Get_Color(src)
var/icon/I= icon(S.icon)
I.Blend(new_color)
S.icon = I
src.client.screen += S
src.Overlayers += S
else
src.client.screen -= src.vars["[clothing]"]
src.Overlayers -= src.vars["[clothing]"]
src.vars["[clothing]"] = null
turf
costume
base
c2
icon='CostumeSelect.dmi'
icon_state="c2"
desc = "OK"
Click()
var/mob/Player/M = new()
M.overlays = usr.overlays
M.name = usr.name
M.age =usr.age
for(var/obj/clothes/O in usr.Overlayers)
M.overlays+=O
usr.HUDOverlayRemove()
usr.client.mob = M
M.icon = 'Base.dmi'
M.loc=locate(1,1,1)
del(usr)
Problem description:
When I click the Okay button it brings me to 1,1,1 but the problem is my overlays are messed up. They are "stuck" in the North state. When ever I move any direction it acts like I am moving North. The icon would perform the North moving state, even if I am moving East.