Add debug menu option, misc. tweaks

This commit is contained in:
2024-02-13 12:57:29 +01:00
parent dc140027ed
commit 1e20d307ea
7 changed files with 19 additions and 11 deletions

View File

@@ -445,8 +445,9 @@ void drawSettingsUI(Game *game, f32 dt) {
static GameData gameData = {};
if (game->screenPrevFrame != SCREEN_SETTINGS)
gameData = game->gameData;
uiSettingsLabel("Video");
uiSettingsCheckbox("Fullscreen", &gameData.options.fullscreen);
uiSettingsLabel("Game");
//uiSettingsCheckbox("Fullscreen", &gameData.options.fullscreen);
uiSettingsCheckbox("Debug Mode", &gameData.options.debugMenu);
uiSettingsCheckbox("Limit FPS", &gameData.options.limitFps);
//uiSettingsCheckbox("V-Sync", &opts.vsync);

View File

@@ -204,12 +204,12 @@ void setupSystems() {
ECS_SYSTEM(ECS, renderDebugPath, EcsOnUpdate, Path);
ECS_SYSTEM(ECS, renderColliders, EcsOnUpdate, Position, HitBox);
ECS_SYSTEM(ECS, renderOrientationDirection, EcsOnUpdate, Position, Orientation);
//ECS_SYSTEM(ECS, renderOrientationDirection, EcsOnUpdate, Position, Orientation);
ECS_SYSTEM(ECS, delayDeleteUpdate, EcsOnUpdate, DelayDelete);
renderDebugPathSystem = renderDebugPath;
renderOrientDirSystem = renderOrientationDirection;
//renderOrientDirSystem = renderOrientationDirection;
renderCollidersSystem = renderColliders;
//ecs_enable(ECS, renderOrientDirSystem, false);