mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-22 11:38:12 +01:00
Fix multiple pref issues (#18083)
* fix tail alyering pref * . * . * . * . * - * return * fix that * write needs save after * urg * ban slot change mid round * - * . * properly save * . * queue to ss * read current * performance * . * . * bit better optimized * no resetsploit * this works at least but is it proper (#13) * this works at least but is it proper * Update changeling.dm * this too... * dont be private * fix asset ss --------- Co-authored-by: C.L. <killer65311@gmail.com>
This commit is contained in:
@@ -136,6 +136,9 @@
|
||||
switch(action)
|
||||
// Basic actions
|
||||
if("load")
|
||||
if(!isnewplayer(ui.user))
|
||||
to_chat(ui.user, span_userdanger("You can't change your character slot while being in round."))
|
||||
return FALSE
|
||||
if(!IsGuestKey(ui.user.key))
|
||||
open_load_dialog(ui.user)
|
||||
. = TRUE
|
||||
@@ -152,6 +155,8 @@
|
||||
sanitize_preferences()
|
||||
. = TRUE
|
||||
if("resetslot")
|
||||
if(!isnewplayer(ui.user))
|
||||
to_chat(ui.user, span_userdanger("You can't change your character slot while being in round."))
|
||||
if("Yes" != tgui_alert(ui.user, "This will reset the current slot. Continue?", "Reset current slot?", list("No", "Yes")))
|
||||
return
|
||||
if("Yes" != tgui_alert(ui.user, "Are you completely sure that you want to reset this character slot?", "Reset current slot?", list("No", "Yes")))
|
||||
@@ -160,6 +165,8 @@
|
||||
sanitize_preferences()
|
||||
. = TRUE
|
||||
if("copy")
|
||||
if(!isnewplayer(ui.user))
|
||||
to_chat(ui.user, span_userdanger("You can't change your character slot while being in round."))
|
||||
if(!IsGuestKey(ui.user.key))
|
||||
open_copy_dialog(ui.user)
|
||||
. = TRUE
|
||||
@@ -192,7 +199,7 @@
|
||||
PMH.screen_loc = LAZYACCESS(preview_screen_locs, "PMH")
|
||||
|
||||
/datum/preferences/tgui_close(mob/user)
|
||||
// save_character()
|
||||
load_character()
|
||||
save_preferences()
|
||||
|
||||
/datum/preferences/proc/create_character_profiles()
|
||||
|
||||
Reference in New Issue
Block a user