mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 03:27:05 +01:00
Fixes some issues with TGUI Alerts, and Text Input (#24282)
* Well... maybe that's not better way * PDA and all_channels encryptionkey * Alert fixes * Bad style
This commit is contained in:
@@ -67,7 +67,7 @@ GLOBAL_DATUM_INIT(ghost_hud_panel, /datum/ui_module/ghost_hud_panel, new)
|
||||
// Check if this is the first time they're turning on Antag HUD.
|
||||
if(!check_rights(R_ADMIN | R_MOD, FALSE) && !ghost.is_roundstart_observer() && GLOB.configuration.general.restrict_antag_hud_rejoin && !ghost.has_ahudded())
|
||||
var/response = tgui_alert(ghost, "If you turn this on, you will not be able to take any part in the round.", "Are you sure you want to enable antag HUD?", list("Yes", "No"))
|
||||
if(response == "No")
|
||||
if(response != "Yes")
|
||||
return FALSE
|
||||
|
||||
ghost.can_reenter_corpse = FALSE
|
||||
|
||||
@@ -123,7 +123,7 @@
|
||||
data["max_length"] = max_length
|
||||
data["message"] = message
|
||||
data["multiline"] = multiline
|
||||
data["placeholder"] = default // Default is a reserved keyword
|
||||
data["placeholder"] = html_decode(default) // Default is a reserved keyword
|
||||
data["large_buttons"] = user.client?.prefs?.toggles2 & PREFTOGGLE_2_LARGE_INPUT_BUTTONS
|
||||
data["swapped_buttons"] = user.client?.prefs?.toggles2 & PREFTOGGLE_2_SWAP_INPUT_BUTTONS
|
||||
data["title"] = title
|
||||
|
||||
Reference in New Issue
Block a user