mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-08-10 19:36:54 -04:00
TWEAK: Layout/styling overhaul for the F1 menu (#1026)
* First pass of UX changes * More padding/styling/layout * More styling * Moar styling * Some more styling * Implemented padding helpers * More styling, added closing buttons to windows * Fixed merge conflict mistake * Fixed new enhancements * Hopefully fix jenkins errors * Changed button behaviour, more styling * Tiny code cleanup * Change buttons from close/open to > when open * Small button spacing fix * Small styling changes after merge * Small fix after merge mistake
This commit is contained in:
@@ -1124,7 +1124,7 @@ void DrawCosmeticsEditor(bool& open) {
|
||||
return;
|
||||
}
|
||||
ImGui::SetNextWindowSize(ImVec2(465, 430), ImGuiCond_FirstUseEver);
|
||||
if (!ImGui::Begin("Cosmetics Editor", &open, ImGuiWindowFlags_NoFocusOnAppearing)) {
|
||||
if (!ImGui::Begin("Cosmetics Editor", &open)) {
|
||||
ImGui::End();
|
||||
return;
|
||||
}
|
||||
@@ -1162,7 +1162,7 @@ void InitCosmeticsEditor() {
|
||||
//This allow to hide a window without disturbing the player nor adding things in menu
|
||||
//LoadRainbowColor() will this way run in background once it's window is activated
|
||||
//ImGui::SetNextItemWidth(0.0f);
|
||||
SohImGui::AddWindow("Cosmetics", "Rainbowfunction", LoadRainbowColor, true, true);
|
||||
SohImGui::AddWindow("Enhancements", "Rainbowfunction", LoadRainbowColor, true, true);
|
||||
//Draw the bar in the menu.
|
||||
SohImGui::AddWindow("Cosmetics", "Cosmetics Editor", DrawCosmeticsEditor);
|
||||
}
|
||||
SohImGui::AddWindow("Enhancements", "Cosmetics Editor", DrawCosmeticsEditor);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user