Skip to content

Commit 83e44d2

Browse files
committed
Formatted Find A Friend Options to be consistent
1 parent c30efff commit 83e44d2

File tree

2 files changed

+61
-22
lines changed

2 files changed

+61
-22
lines changed

Setup/FirstTimeSetup.flow

Lines changed: 48 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
177208
void DungeonOptionsToggle()
178209
{
179210
//Toggle options until done

Setup/FirstTimeSetup.msg

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
[f 0 5 -258][f 2 1]Game Over Skip: [f 2 4 6][e]
3030
[f 0 5 -258][f 2 1]Reap-Balanced Encounters: [f 2 4 7][e]
3131
[f 0 5 -258][f 2 1]Default Direct Commands: [f 2 4 8][e]
32-
[f 0 5 -258][f 2 1]Remove Events: [f 2 4 10][e]
33-
[f 0 5 -258][f 2 1]Save Everyday: [f 2 4 11][e]
32+
[f 0 5 -258][f 2 1]Remove Events: [f 2 4 9][e]
33+
[f 0 5 -258][f 2 1]Save Everyday: [f 2 4 10][e]
3434
[f 0 5 -258][f 2 1]Next[e]
3535
[f 0 5 -258][f 2 1]Previous[e]
3636

@@ -147,13 +147,21 @@
147147
[n]on the fly while dungeon crawling. Reloads the
148148
[n]floor you're currently on.[e]
149149

150+
[msg FindAFriendOptions_Text]
151+
[f 0 5 -258][f 2 1]Find A Friend Options[e]
152+
153+
[sel FindAFriendOptions]
154+
[f 0 5 -258][f 2 1]Spoiler-Free Mode: [f 2 4 0][e]
155+
[f 0 5 -258][f 2 1]Remove Invites: [f 2 4 1][e]
156+
[f 0 5 -258][f 2 1]Done[e]
157+
150158
[msg SPOILER_TOGGLE[FindAFriend (AnimatedSwine37)]]
151159
[f 0 5 -258][f 2 1]Set spoiler-free mode
152-
[n](Only social links you have met will be shown)[f 1 1][e]
160+
[n](Only social links you have met will be shown)[e]
153161

154162
[msg RemoveInvitations_About[Remove Invites (AnimatedSwine37)]]
155-
[f 0 5 -258][f 2 1]Remove lunchtime invitations to spend time with a
156-
[n]Social Link after school? It's highly recommended to
163+
[f 0 5 -258][f 2 1]Removes lunchtime invitations to spend time with a
164+
[n]Social Link after school. It's highly recommended to
157165
[n]use this with Find a Friend.[e]
158166

159167
[msg IntroSkipConfig]

0 commit comments

Comments
 (0)