From ce9cbb6c0dbd8c920fdb87389332028cdd60ccc1 Mon Sep 17 00:00:00 2001 From: physick Date: Sun, 30 Aug 2026 20:40:31 +0500 Subject: collection view 2 --- src/puzzles/puzzle.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/puzzles/puzzle.h') 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 -- cgit v1.3