Skip to content

Commit effcd55

Browse files
committed
Correctly initialize the campaign creator UI the first time it is displayed.
1 parent a15423f commit effcd55

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Makers/base/Scripts/Libs/Nadeo/MP4/TitlePackMaker/Components/Component_Campaign/CampaignController.Script.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,10 @@ Void UpdateMaps()
125125
Campaign_Categories = CampaignAPI::GetCampaignCategories();
126126
Campaign_NewTracks = CampaignAPI::GetNewTrackPatterns(G_SectionIndex);
127127
Campaign_WarningMaps = CampaignAPI::GetAllWarningMaps(G_SectionIndex);
128-
LayerCustomEvent(MapsLayer, "GiveChooseTrackQuads", Text[]);
128+
LayerCustomEvent(MapsLayer, "GiveChooseTrackQuads", []);
129129
LayerCustomEvent(MapsLayer, "ChangeSection", [TextLib::ToText(G_SectionIndex)]);
130130
Campaign_WarningCategories = CampaignAPI::GetWarningSections();
131-
LayerCustomEvent(CategoriesLayer, "UpdateCategories", Text[]);
131+
LayerCustomEvent(CategoriesLayer, "UpdateCategories", []);
132132
}
133133

134134
Void UpdateForm()
@@ -239,7 +239,7 @@ Void Loop() {
239239
TitleFlow.EditGhosts(MapPath);
240240
}
241241
case "Campaign_Move": {
242-
LayerCustomEvent(Layers::Get("CampaignMaps"), "StartMovingAllCards", Text[]);
242+
LayerCustomEvent(Layers::Get("CampaignMaps"), "StartMovingAllCards", []);
243243
}
244244
case "Campaign_FinishMovingCard": {
245245
declare Integer MoveSecStart = TextLib::ToInteger(Event.CustomEventData[0]);
@@ -324,8 +324,13 @@ Void Loop() {
324324
UpdateForm();
325325
}
326326
case "SoloSettings": {
327+
UpdateForm();
327328
Pages::GotoNext("CampaignSettings");
328329
}
330+
// It's somewhat hacky, but this event is received when showing the solo UI
331+
case "DetachPage": {
332+
UpdateMaps();
333+
}
329334
}
330335
}
331336
}

0 commit comments

Comments
 (0)