mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
remove useless view_variables verb from stat panel (#92040)
## About The Pull Request Make `VV` verb Context Menu only. As it's very annoing when clicked on, because it's forming the list of all atoms in world which causes nasty client freeze. ## Why It's Good For The Game No more accidentally clicking VV when trying to click View Runtimes 😠 ## Changelog 🆑 admin: VV verb is removed from Debug tab. Who is even using it? /🆑
This commit is contained in:
@@ -1,14 +1,11 @@
|
||||
#define ICON_STATE_CHECKED 1 /// this dmi is checked. We don't check this one anymore.
|
||||
#define ICON_STATE_NULL 2 /// this dmi has null-named icon_state, allowing it to show a sprite on vv editor.
|
||||
|
||||
ADMIN_VERB_AND_CONTEXT_MENU(debug_variables, R_NONE, "View Variables", "View the variables of a datum.", ADMIN_CATEGORY_DEBUG, datum/thing in world)
|
||||
ADMIN_VERB_ONLY_CONTEXT_MENU(debug_variables, R_NONE, "View Variables", datum/thing in world)
|
||||
user.debug_variables(thing)
|
||||
// This is kept as a separate proc because admins are able to show VV to non-admins
|
||||
|
||||
/client/proc/debug_variables(datum/thing in world)
|
||||
set category = "Debug"
|
||||
set name = "View Variables"
|
||||
//set src in world
|
||||
/client/proc/debug_variables(datum/thing)
|
||||
var/static/cookieoffset = rand(1, 9999) //to force cookies to reset after the round.
|
||||
|
||||
if(!usr.client || !usr.client.holder) //This is usr because admins can call the proc on other clients, even if they're not admins, to show them VVs.
|
||||
|
||||
Reference in New Issue
Block a user