mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-09 16:05:07 +00:00
Fixes esc menu for non widescreen users (#92670)
## About The Pull Request I was originally gonna remove non-widescreen but decided against it, so here's a fix for non-widescreen users to use the escape menu. https://github.com/user-attachments/assets/ac92e346-efd0-4ac3-962b-667e8c8a0f54 ## Why It's Good For The Game This is for the players who play ss13 on their outdated library computers. ## Changelog 🆑 fix: The escape menu now works for non-widescreen users. /🆑
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* hud_owner = */ null,
|
||||
/* escape_menu = */ src,
|
||||
/* button_text = */ "Resume",
|
||||
/* offset = */ list(-136, -260),
|
||||
/* offset = */ list(-136, 30),
|
||||
/* font_size = */ 24,
|
||||
/* on_click_callback = */ CALLBACK(src, PROC_REF(home_resume)),
|
||||
)
|
||||
@@ -18,7 +18,7 @@
|
||||
/* hud_owner = */ null,
|
||||
/* escape_menu = */ src,
|
||||
/* button_text = */ "Character",
|
||||
/* offset = */ list(-171, -262),
|
||||
/* offset = */ list(-171, 28),
|
||||
/* font_size = */ 24,
|
||||
/* on_click_callback = */ CALLBACK(src, PROC_REF(home_open_character_settings)),
|
||||
)
|
||||
@@ -30,7 +30,7 @@
|
||||
/* hud_owner = */ null,
|
||||
/* escape_menu = */ src,
|
||||
/* button_text = */ "Settings",
|
||||
/* offset = */ list(-206, -260),
|
||||
/* offset = */ list(-206, 30),
|
||||
/* font_size = */ 24,
|
||||
/* on_click_callback = */ CALLBACK(src, PROC_REF(home_open_game_settings)),
|
||||
)
|
||||
@@ -42,7 +42,7 @@
|
||||
/* hud_owner = */ null,
|
||||
/* escape_menu = */ src,
|
||||
/* button_text = */ "Admin Help",
|
||||
/* offset = */ list(-241, -260),
|
||||
/* offset = */ list(-241, 30),
|
||||
)
|
||||
)
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
/* hud_owner = */ null,
|
||||
/* escape_menu = */ src,
|
||||
/* button_text = */ "Leave Body",
|
||||
/* offset = */ list(-276, -260),
|
||||
/* offset = */ list(-276, 30),
|
||||
/* font_size = */ 24,
|
||||
/* on_click_callback = */ CALLBACK(src, PROC_REF(open_leave_body)),
|
||||
)
|
||||
@@ -64,7 +64,7 @@
|
||||
/* hud_owner = */ null,
|
||||
"Resources",
|
||||
"Open/Close list of resources",
|
||||
/* pixel_offset = */ list(260, -190),
|
||||
/* button_screen_loc */ "BOTTOM:30,RIGHT:-20",
|
||||
CALLBACK(src, PROC_REF(toggle_resources)),
|
||||
/* button_overlay = */ "resources",
|
||||
))
|
||||
@@ -97,7 +97,7 @@
|
||||
/* hud_owner = */ null,
|
||||
"Report Bug",
|
||||
"Report a bug/issue",
|
||||
/* pixel_offset = */ list(260, -190),
|
||||
/* button_screen_loc */ "BOTTOM:30,RIGHT:-20",
|
||||
CALLBACK(client, TYPE_VERB_REF(/client, reportissue)),
|
||||
/* button_overlay = */ "bug",
|
||||
/* end_point */ offset_order[1],
|
||||
@@ -108,7 +108,7 @@
|
||||
/* hud_owner = */ null,
|
||||
"Github",
|
||||
"Open the repository for the game",
|
||||
/* pixel_offset = */ list(260, -190),
|
||||
/* button_screen_loc */ "BOTTOM:30,RIGHT:-20",
|
||||
CALLBACK(client, TYPE_VERB_REF(/client, github)),
|
||||
/* button_overlay = */ "github",
|
||||
/* end_point */ offset_order[1],
|
||||
@@ -122,7 +122,7 @@
|
||||
/* hud_owner = */ null,
|
||||
"Forums",
|
||||
"Visit the server's forums",
|
||||
/* pixel_offset = */ list(260, -190),
|
||||
/* button_screen_loc */ "BOTTOM:30,RIGHT:-20",
|
||||
CALLBACK(client, TYPE_VERB_REF(/client, forum)),
|
||||
/* button_overlay = */ "forums",
|
||||
/* end_point */ offset_order[1],
|
||||
@@ -136,7 +136,7 @@
|
||||
/* hud_owner = */ null,
|
||||
"Rules",
|
||||
"View the server rules",
|
||||
/* pixel_offset = */ list(260, -190),
|
||||
/* button_screen_loc */ "BOTTOM:30,RIGHT:-20",
|
||||
CALLBACK(client, TYPE_VERB_REF(/client, rules)),
|
||||
/* button_overlay = */ "rules",
|
||||
/* end_point */ offset_order[1],
|
||||
@@ -150,7 +150,7 @@
|
||||
/* hud_owner = */ null,
|
||||
"Wiki",
|
||||
"See the wiki for the game",
|
||||
/* pixel_offset = */ list(260, -190),
|
||||
/* button_screen_loc */ "BOTTOM:30,RIGHT:-20",
|
||||
CALLBACK(client, TYPE_VERB_REF(/client, wiki)),
|
||||
/* button_overlay = */ "wiki",
|
||||
/* end_point */ offset_order[1],
|
||||
@@ -162,7 +162,7 @@
|
||||
/* hud_owner = */ null,
|
||||
"Change Log",
|
||||
"See all changes to the server",
|
||||
/* pixel_offset = */ list(260, -190),
|
||||
/* button_screen_loc */ "BOTTOM:30,RIGHT:-20",
|
||||
CALLBACK(client, TYPE_VERB_REF(/client, changelog)),
|
||||
/* button_overlay = */ "changelog",
|
||||
/* end_point */ offset_order[1],
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
/* hud_owner = */ null,
|
||||
"Back",
|
||||
/* tooltip_text = */ null,
|
||||
/* pixel_offset = */ list(-260, 190),
|
||||
/* button_screen_loc = */ "TOP:-30,LEFT:30",
|
||||
CALLBACK(src, PROC_REF(open_home_page)),
|
||||
/* button_overlay = */ "back",
|
||||
)
|
||||
@@ -25,7 +25,7 @@
|
||||
/* hud_owner = */ null,
|
||||
"Suicide",
|
||||
"Perform a dramatic suicide in game",
|
||||
/* pixel_offset = */ list(-55, -1),
|
||||
/* button_screen_loc = */ "CENTER:-55,CENTER:-1",
|
||||
CALLBACK(src, PROC_REF(leave_suicide)),
|
||||
/* button_overlay = */ dead_clown,
|
||||
))
|
||||
@@ -36,7 +36,7 @@
|
||||
/* hud_owner = */ null,
|
||||
"Ghost",
|
||||
"Exit quietly, leaving your body",
|
||||
/* pixel_offset = */ list(55, -1),
|
||||
/* button_screen_loc = */ "CENTER:55,CENTER:-1",
|
||||
CALLBACK(src, PROC_REF(leave_ghost)),
|
||||
/* button_overlay = */ "ghost",
|
||||
)
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
datum/hud/hud_owner,
|
||||
button_text,
|
||||
tooltip_text,
|
||||
list/pixel_offset,
|
||||
button_screen_loc,
|
||||
on_click_callback,
|
||||
button_overlay,
|
||||
)
|
||||
@@ -24,13 +24,13 @@
|
||||
src.on_click_callback = on_click_callback
|
||||
src.tooltip_text = tooltip_text
|
||||
|
||||
screen_loc = button_screen_loc
|
||||
|
||||
if(button_overlay)
|
||||
add_overlay(button_overlay)
|
||||
if(button_text)
|
||||
add_maptext(button_text)
|
||||
|
||||
screen_loc = "CENTER:[pixel_offset[1]],CENTER:[pixel_offset[2]]"
|
||||
|
||||
/atom/movable/screen/escape_menu/lobby_button/Destroy()
|
||||
on_click_callback = null
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
datum/hud/hud_owner,
|
||||
button_text,
|
||||
tooltip_text,
|
||||
list/pixel_offset,
|
||||
button_screen_loc,
|
||||
on_click_callback,
|
||||
button_overlay,
|
||||
end_point,
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
src.maptext_height = maptext_height * (font_size / 5)
|
||||
|
||||
update_text()
|
||||
screen_loc = "NORTH:[offset[1]],CENTER:[offset[2]]"
|
||||
screen_loc = "NORTH:[offset[1]],WEST:[offset[2]]"
|
||||
|
||||
/atom/movable/screen/escape_menu/text/proc/update_text()
|
||||
SHOULD_CALL_PARENT(TRUE)
|
||||
|
||||
Reference in New Issue
Block a user