tested fixed tested fixed tested.
This commit is contained in:
@@ -126,19 +126,19 @@ GLOBAL_LIST_EMPTY(PDAs)
|
||||
/obj/item/pda/reskin_obj(mob/M)
|
||||
if(!LAZYLEN(GLOB.pda_reskins))
|
||||
return
|
||||
var/dat = "<b>Reskin options for [name]:</b>\n"
|
||||
var/dat = "<b>Reskin options for [name]:</b>"
|
||||
for(var/V in GLOB.pda_reskins)
|
||||
var/output = icon2html(src, M, "[base_skin][unique_reskin[V]]")
|
||||
dat += "[V]: <span class='reallybig'>[output]</span>\n"
|
||||
var/output = icon2html(icon, M, "[base_skin][GLOB.pda_reskins[V]]")
|
||||
dat += "\n[V]: <span class='reallybig'>[output]</span>"
|
||||
to_chat(M, dat)
|
||||
|
||||
var/choice = input(M,"Choose the a reskin for [src]","Reskin Object") as null|anything in GLOB.pda_reskins
|
||||
if(!QDELETED(src) && choice && !M.incapacitated() && in_range(M,src))
|
||||
if(unique_reskin[choice] == current_skin || isnull(unique_reskin[choice]))
|
||||
return
|
||||
current_skin = unique_reskin[choice]
|
||||
set_new_overlays_offsets()
|
||||
update_icon()
|
||||
var/choice = input(M, "Choose the a reskin for [src]","Reskin Object") as null|anything in GLOB.pda_reskins
|
||||
var/new_skin = GLOB.pda_reskins[choice]
|
||||
if(QDELETED(src) || isnull(new_skin) || new_skin == current_skin || M.incapacitated() || !in_range(M,src))
|
||||
return
|
||||
current_skin = new_skin
|
||||
set_new_overlays_offsets()
|
||||
update_icon()
|
||||
to_chat(M, "[src] is now skinned as '[choice]'.")
|
||||
|
||||
/obj/item/pda/proc/set_new_overlays_offsets()
|
||||
|
||||
@@ -187,7 +187,7 @@
|
||||
desc = "A portable microcomputer by Thinktronic Systems, LTD. This model is a WGW-11 series e-reader."
|
||||
note = "Congratulations, your station has chosen the Thinktronic 5290 WGW-11 Series E-reader and Personal Data Assistant! To help with navigation, we have provided the following definitions. North: Fore. South: Aft. West: Port. East: Starboard. Quarter is either side of aft."
|
||||
silent = TRUE //Quiet in the library!
|
||||
overlays_offsets = list(PDA_SKIN_CLASSIC = list(-3,0))
|
||||
overlays_offsets = list(RESKIN_SUFFIX_CLASSIC = list(-3,0))
|
||||
overlays_x_offset = -3
|
||||
|
||||
/obj/item/pda/clear
|
||||
|
||||
@@ -247,9 +247,8 @@
|
||||
to_chat(M, dat)
|
||||
|
||||
var/choice = input(M, always_reskinnable ? "Choose the a reskin for [src]" : "Warning, you can only reskin [src] once!","Reskin Object") as null|anything in unique_reskin
|
||||
if(!QDELETED(src) && choice && (!current_skin || always_reskinnable) && !M.incapacitated() && in_range(M,src))
|
||||
if(!unique_reskin[choice] || unique_reskin[choice] == current_skin)
|
||||
return
|
||||
current_skin = choice
|
||||
icon_state = unique_reskin[choice]
|
||||
to_chat(M, "[src] is now skinned as '[choice]'.")
|
||||
if(QDELETED(src) || !choice || (current_skin && !always_reskinnable) || M.incapacitated() || !in_range(M,src) || !unique_reskin[choice] || unique_reskin[choice] == current_skin)
|
||||
return
|
||||
current_skin = choice
|
||||
icon_state = unique_reskin[choice]
|
||||
to_chat(M, "[src] is now skinned as '[choice]'.")
|
||||
|
||||
Reference in New Issue
Block a user