mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-21 03:51:49 +01:00
Re-adds the MOTD and adds mechanical support for ports of call. (#18570)
* Re-adds the message of the day. * Re-adds the MOTD and adds mechanical support for ports of call. * sddsds * Destroy it all! * incorrect info * grammar and shit --------- Co-authored-by: Matt Atlas <liermattia@gmail.com>
This commit is contained in:
@@ -236,19 +236,6 @@ var/list/localhost_addresses = list(
|
||||
if ("webint")
|
||||
src.open_webint()
|
||||
|
||||
// Handle the updating of MotD and Memo tabs upon click.
|
||||
if ("updateHashes")
|
||||
var/save = 0
|
||||
if (href_list["#motd-tab"])
|
||||
src.prefs.motd_hash = href_list["#motd-tab"]
|
||||
save = 1
|
||||
if (href_list["#memo-tab"])
|
||||
src.prefs.memo_hash = href_list["#memo-tab"]
|
||||
save = 1
|
||||
|
||||
if (save)
|
||||
src.prefs.save_preferences()
|
||||
|
||||
return
|
||||
|
||||
if (href_list["view_jobban"])
|
||||
|
||||
@@ -7,8 +7,6 @@
|
||||
S["default_slot"] >> pref.default_slot
|
||||
S["toggles"] >> pref.toggles
|
||||
S["sfx_toggles"] >> pref.sfx_toggles
|
||||
S["motd_hash"] >> pref.motd_hash
|
||||
S["memo_hash"] >> pref.memo_hash
|
||||
S["toggles_secondary"] >> pref.toggles_secondary
|
||||
|
||||
/datum/category_item/player_setup_item/player_global/settings/save_preferences(var/savefile/S)
|
||||
@@ -16,8 +14,6 @@
|
||||
S["default_slot"] << pref.default_slot
|
||||
S["toggles"] << pref.toggles
|
||||
S["sfx_toggles"] << pref.sfx_toggles
|
||||
S["motd_hash"] << pref.motd_hash
|
||||
S["memo_hash"] << pref.memo_hash
|
||||
S["toggles_secondary"] << pref.toggles_secondary
|
||||
|
||||
/datum/category_item/player_setup_item/player_global/settings/gather_load_query()
|
||||
@@ -28,8 +24,6 @@
|
||||
"current_character",
|
||||
"toggles",
|
||||
"sfx_toggles",
|
||||
"lastmotd" = "motd_hash",
|
||||
"lastmemo" = "memo_hash",
|
||||
"toggles_secondary"
|
||||
),
|
||||
"args" = list("ckey")
|
||||
@@ -60,8 +54,6 @@
|
||||
"current_character" = pref.current_character,
|
||||
"toggles" = pref.toggles,
|
||||
"sfx_toggles" = pref.sfx_toggles,
|
||||
"lastmotd" = pref.motd_hash,
|
||||
"lastmemo" = pref.memo_hash,
|
||||
"toggles_secondary" = pref.toggles_secondary
|
||||
)
|
||||
|
||||
@@ -74,8 +66,6 @@
|
||||
pref.default_slot = sanitize_integer(text2num(pref.default_slot), 1, GLOB.config.character_slots, initial(pref.default_slot))
|
||||
pref.toggles = sanitize_integer(text2num(pref.toggles), 0, BITFIELDMAX, initial(pref.toggles))
|
||||
pref.sfx_toggles = sanitize_integer(text2num(pref.sfx_toggles), 0, BITFIELDMAX, initial(pref.toggles))
|
||||
pref.motd_hash = sanitize_text(pref.motd_hash, initial(pref.motd_hash))
|
||||
pref.memo_hash = sanitize_text(pref.memo_hash, initial(pref.memo_hash))
|
||||
pref.toggles_secondary = sanitize_integer(text2num(pref.toggles_secondary), 0, BITFIELDMAX, initial(pref.toggles_secondary))
|
||||
|
||||
/datum/category_item/player_setup_item/player_global/settings/content(mob/user)
|
||||
|
||||
@@ -33,8 +33,6 @@ var/list/preferences_datums = list()
|
||||
var/tgui_inputs_swapped = FALSE
|
||||
//Style for popup tooltips
|
||||
var/tooltip_style = "Midnight"
|
||||
var/motd_hash = "" //Hashes for the new server greeting window.
|
||||
var/memo_hash = ""
|
||||
|
||||
//character preferences
|
||||
var/real_name //our character's name
|
||||
|
||||
Reference in New Issue
Block a user