debug X toggle
This commit is contained in:
parent
db1f8495d8
commit
a3603d824e
3 changed files with 12 additions and 0 deletions
|
|
@ -29,6 +29,7 @@
|
|||
namespace devilution {
|
||||
|
||||
std::optional<CelSprite> pSquareCel;
|
||||
bool DebugToggle = false;
|
||||
bool DebugGodMode = false;
|
||||
bool DebugVision = false;
|
||||
bool DebugCoords = false;
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@
|
|||
namespace devilution {
|
||||
|
||||
extern std::optional<CelSprite> pSquareCel;
|
||||
extern bool DebugToggle;
|
||||
extern bool DebugGodMode;
|
||||
extern bool DebugVision;
|
||||
extern bool DebugCoords;
|
||||
|
|
|
|||
|
|
@ -1508,6 +1508,16 @@ void InitKeymapActions()
|
|||
[] { Players[MyPlayerId].Stop(); },
|
||||
[&]() { return !IsPlayerDead(); },
|
||||
});
|
||||
#ifdef _DEBUG
|
||||
keymapper.AddAction({
|
||||
"DebugToggle",
|
||||
'X',
|
||||
[] {
|
||||
DebugToggle = !DebugToggle;
|
||||
},
|
||||
[&]() { return true; },
|
||||
});
|
||||
#endif
|
||||
}
|
||||
|
||||
void LoadGameFonts()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue