mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-25 16:43:33 +00:00
track debug window size and dimensions between sessions
This commit is contained in:
parent
b9c986b0b8
commit
5fc46b166a
@ -99,6 +99,25 @@ namespace MWGui
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
WindowSettingValues makeDebugWindowSettingValues()
|
||||||
|
{
|
||||||
|
return WindowSettingValues{
|
||||||
|
.mRegular = WindowRectSettingValues {
|
||||||
|
.mX = Settings::windows().mDebugX,
|
||||||
|
.mY = Settings::windows().mDebugY,
|
||||||
|
.mW = Settings::windows().mDebugW,
|
||||||
|
.mH = Settings::windows().mDebugH,
|
||||||
|
},
|
||||||
|
.mMaximized = WindowRectSettingValues {
|
||||||
|
.mX = Settings::windows().mDebugMaximizedX,
|
||||||
|
.mY = Settings::windows().mDebugMaximizedY,
|
||||||
|
.mW = Settings::windows().mDebugMaximizedW,
|
||||||
|
.mH = Settings::windows().mDebugMaximizedH,
|
||||||
|
},
|
||||||
|
.mIsMaximized = Settings::windows().mDebugMaximized,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
WindowSettingValues makeDialogueWindowSettingValues()
|
WindowSettingValues makeDialogueWindowSettingValues()
|
||||||
{
|
{
|
||||||
return WindowSettingValues{
|
return WindowSettingValues{
|
||||||
|
@ -25,6 +25,7 @@ namespace MWGui
|
|||||||
WindowSettingValues makeCompanionWindowSettingValues();
|
WindowSettingValues makeCompanionWindowSettingValues();
|
||||||
WindowSettingValues makeConsoleWindowSettingValues();
|
WindowSettingValues makeConsoleWindowSettingValues();
|
||||||
WindowSettingValues makeContainerWindowSettingValues();
|
WindowSettingValues makeContainerWindowSettingValues();
|
||||||
|
WindowSettingValues makeDebugWindowSettingValues();
|
||||||
WindowSettingValues makeDialogueWindowSettingValues();
|
WindowSettingValues makeDialogueWindowSettingValues();
|
||||||
WindowSettingValues makeInventoryWindowSettingValues();
|
WindowSettingValues makeInventoryWindowSettingValues();
|
||||||
WindowSettingValues makeInventoryBarterWindowSettingValues();
|
WindowSettingValues makeInventoryBarterWindowSettingValues();
|
||||||
|
@ -498,6 +498,7 @@ namespace MWGui
|
|||||||
auto debugWindow = std::make_unique<DebugWindow>();
|
auto debugWindow = std::make_unique<DebugWindow>();
|
||||||
mDebugWindow = debugWindow.get();
|
mDebugWindow = debugWindow.get();
|
||||||
mWindows.push_back(std::move(debugWindow));
|
mWindows.push_back(std::move(debugWindow));
|
||||||
|
trackWindow(mDebugWindow, makeDebugWindowSettingValues());
|
||||||
|
|
||||||
auto postProcessorHud = std::make_unique<PostProcessorHud>();
|
auto postProcessorHud = std::make_unique<PostProcessorHud>();
|
||||||
mPostProcessorHud = postProcessorHud.get();
|
mPostProcessorHud = postProcessorHud.get();
|
||||||
|
@ -161,6 +161,15 @@ namespace Settings
|
|||||||
SettingValue<float> mPostprocessorMaximizedW{ mIndex, "Windows", "postprocessor maximized w" };
|
SettingValue<float> mPostprocessorMaximizedW{ mIndex, "Windows", "postprocessor maximized w" };
|
||||||
SettingValue<float> mPostprocessorMaximizedH{ mIndex, "Windows", "postprocessor maximized h" };
|
SettingValue<float> mPostprocessorMaximizedH{ mIndex, "Windows", "postprocessor maximized h" };
|
||||||
SettingValue<bool> mPostprocessorMaximized{ mIndex, "Windows", "postprocessor maximized" };
|
SettingValue<bool> mPostprocessorMaximized{ mIndex, "Windows", "postprocessor maximized" };
|
||||||
|
SettingValue<float> mDebugX{ mIndex, "Windows", "debug x" };
|
||||||
|
SettingValue<float> mDebugY{ mIndex, "Windows", "debug y" };
|
||||||
|
SettingValue<float> mDebugW{ mIndex, "Windows", "debug w" };
|
||||||
|
SettingValue<float> mDebugH{ mIndex, "Windows", "debug h" };
|
||||||
|
SettingValue<float> mDebugMaximizedX{ mIndex, "Windows", "debug maximized x" };
|
||||||
|
SettingValue<float> mDebugMaximizedY{ mIndex, "Windows", "debug maximized y" };
|
||||||
|
SettingValue<float> mDebugMaximizedW{ mIndex, "Windows", "debug maximized w" };
|
||||||
|
SettingValue<float> mDebugMaximizedH{ mIndex, "Windows", "debug maximized h" };
|
||||||
|
SettingValue<bool> mDebugMaximized{ mIndex, "Windows", "debug maximized" };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -847,6 +847,17 @@ postprocessor maximized w = 0.97
|
|||||||
postprocessor maximized h = 0.875
|
postprocessor maximized h = 0.875
|
||||||
postprocessor maximized = false
|
postprocessor maximized = false
|
||||||
|
|
||||||
|
# Debug window for viewing logs and profiling
|
||||||
|
debug x = 0.70
|
||||||
|
debug y = 0.00
|
||||||
|
debug w = 0.30
|
||||||
|
debug h = 1.00
|
||||||
|
debug maximized x = 0.015
|
||||||
|
debug maximized y = 0.02
|
||||||
|
debug maximized w = 0.97
|
||||||
|
debug maximized h = 0.875
|
||||||
|
debug maximized = false
|
||||||
|
|
||||||
[Navigator]
|
[Navigator]
|
||||||
|
|
||||||
# Enable navigator (true, false). When enabled background threads are started to build navmesh for world geometry.
|
# Enable navigator (true, false). When enabled background threads are started to build navmesh for world geometry.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user