@@ -56,11 +56,8 @@ void MenuOptions()
5656 SET_MSG_VAR(i, 619 + BIT_CHK(6321 + i), 6);
5757 }
5858 SET_MSG_VAR(8, 619 + BIT_CHK(6334), 6); // Default to direct commands
59- // Set message variables for scheduler mods
60- for (int i = 0; i < 3; i++)
61- {
62- SET_MSG_VAR(i + 9, 619 + BIT_CHK(6340 + i), 6);
63- }
59+ SET_MSG_VAR(9, 619 + BIT_CHK(6341), 6);
60+ SET_MSG_VAR(10, 619 + BIT_CHK(6342), 6);
6461
6562 SEL_CHK_PAD(14, 18);
6663 SEL_CHK_PAD(15, 18);
@@ -129,18 +126,8 @@ void ToggleOption(int startMsg, int startFlag, int selection, bool subOption)
129126 }
130127 else if (selection == 4)
131128 {
132- MSG(SPOILER_TOGGLE);
133- sel = SEL(ToggleMenu);
134- if (sel == 0)
135- BIT_ON(5678);
136- else if (sel == 1)
137- BIT_OFF(5678);
138- MSG(RemoveInvitations_About);
139- sel = SEL(ToggleMenu);
140- if (sel == 0)
141- BIT_ON(6340);
142- else if (sel == 1)
143- BIT_OFF(6340);
129+ CLOSE_MSG_WIN();
130+ FindAFriendOptionsToggle();
144131 }
145132 else if (selection == 9)
146133 {
@@ -174,6 +161,50 @@ void ToggleOption(int startMsg, int startFlag, int selection, bool subOption)
174161 CLOSE_MSG_WIN();
175162}
176163
164+ void FindAFriendOptionsToggle()
165+ {
166+ //Toggle options until done
167+ bool done = false;
168+ while (!done)
169+ {
170+ //Set message variables for menu options
171+ SET_MSG_VAR(0, 619 + BIT_CHK(5678), 6);
172+ SET_MSG_VAR(1, 619 + BIT_CHK(6340), 6);
173+ SEL_CHK_PAD(14, 2);
174+ SEL_CHK_PAD(15, 2);
175+ //Toggle selection or read more about it
176+ int selection = ADV_SEL(FindAFriendOptions_Text, FindAFriendOptions, 0);
177+ if (selection == 0)
178+ {
179+ OPEN_MSG_WIN();
180+ MSG(SPOILER_TOGGLE);
181+ SEL_CHK_PAD(14, 2);
182+ int sel = SEL(ToggleMenu);
183+ if (sel == 0)
184+ BIT_ON(5678);
185+ else if (sel == 1)
186+ BIT_OFF(5678);
187+ CLOSE_MSG_WIN();
188+ }
189+ else if (selection == 1)
190+ {
191+ OPEN_MSG_WIN();
192+ MSG(RemoveInvitations_About);
193+ SEL_CHK_PAD(14, 2);
194+ int sel = SEL(ToggleMenu);
195+ if (sel == 0)
196+ BIT_ON(6340);
197+ else if (sel == 1)
198+ BIT_OFF(6340);
199+ CLOSE_MSG_WIN();
200+ }
201+ else
202+ {
203+ done = true;
204+ }
205+ }
206+ }
207+
177208void DungeonOptionsToggle()
178209{
179210 //Toggle options until done
0 commit comments