solved status ui
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user