puzzle ui

This commit is contained in:
Asuro
2025-03-30 20:47:09 +02:00
parent c244b997c1
commit 29a3aaf241
5 changed files with 32 additions and 26 deletions

View File

@@ -271,6 +271,11 @@ namespace Puzzle
ImGui::InvisibleButton("cardbn",
{Puzzle::Config::CardSize * UIPuzBoxSize, Puzzle::Config::CardSize * UIPuzBoxSize});
}
void RotateCard(PlacedPuzzleCard& card)
{
card.Rotation += 1;
if (card.Rotation >= 4) card.Rotation = 0;
}
void WritePuzzleFilePath(char* buf, int32_t bufSize, uint16_t puzID)
{