mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
[MIRROR] Add a type annotation to represent proc paths (#4799)
* Merge pull request #43029 from AutomaticFrenzy/patch/procpath Add a type annotation to represent proc paths * Add a type annotation to represent proc paths * Update yogstation.dme
This commit is contained in:
committed by
monster860
parent
79533c702b
commit
95aef41edb
@@ -65,10 +65,10 @@ GLOBAL_LIST_EMPTY(menulist)
|
||||
|
||||
|
||||
/datum/verbs/menu/Icon/Load_checked(client/C) //So we can be lazy, we invoke the "checked" menu item on menu load.
|
||||
var/atom/verb/verbpath = Get_checked(C)
|
||||
var/procpath/verbpath = Get_checked(C)
|
||||
if (!verbpath || !(verbpath in typesof("[type]/verb")))
|
||||
return
|
||||
|
||||
|
||||
if (copytext(verbpath.name,1,2) == "@")
|
||||
winset(C, null, list2params(list("command" = copytext(verbpath.name,2))))
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user