(changes 07:51 22.02.2024):
- Move Format into a Task - Implement Debugging Option into Settings
This commit is contained in:
parent
0092edf54f
commit
3a77cd0687
7
.vscode/launch.json
vendored
7
.vscode/launch.json
vendored
@ -1,13 +1,6 @@
|
||||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Format Code",
|
||||
"type": "debugpy",
|
||||
"request": "launch",
|
||||
"program": "${workspaceFolder}/clang-format.py",
|
||||
"cwd": "${workspaceFolder}"
|
||||
},
|
||||
{
|
||||
"name": "(gdb) Launch",
|
||||
"type": "cppdbg",
|
||||
|
14
.vscode/tasks.json
vendored
14
.vscode/tasks.json
vendored
@ -18,6 +18,20 @@
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Format",
|
||||
"command": "python ${workspaceFolder}/clang-format.py",
|
||||
"type": "shell",
|
||||
"options": {
|
||||
"cwd": "${workspaceFolder}/"
|
||||
},
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "new",
|
||||
"focus": true
|
||||
},
|
||||
"problemMatcher": []
|
||||
}
|
||||
]
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
# <img alt="LOGO" src="https://github.com/NPI-D7/RenderD7/raw/main/logo.png" height="90">
|
||||
# <img alt="LOGO" src="https://dev.npid7.de/tobid7/RenderD7/raw/branch/main/logo.png" height="90">
|
||||
# RenderD7 as Submodule (0.9.5+)
|
||||
To use RenderD7 just use this command: `git submodule add https://github.com/NPI-D7/RenderD7` and add `-b v0.9.5` for example for a specific version.
|
||||
|
||||
|
@ -26,6 +26,7 @@ void Deinit();
|
||||
void Update();
|
||||
float GetTime();
|
||||
float GetDeltaTime();
|
||||
bool &IsDebugging();
|
||||
// Internal Function
|
||||
// Should not be used
|
||||
void Debug();
|
||||
|
@ -111,7 +111,7 @@ struct UI7_Ctx {
|
||||
cbackup = R7Vec2();
|
||||
in_menu = false;
|
||||
current_menu = UI7ID("");
|
||||
debugging = true;
|
||||
debugging = false;
|
||||
}
|
||||
float delta;
|
||||
float time;
|
||||
@ -554,4 +554,13 @@ void Debug() {
|
||||
}
|
||||
}
|
||||
|
||||
bool &IsDebugging() {
|
||||
if (!UI7CtxValidate()) {
|
||||
// Return a Default Val
|
||||
static bool t = false;
|
||||
return t;
|
||||
}
|
||||
return ui7_ctx->debugging;
|
||||
}
|
||||
|
||||
} // namespace UI7
|
@ -678,6 +678,7 @@ void RenderD7::RSettings::Draw(void) const {
|
||||
/// Request a state switch to state RSETTINGS
|
||||
shared_request[0x00000001] = RSETTINGS;
|
||||
}
|
||||
UI7::Checkbox("Debug", UI7::IsDebugging());
|
||||
UI7::EndMenu();
|
||||
}
|
||||
} else if (m_state == RMCONFIG) {
|
||||
|
Loading…
Reference in New Issue
Block a user