mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 20:45:28 +01:00
[MIRROR] You no longer need to hold shift to open the context menu as a ghost (#3122)
* You no longer need to hold shift to open the context menu as a ghost (#56646) * You no longer need to hold shift to open the context menu as a ghost Co-authored-by: Qustinnus <Floydje123@hotmail.com>
This commit is contained in:
@@ -215,6 +215,8 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
|
||||
// Instantiate tgui panel
|
||||
tgui_panel = new(src)
|
||||
|
||||
set_right_click_menu_mode(TRUE)
|
||||
|
||||
GLOB.ahelp_tickets.ClientLogin(src)
|
||||
GLOB.interviews.client_login(src)
|
||||
var/connecting_admin = FALSE //because de-admined admins connecting should be treated like admins.
|
||||
@@ -1116,3 +1118,14 @@ GLOBAL_LIST_INIT(blacklisted_builds, list(
|
||||
if(holder)
|
||||
holder.filteriffic = new /datum/filter_editor(in_atom)
|
||||
holder.filteriffic.ui_interact(mob)
|
||||
|
||||
|
||||
/client/proc/set_right_click_menu_mode(shift_only)
|
||||
if(shift_only)
|
||||
winset(src, "mapwindow.map", "right-click=true")
|
||||
winset(src, "ShiftUp", "is-disabled=false")
|
||||
winset(src, "Shift", "is-disabled=false")
|
||||
else
|
||||
winset(src, "mapwindow.map", "right-click=false")
|
||||
winset(src, "default.Shift", "is-disabled=true")
|
||||
winset(src, "default.ShiftUp", "is-disabled=true")
|
||||
|
||||
Reference in New Issue
Block a user