mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Recast: allow closing the testcase window
If the testcase window was opened, there was no way to close it without opening a test case. This patch allows you to toggle it.
This commit is contained in:
parent
f843c69672
commit
6fd9a5b936
@ -546,9 +546,11 @@ int not_main(int argc, char** argv)
|
|||||||
}
|
}
|
||||||
else if (event.key.keysym.sym == SDLK_t)
|
else if (event.key.keysym.sym == SDLK_t)
|
||||||
{
|
{
|
||||||
showLevels = false;
|
showLevels ^= false;
|
||||||
showEditor = false;
|
showEditor ^= false;
|
||||||
showTestCases = true;
|
showTestCases ^= true;
|
||||||
|
|
||||||
|
if (showTestCases)
|
||||||
scanDirectory(testCasesFolder, ".txt", files);
|
scanDirectory(testCasesFolder, ".txt", files);
|
||||||
}
|
}
|
||||||
else if (event.key.keysym.sym == SDLK_TAB)
|
else if (event.key.keysym.sym == SDLK_TAB)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user