This commit is contained in:
Asuro
2025-05-19 18:41:10 +02:00
parent 70db6ca2aa
commit 15dc65530d
11 changed files with 50 additions and 11 deletions

View File

@@ -52,12 +52,12 @@ namespace Tools
return changed;
}
bool ModelDropdown(Gen::ModelHandle& modelHandle, const char* name)
bool ModelDropdown(Gen::ModelHandle& modelHandle, const char* title)
{
bool changed = false;
auto& R = Game::GameRendering::Get();
const char* assetName = GetAssetPath(modelHandle.Asset);
if (ImGui::BeginCombo(name, assetName))
if (ImGui::BeginCombo(title, assetName))
{
for (int32_t i = 0; i < R.ModelCount; ++i)
{
@@ -72,12 +72,12 @@ namespace Tools
return changed;
}
bool TextureDropdown(Gen::TextureHandle& texHandle)
bool TextureDropdown(Gen::TextureHandle& texHandle, const char* title)
{
bool changed = false;
auto& R = Game::GameRendering::Get();
const char* name = GetAssetPath(texHandle.Asset);
if (ImGui::BeginCombo("Texture", name))
if (ImGui::BeginCombo(title, name))
{
for (int32_t i = 0; i < R.MaxTextures; ++i)
{
@@ -305,7 +305,9 @@ namespace Tools
bTabletChanged |= Tools::EntityDataSettings(player.Config.TabletBackgroundRenderData);
ImGui::Text("Status");
bTabletChanged |= Tools::EntityDataSettings(player.Config.TabletStatusRenderData);
bTabletChanged |= Tools::TextureDropdown(player.Config.TabletStatusSolvedTexture);
bTabletChanged |= Tools::TextureDropdown(player.Config.TabletStatusSolvedTexture, "Solved Texture");
ImGui::Text("Reset");
bTabletChanged |= Tools::EntityDataSettings(player.Config.TabletResetRenderData);
if (bTabletChanged)
{
Serializer s;