summaryrefslogtreecommitdiff
path: root/src/puzzles/puzzle.h
diff options
context:
space:
mode:
authorphysick <mynameisgennadiy@vk.com>2026-08-30 20:40:31 +0500
committerphysick <mynameisgennadiy@vk.com>2026-08-30 20:40:31 +0500
commitce9cbb6c0dbd8c920fdb87389332028cdd60ccc1 (patch)
treeb6aee4d8a225c267ee05675e9074c5d860f40478 /src/puzzles/puzzle.h
parentd2711061b06a95bdf0170e86c1c723a32a6527ba (diff)
collection view 2
Diffstat (limited to 'src/puzzles/puzzle.h')
-rw-r--r--src/puzzles/puzzle.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/puzzles/puzzle.h b/src/puzzles/puzzle.h
index a65ae6f..cea0dba 100644
--- a/src/puzzles/puzzle.h
+++ b/src/puzzles/puzzle.h
@@ -100,16 +100,17 @@ typedef enum {
} CollectionElementType;
typedef struct CollectionElement {
+ Texture2D icon;
char *path;
char *name;
struct CollectionElement *children;
size_t childCount;
- Texture2D *icon;
bool IsInitialized;
+ bool hasIcon;
CollectionElementType type;
} CollectionElement;
void InitializeCollection(CollectionElement *el);
-void DrawCollectionElement(CollectionElement *el, Rectangle rec);
+void DrawCollectionElement(CollectionElement *el, CollectionElement *parent, Rectangle rec);
#endif // PUZZLE_H