-
-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Bokkiewokkie <[email protected]>
- Loading branch information
1 parent
6c3121c
commit f69a9dd
Showing
5 changed files
with
100 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,21 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
|
||
{ | ||
"type": "byond", | ||
"request": "launch", | ||
"name": "Launch DreamSeeker", | ||
"preLaunchTask": "Build All", | ||
"dmb": "${workspaceFolder}/${command:CurrentDMB}" | ||
} | ||
}, | ||
{ | ||
"type": "byond", | ||
"request": "launch", | ||
"name": "Launch DreamDaemon", | ||
"preLaunchTask": "Build All", | ||
"dmb": "${workspaceFolder}/${command:CurrentDMB}", | ||
"dreamDaemon": true | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
//This file depends on #define MACROTEST. Otherwise it is not included. | ||
|
||
#warn !!UNSAFE!!: MacroTest Verbs Enabled, Do Not Merge. | ||
/client | ||
var/x_mt_watchingfocus = FALSE | ||
var/x_mt_winmon_enabled = FALSE | ||
var/list/x_mt_winmon_packet //Lazylist | ||
|
||
/// Dumps the list of all macros. This should almost always be just default | ||
/client/verb/dump_macroset_ids() | ||
set name = "mt Dump Macroset IDs" | ||
set category = "_MACRO_TEST" | ||
to_chat(usr, (winget(src, "", "macros") || "NULL (Bad. Incredibly. Incredibly bad.)")) | ||
return | ||
|
||
/// List all children of default. Name for macros is their bound key. | ||
/client/verb/dump_set() | ||
set name = "mt Dump bindings" | ||
set category = "_MACRO_TEST" | ||
to_chat(usr, (winget(src, "default.*" , "name")|| "NULL (Bad. Real bad.)")) | ||
|
||
/// A slightly more pleasant way to execute free wingets. | ||
/client/verb/arbitrary_winget(cmd as text) | ||
set name = "awing" | ||
set desc = "Run an arbitrary Winset call, Space-separated arguments." | ||
set category = "_MACRO_TEST" | ||
var/list/parts = splittext(cmd, " ") | ||
to_chat(usr, (winget(src, parts[1], parts[2]) || "NULL (Bad Call?)")) | ||
|
||
/// A slightly more pleasant way to execute free winsets. | ||
/client/verb/arbitrary_winset(cmd as text) | ||
set name = "aswin" | ||
set desc = "Run an arbitrary Winset call, Space-separated arguments." | ||
set category = "_MACRO_TEST" | ||
var/list/parts = splittext(cmd, " ") | ||
winset(src, parts[1], parts[2]) | ||
to_chat(usr, ("CALLED: winset({client:[src.ckey]}, \"[parts[1]]\",\"[parts[2]]\")")) | ||
|
||
/// Will dump the currently focused skin element to chat. Used for tracking down focus juggling issues. | ||
/client/verb/focuswatch() | ||
set name = "mt toggle focus watch" | ||
set category = "_MACRO_TEST" | ||
if(x_mt_watchingfocus) | ||
x_mt_watchingfocus = FALSE | ||
return | ||
else | ||
x_mt_watchingfocus = TRUE | ||
while(x_mt_watchingfocus) | ||
// Live-report the element with focus. | ||
to_chat(usr, (winget(src, "", "focus") || "NULL (Entire game defocused?)")) | ||
sleep(0.5 SECONDS) //Every half second | ||
|
||
/client/verb/winmon(cmd as text|null) | ||
set name = "winmon" | ||
set desc = "Repeatedly run a winget to monitor it's value" | ||
set category = "_MACRO_TEST" | ||
if(x_mt_winmon_enabled || isnull(cmd)) | ||
x_mt_winmon_enabled = FALSE | ||
return | ||
else | ||
x_mt_winmon_enabled = TRUE | ||
var/list/parts = splittext(cmd, " ") | ||
x_mt_winmon_packet = parts | ||
while(x_mt_winmon_enabled) | ||
// Repeatedly rerun the same winget to watch the value | ||
var/winout = winget(src, x_mt_winmon_packet[1], x_mt_winmon_packet[2]) | ||
to_chat(usr, ( winout ? "WINMON:[winout]": "WINMON: NULL (Bad Call?)")) | ||
sleep(0.5 SECONDS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters