include cleanup
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
#include <imgui.h>
|
||||
#include <tracy/Tracy.hpp>
|
||||
|
||||
using namespace Generated;
|
||||
using namespace Gen;
|
||||
|
||||
namespace
|
||||
{
|
||||
@@ -19,7 +19,7 @@ namespace
|
||||
|
||||
namespace Tools
|
||||
{
|
||||
const char* GetAssetPath(Generated::AssetHandle assetHandle)
|
||||
const char* GetAssetPath(Gen::AssetHandle assetHandle)
|
||||
{
|
||||
const auto& inst = Game::GetInstance();
|
||||
for (int32_t j = 0; j < inst.DebugData.AssetCount; ++j)
|
||||
@@ -32,7 +32,7 @@ namespace Tools
|
||||
return "---";
|
||||
}
|
||||
|
||||
void ModelDropdown(Generated::ModelHandle& modelHandle)
|
||||
void ModelDropdown(Gen::ModelHandle& modelHandle)
|
||||
{
|
||||
auto& R = Game::GameRendering::Get();
|
||||
const char* name = GetAssetPath(modelHandle.Asset);
|
||||
@@ -49,7 +49,7 @@ namespace Tools
|
||||
}
|
||||
}
|
||||
|
||||
void TextureDropdown(Generated::TextureHandle& texHandle)
|
||||
void TextureDropdown(Gen::TextureHandle& texHandle)
|
||||
{
|
||||
auto& R = Game::GameRendering::Get();
|
||||
const char* name = GetAssetPath(texHandle.Asset);
|
||||
@@ -280,7 +280,7 @@ namespace Tools
|
||||
}
|
||||
if (ImGui::Begin("Cards"))
|
||||
{
|
||||
Generated::StaticPuzzleData& staticData = Puzzle::GetStaticPuzzleData();
|
||||
Gen::StaticPuzzleData& staticData = Puzzle::GetStaticPuzzleData();
|
||||
if (ImGui::Button("Save"))
|
||||
{
|
||||
Puzzle::SaveStaticPuzzleData();
|
||||
@@ -295,7 +295,7 @@ namespace Tools
|
||||
{
|
||||
ImGui::Separator();
|
||||
|
||||
Generated::StaticPuzzleCard& card = staticData.Cards[i];
|
||||
Gen::StaticPuzzleCard& card = staticData.Cards[i];
|
||||
ImGui::PushID(i);
|
||||
char cardName[64]{0};
|
||||
bx::snprintf(cardName, sizeof(cardName), "%i", i);
|
||||
@@ -317,14 +317,14 @@ namespace Tools
|
||||
if (x > 0) ImGui::SameLine();
|
||||
ImGui::PushID(x);
|
||||
auto& node = Puzzle::EditCardNodeAt(card, 0, x, y);
|
||||
if (ImGui::Button(Generated::PuzzleElementType::ShortName[node], {26, 24}))
|
||||
if (ImGui::Button(Gen::PuzzleElementType::ShortName[node], {26, 24}))
|
||||
{
|
||||
int32_t newVal = int32_t(node) + 1;
|
||||
if (newVal >= Generated::PuzzleElementType::EntryCount)
|
||||
if (newVal >= Gen::PuzzleElementType::EntryCount)
|
||||
{
|
||||
newVal = 0;
|
||||
}
|
||||
node = Generated::PuzzleElementType::Enum(newVal);
|
||||
node = Gen::PuzzleElementType::Enum(newVal);
|
||||
}
|
||||
ImGui::PopID();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user