mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-11 08:06:33 +01:00
21b4095dfd
Upstream 04/17/2026 fixes https://github.com/Bubberstation/Bubberstation/issues/5549 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: tgstation-ci[bot] <179393467+tgstation-ci[bot]@users.noreply.github.com> Co-authored-by: ArcaneMusic <41715314+ArcaneMusic@users.noreply.github.com> Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com> Co-authored-by: Rhials <28870487+Rhials@users.noreply.github.com> Co-authored-by: rageguy505 <54517726+rageguy505@users.noreply.github.com> Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com> Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com> Co-authored-by: Aliceee2ch <160794176+Aliceee2ch@users.noreply.github.com> Co-authored-by: Time-Green <7501474+Time-Green@users.noreply.github.com> Co-authored-by: Tsar-Salat <62388554+Tsar-Salat@users.noreply.github.com> Co-authored-by: SmArtKar <44720187+SmArtKar@users.noreply.github.com> Co-authored-by: Maxipat <108554989+Maxipat112@users.noreply.github.com> Co-authored-by: SyncIt21 <110812394+SyncIt21@users.noreply.github.com> Co-authored-by: deltanedas <39013340+deltanedas@users.noreply.github.com> Co-authored-by: SimplyLogan <47579821+loganuk@users.noreply.github.com> Co-authored-by: loganuk <fakeemail123@aol.com> Co-authored-by: Leland Kemble <70413276+lelandkemble@users.noreply.github.com> Co-authored-by: FalloutFalcon <86381784+FalloutFalcon@users.noreply.github.com> Co-authored-by: Roxy <75404941+TealSeer@users.noreply.github.com> Co-authored-by: Lucy <lucy@absolucy.moe> Co-authored-by: siliconOpossum <138069572+siliconOpossum@users.noreply.github.com> Co-authored-by: Isratosh <Isratosh@hotmail.com> Co-authored-by: TheRyeGuyWhoWillNowDie <70169560+TheRyeGuyWhoWillNowDie@users.noreply.github.com> Co-authored-by: Neocloudy <88008002+Neocloudy@users.noreply.github.com> Co-authored-by: Alexander V. <volas@ya.ru> Co-authored-by: ElGitificador <168473461+ElGitificador@users.noreply.github.com> Co-authored-by: Twaticus <46540570+Twaticus@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Bloop <13398309+vinylspiders@users.noreply.github.com> Co-authored-by: Cameron Lennox <killer65311@gmail.com> Co-authored-by: Tim <timothymtorres@gmail.com> Co-authored-by: Iamgoofball <iamgoofball@gmail.com> Co-authored-by: Layzu666 <121319428+Layzu666@users.noreply.github.com> Co-authored-by: Arturlang <24881678+Arturlang@users.noreply.github.com> Co-authored-by: _0Steven <42909981+00-Steven@users.noreply.github.com> Co-authored-by: mrmanlikesbt <99309552+mrmanlikesbt@users.noreply.github.com> Co-authored-by: Ben10Omintrix <138636438+Ben10Omintrix@users.noreply.github.com> Co-authored-by: John F. Kennedy <54908920+MacaroniCritter@users.noreply.github.com> Co-authored-by: Cursor <102828457+theselfish@users.noreply.github.com> Co-authored-by: Josh <josh.adam.powell@gmail.com> Co-authored-by: Josh Powell <josh.powell@softwire.com> Co-authored-by: Yobrocharlie <Charliemiller5617@gmail.com> Co-authored-by: Hardly3D <66234359+Hardly3D@users.noreply.github.com> Co-authored-by: shayoki <96078776+shayoki@users.noreply.github.com> Co-authored-by: LT3 <83487515+lessthnthree@users.noreply.github.com>
214 lines
6.5 KiB
Plaintext
214 lines
6.5 KiB
Plaintext
/datum/escape_menu/proc/show_home_page()
|
|
page_holder.give_protected_screen_object(give_escape_menu_title())
|
|
page_holder.give_screen_object(
|
|
new /atom/movable/screen/escape_menu/text/clickable(
|
|
null,
|
|
/* hud_owner = */ null,
|
|
/* escape_menu = */ src,
|
|
/* button_text = */ "Resume",
|
|
/* offset = */ list(-136, 30),
|
|
/* font_size = */ 24,
|
|
/* on_click_callback = */ CALLBACK(src, PROC_REF(home_resume)),
|
|
)
|
|
)
|
|
|
|
page_holder.give_screen_object(
|
|
new /atom/movable/screen/escape_menu/text/clickable(
|
|
null,
|
|
/* hud_owner = */ null,
|
|
/* escape_menu = */ src,
|
|
/* button_text = */ "Character",
|
|
/* offset = */ list(-171, 28),
|
|
/* font_size = */ 24,
|
|
/* on_click_callback = */ CALLBACK(src, PROC_REF(home_open_character_settings)),
|
|
)
|
|
)
|
|
|
|
page_holder.give_screen_object(
|
|
new /atom/movable/screen/escape_menu/text/clickable(
|
|
null,
|
|
/* hud_owner = */ null,
|
|
/* escape_menu = */ src,
|
|
/* button_text = */ "Settings",
|
|
/* offset = */ list(-206, 30),
|
|
/* font_size = */ 24,
|
|
/* on_click_callback = */ CALLBACK(src, PROC_REF(home_open_game_settings)),
|
|
)
|
|
)
|
|
|
|
page_holder.give_screen_object(
|
|
new /atom/movable/screen/escape_menu/text/clickable/admin_ticket_notification(
|
|
null,
|
|
/* hud_owner = */ null,
|
|
/* escape_menu = */ src,
|
|
/* button_text = */ "Admin Help",
|
|
/* offset = */ list(-241, 30),
|
|
/* font_size = */ 24,
|
|
/* on_click_callback = */ CALLBACK(src, PROC_REF(open_admin_page)),
|
|
)
|
|
)
|
|
|
|
page_holder.give_screen_object(
|
|
new /atom/movable/screen/escape_menu/text/clickable/leave_body(
|
|
null,
|
|
/* hud_owner = */ null,
|
|
/* escape_menu = */ src,
|
|
/* button_text = */ "Leave Body",
|
|
/* offset = */ list(-276, 30),
|
|
/* font_size = */ 24,
|
|
/* on_click_callback = */ CALLBACK(src, PROC_REF(open_leave_body)),
|
|
)
|
|
)
|
|
|
|
page_holder.give_screen_object(
|
|
new /atom/movable/screen/escape_menu/text/clickable(
|
|
null,
|
|
/* hud_owner = */ null,
|
|
/* escape_menu = */ src,
|
|
/* button_text = */ "Quit",
|
|
/* offset = */ list(-311, 30),
|
|
/* font_size = */ 24,
|
|
/* on_click_callback = */ CALLBACK(src, PROC_REF(quit_game_prompt)),
|
|
)
|
|
)
|
|
|
|
//Bottom right buttons, from right to left, starting with the button to open the list.
|
|
page_holder.give_screen_object(new /atom/movable/screen/escape_menu/lobby_button/small(
|
|
null,
|
|
/* hud_owner = */ null,
|
|
"Resources",
|
|
"Open/Close list of resources",
|
|
/* button_screen_loc */ "BOTTOM:30,RIGHT:-20",
|
|
CALLBACK(src, PROC_REF(toggle_resources)),
|
|
/* button_overlay = */ "resources",
|
|
))
|
|
|
|
/datum/escape_menu/proc/toggle_resources()
|
|
show_resources = !show_resources
|
|
if(!show_resources)
|
|
//collapsing it
|
|
for(var/atom/movable/screen/escape_menu/lobby_button/small/collapsible/button as anything in resource_panels)
|
|
button.collapse(page_holder)
|
|
resource_panels.Cut()
|
|
return
|
|
//list of offsets we give, so missing icons don't leave a random gap.
|
|
var/list/offset_order = list(
|
|
-60,
|
|
-120,
|
|
-180,
|
|
-240,
|
|
-300,
|
|
-360,
|
|
-420,
|
|
-480,
|
|
)
|
|
resource_panels = list()
|
|
|
|
var/githuburl = CONFIG_GET(string/githuburl)
|
|
if(githuburl)
|
|
resource_panels += page_holder.give_screen_object(new /atom/movable/screen/escape_menu/lobby_button/small/collapsible(
|
|
null,
|
|
/* hud_owner = */ null,
|
|
"Report Bug",
|
|
"Report a bug/issue",
|
|
/* button_screen_loc */ "BOTTOM:30,RIGHT:-20",
|
|
CALLBACK(client, TYPE_VERB_REF(/client, reportissue)),
|
|
/* button_overlay = */ "bug",
|
|
/* end_point */ offset_order[1],
|
|
))
|
|
offset_order -= offset_order[1]
|
|
resource_panels += page_holder.give_screen_object(new /atom/movable/screen/escape_menu/lobby_button/small/collapsible(
|
|
null,
|
|
/* hud_owner = */ null,
|
|
"Github",
|
|
"Open the repository for the game",
|
|
/* button_screen_loc */ "BOTTOM:30,RIGHT:-20",
|
|
CALLBACK(client, TYPE_VERB_REF(/client, github)),
|
|
/* button_overlay = */ "github",
|
|
/* end_point */ offset_order[1],
|
|
))
|
|
offset_order -= offset_order[1]
|
|
|
|
var/forumurl = CONFIG_GET(string/forumurl)
|
|
if(forumurl)
|
|
resource_panels += page_holder.give_screen_object(new /atom/movable/screen/escape_menu/lobby_button/small/collapsible(
|
|
null,
|
|
/* hud_owner = */ null,
|
|
"Forums",
|
|
"Visit the server's forums",
|
|
/* button_screen_loc */ "BOTTOM:30,RIGHT:-20",
|
|
CALLBACK(client, TYPE_VERB_REF(/client, forum)),
|
|
/* button_overlay = */ "forums",
|
|
/* end_point */ offset_order[1],
|
|
))
|
|
offset_order -= offset_order[1]
|
|
|
|
var/rulesurl = CONFIG_GET(string/rulesurl)
|
|
if(rulesurl)
|
|
resource_panels += page_holder.give_screen_object(new /atom/movable/screen/escape_menu/lobby_button/small/collapsible(
|
|
null,
|
|
/* hud_owner = */ null,
|
|
"Rules",
|
|
"View the server rules",
|
|
/* button_screen_loc */ "BOTTOM:30,RIGHT:-20",
|
|
CALLBACK(client, TYPE_VERB_REF(/client, rules)),
|
|
/* button_overlay = */ "rules",
|
|
/* end_point */ offset_order[1],
|
|
))
|
|
offset_order -= offset_order[1]
|
|
|
|
var/wikiurl = CONFIG_GET(string/wikiurl)
|
|
if(wikiurl)
|
|
resource_panels += page_holder.give_screen_object(new /atom/movable/screen/escape_menu/lobby_button/small/collapsible(
|
|
null,
|
|
/* hud_owner = */ null,
|
|
"Wiki",
|
|
"See the wiki for the game",
|
|
/* button_screen_loc */ "BOTTOM:30,RIGHT:-20",
|
|
CALLBACK(client, TYPE_VERB_REF(/client, wiki)),
|
|
/* button_overlay = */ "wiki",
|
|
/* end_point */ offset_order[1],
|
|
))
|
|
offset_order -= offset_order[1]
|
|
|
|
var/configurl = CONFIG_GET(string/configurl)
|
|
if(configurl)
|
|
resource_panels += page_holder.give_screen_object(new /atom/movable/screen/escape_menu/lobby_button/small/collapsible(
|
|
null,
|
|
/* hud_owner = */ null,
|
|
"Config",
|
|
"View the server configuration files",
|
|
/* button_screen_loc */ "BOTTOM:30,RIGHT:-20",
|
|
CALLBACK(client, TYPE_VERB_REF(/client, config)),
|
|
/* button_overlay = */ "config",
|
|
/* end_point */ offset_order[1],
|
|
))
|
|
offset_order -= offset_order[1]
|
|
|
|
resource_panels += page_holder.give_screen_object(new /atom/movable/screen/escape_menu/lobby_button/small/collapsible(
|
|
null,
|
|
/* hud_owner = */ null,
|
|
"Change Log",
|
|
"See all changes to the server",
|
|
/* button_screen_loc */ "BOTTOM:30,RIGHT:-20",
|
|
CALLBACK(client, TYPE_VERB_REF(/client, changelog)),
|
|
/* button_overlay = */ "changelog",
|
|
/* end_point */ offset_order[1],
|
|
))
|
|
|
|
/datum/escape_menu/proc/home_resume()
|
|
qdel(src)
|
|
|
|
/datum/escape_menu/proc/home_open_character_settings()
|
|
client?.prefs.current_window = PREFERENCE_TAB_CHARACTER_PREFERENCES
|
|
client?.prefs.update_static_data(client?.mob)
|
|
client?.prefs.ui_interact(client?.mob)
|
|
qdel(src)
|
|
|
|
/datum/escape_menu/proc/home_open_game_settings()
|
|
client?.prefs.current_window = PREFERENCE_TAB_GAME_PREFERENCES
|
|
client?.prefs.update_static_data(client?.mob)
|
|
client?.prefs.ui_interact(client?.mob)
|
|
qdel(src)
|
|
|