From 293b1eb5ebf9f486ce9a89398319f646f2a29c3b Mon Sep 17 00:00:00 2001 From: "@syxhe" Date: Sat, 10 Aug 2024 22:32:13 -0500 Subject: Implement subslots & pass to spin() --- src/screen.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/screen.h') diff --git a/src/screen.h b/src/screen.h index 5afbe6e..93297ee 100644 --- a/src/screen.h +++ b/src/screen.h @@ -66,6 +66,17 @@ enum customcolor_pairs { #define COLORWIDTH (CCP_WHITE - CCP_RED) #define NUMCOLORPAIRS (COLORWIDTH + 1) +struct slotholder { + WINDOW *slotwin; + int slotx; + int sloty; + + struct subslot { + WINDOW *subslot; + enum customcolor_pairs color; + + } subslots[3]; +}; struct funcholder { int (*callback)(void*); @@ -82,7 +93,7 @@ struct funcholder { union param { struct spinp { WINDOW *bannerwin; - int phrasenum; + struct slotholder *slots; WINDOW *menuholder; MENU *menu; -- cgit v1.2.3