File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Client/mods/deathmatch/logic/luadefs Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ void CLuaClientDefs::LoadFunctions()
19
19
{" setTransferBoxVisible" , ArgumentParser<SetTransferBoxVisible>},
20
20
{" isTransferBoxVisible" , ArgumentParser<IsTransferBoxVisible>},
21
21
{" isTransferBoxAlwaysVisible" , ArgumentParser<IsTransferBoxAlwaysVisible>},
22
+
23
+ {" clearDebugBox" , ArgumentParser<ClearDebug>}
22
24
};
23
25
24
26
for (const auto & [name, func] : functions)
@@ -39,3 +41,9 @@ bool CLuaClientDefs::IsTransferBoxAlwaysVisible()
39
41
{
40
42
return g_pClientGame->GetTransferBox ()->IsAlwaysVisible ();
41
43
}
44
+
45
+ bool CLuaClientDefs::ClearDebug ()
46
+ {
47
+ g_pCore->DebugClear ();
48
+ return true ;
49
+ }
Original file line number Diff line number Diff line change @@ -22,4 +22,5 @@ class CLuaClientDefs : public CLuaDefs
22
22
static bool SetTransferBoxVisible (bool visible);
23
23
static bool IsTransferBoxVisible ();
24
24
static bool IsTransferBoxAlwaysVisible ();
25
+ static bool ClearDebug ();
25
26
};
You can’t perform that action at this time.
0 commit comments