summaryrefslogtreecommitdiff
path: root/src/screen.h
diff options
context:
space:
mode:
author@syxhe <https://t.me/syxhe>2024-08-10 22:32:13 -0500
committer@syxhe <https://t.me/syxhe>2024-08-10 22:32:13 -0500
commit293b1eb5ebf9f486ce9a89398319f646f2a29c3b (patch)
tree9b46511cf48ee14cbcec222ae41a2a98b0ede769 /src/screen.h
parent26107501a9c975a7b39b22402316f3e8cd8d0d8e (diff)
Implement subslots & pass to spin()
Diffstat (limited to 'src/screen.h')
-rw-r--r--src/screen.h13
1 files changed, 12 insertions, 1 deletions
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 {
66#define COLORWIDTH (CCP_WHITE - CCP_RED) 66#define COLORWIDTH (CCP_WHITE - CCP_RED)
67#define NUMCOLORPAIRS (COLORWIDTH + 1) 67#define NUMCOLORPAIRS (COLORWIDTH + 1)
68 68
69struct slotholder {
70 WINDOW *slotwin;
71 int slotx;
72 int sloty;
73
74 struct subslot {
75 WINDOW *subslot;
76 enum customcolor_pairs color;
77
78 } subslots[3];
79};
69 80
70struct funcholder { 81struct funcholder {
71 int (*callback)(void*); 82 int (*callback)(void*);
@@ -82,7 +93,7 @@ struct funcholder {
82 union param { 93 union param {
83 struct spinp { 94 struct spinp {
84 WINDOW *bannerwin; 95 WINDOW *bannerwin;
85 int phrasenum; 96 struct slotholder *slots;
86 97
87 WINDOW *menuholder; 98 WINDOW *menuholder;
88 MENU *menu; 99 MENU *menu;