solved status ui

This commit is contained in:
Asuro
2025-05-19 18:20:05 +02:00
parent 1a8be39c19
commit 70db6ca2aa
11 changed files with 166 additions and 21 deletions

View File

@@ -39,6 +39,7 @@ namespace Tools
bool EntityDataSettings(Gen::SavedEntityRenderData& data)
{
ImGui::PushID(&data);
bool changed = false;
changed |= ModelDropdown(data.Model);
changed |= MaterialDropdown(data.Material);
@@ -47,6 +48,7 @@ namespace Tools
changed |= ImGui::Checkbox("Visible", &data.Visible);
changed |= ImGui::ColorEdit4("Color 1", &data.BaseColor.x);
changed |= ImGui::ColorEdit4("Color 2", &data.HighlightColor.x);
ImGui::PopID();
return changed;
}
@@ -299,11 +301,16 @@ namespace Tools
ImGui::Separator();
ImGui::Text("Game Tablet");
if (Tools::EntityDataSettings(player.Config.TabletRenderData))
bool bTabletChanged = false;
bTabletChanged |= Tools::EntityDataSettings(player.Config.TabletBackgroundRenderData);
ImGui::Text("Status");
bTabletChanged |= Tools::EntityDataSettings(player.Config.TabletStatusRenderData);
bTabletChanged |= Tools::TextureDropdown(player.Config.TabletStatusSolvedTexture);
if (bTabletChanged)
{
Serializer s;
s.Init("game/data/static/uiconfig.dat", "UICO");
s.WriteT(player.Config.TabletRenderData);
s.WriteT(player.Config);
s.Finish();
}