Skip to content

Commit a73bc1d

Browse files
Changed loginfo to logdebug
1 parent 037d08b commit a73bc1d

1 file changed

Lines changed: 25 additions & 25 deletions

File tree

InscryptionAPI/AscensionScreens/AscensionRunSetupScreenBase.cs

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,20 @@ public virtual void InitializeScreen(GameObject partialScreen)
5252
public static AscensionRunSetupScreenBase BuildScreen(Type screenType, AscensionMenuScreens.Screen previousScreen, AscensionMenuScreens.Screen nextScreen)
5353
{
5454
// Create the new screen
55-
InscryptionAPIPlugin.Log.LogInfo($"Creating screen for {screenType.Name}");
55+
InscryptionAPIPlugin.Log.LogDebug($"Creating screen for {screenType.Name}");
5656

5757
GameObject pseudoPrefab = AscensionMenuScreens.Instance.cardUnlockSummaryScreen;
5858
GameObject screenObject = GameObject.Instantiate(pseudoPrefab, pseudoPrefab.transform.parent);
5959
screenObject.name = screenType.Name;
6060

61-
InscryptionAPIPlugin.Log.LogInfo($"Getting old logic");
61+
InscryptionAPIPlugin.Log.LogDebug($"Getting old logic");
6262
AscensionCardsSummaryScreen oldController = screenObject.GetComponent<AscensionCardsSummaryScreen>();
6363

64-
InscryptionAPIPlugin.Log.LogInfo($"Adding new logic");
64+
InscryptionAPIPlugin.Log.LogDebug($"Adding new logic");
6565
AscensionRunSetupScreenBase controller = screenObject.AddComponent(screenType) as AscensionRunSetupScreenBase;
6666

6767
// Update the title of the screen
68-
InscryptionAPIPlugin.Log.LogInfo($"Updating screen title");
68+
InscryptionAPIPlugin.Log.LogDebug($"Updating screen title");
6969
GameObject textHeader = screenObject.transform.Find("Header/Mid").gameObject;
7070
textHeader.transform.localPosition = new Vector3(0f, -0.575f, 0f);
7171
controller.screenTitle = textHeader.GetComponent<PixelText>();
@@ -79,7 +79,7 @@ public static AscensionRunSetupScreenBase BuildScreen(Type screenType, Ascension
7979
GameObject footerLowline = screenObject.transform.Find("Footer/PixelTextLine_DIV").gameObject;
8080
if (controller.showCardDisplayer)
8181
{
82-
InscryptionAPIPlugin.Log.LogInfo($"Resetting card information displayer");
82+
InscryptionAPIPlugin.Log.LogDebug($"Resetting card information displayer");
8383

8484
// Move the stuff
8585
cardTextDisplayer.transform.localPosition = new Vector3(2.38f, 0.27f, 0f);
@@ -97,12 +97,12 @@ public static AscensionRunSetupScreenBase BuildScreen(Type screenType, Ascension
9797
}
9898
else
9999
{
100-
InscryptionAPIPlugin.Log.LogInfo($"Destroying unwanted card information displayer");
100+
InscryptionAPIPlugin.Log.LogDebug($"Destroying unwanted card information displayer");
101101
// Destroy the card text displayer and footer low line
102102
GameObject.Destroy(cardTextDisplayer);
103103
GameObject.Destroy(footerLowline);
104104

105-
InscryptionAPIPlugin.Log.LogInfo($"Creating new information displayer");
105+
InscryptionAPIPlugin.Log.LogDebug($"Creating new information displayer");
106106
GameObject newInfoDisplayer = GameObject.Instantiate(textHeader);
107107
controller.secondaryInfoDisplayer = newInfoDisplayer.GetComponent<PixelText>();
108108
controller.secondaryInfoDisplayer.SetColor(GameColors.Instance.nearWhite);
@@ -111,24 +111,24 @@ public static AscensionRunSetupScreenBase BuildScreen(Type screenType, Ascension
111111

112112
if (controller.showCardPanel)
113113
{
114-
InscryptionAPIPlugin.Log.LogInfo($"Transferring ownership of cards");
114+
InscryptionAPIPlugin.Log.LogDebug($"Transferring ownership of cards");
115115
controller.cards = oldController.cards;
116116
}
117117

118118
// Destroy the old game logic
119-
InscryptionAPIPlugin.Log.LogInfo($"Destroying old game logic");
119+
InscryptionAPIPlugin.Log.LogDebug($"Destroying old game logic");
120120
Component.Destroy(oldController);
121121

122122
// Sort out the unlocks block
123-
InscryptionAPIPlugin.Log.LogInfo($"Handling card panel");
123+
InscryptionAPIPlugin.Log.LogDebug($"Handling card panel");
124124
controller.cardPanel = screenObject.transform.Find("Unlocks").gameObject;
125125
if (controller.showCardDisplayer)
126126
controller.cardPanel.transform.localPosition = new Vector3(0f, 0.2f, 0f);
127127
else
128128
GameObject.Destroy(controller.cardPanel);
129129

130130
// Clone the challenge information from a challenge screen
131-
InscryptionAPIPlugin.Log.LogInfo($"Creating challenge text header");
131+
InscryptionAPIPlugin.Log.LogDebug($"Creating challenge text header");
132132
GameObject header = screenObject.transform.Find("Header").gameObject;
133133
SequentialPixelTextLines headerLines = header.AddComponent<SequentialPixelTextLines>();
134134

@@ -141,19 +141,19 @@ public static AscensionRunSetupScreenBase BuildScreen(Type screenType, Ascension
141141

142142
// Set the old header lines to the lines of the sequential pixel text lines
143143
// Fundamentally, the old header now controls these new challenge level lines
144-
InscryptionAPIPlugin.Log.LogInfo($"Assigning new lines of text to header");
144+
InscryptionAPIPlugin.Log.LogDebug($"Assigning new lines of text to header");
145145
headerLines.lines = new List<PixelText>() {
146146
challengeLevel.GetComponent<PixelText>(),
147147
challengePoints.GetComponent<PixelText>()
148148
};
149149

150150
// And add those lines to the new challenge level controller
151-
InscryptionAPIPlugin.Log.LogInfo($"Giving controller access to header");
151+
InscryptionAPIPlugin.Log.LogDebug($"Giving controller access to header");
152152
ChallengeLevelText challengeLevelController = screenObject.AddComponent<ChallengeLevelText>();
153153
challengeLevelController.headerPointsLines = headerLines;
154154
controller.challengeHeaderDisplay = challengeLevelController;
155155

156-
InscryptionAPIPlugin.Log.LogInfo($"Creating challenge footer text");
156+
InscryptionAPIPlugin.Log.LogDebug($"Creating challenge footer text");
157157

158158
List<Transform> footerLinePseudos = new List<Transform>();
159159
GameObject challengeFooter = challengeScreen.transform.Find("Footer").gameObject;
@@ -162,7 +162,7 @@ public static AscensionRunSetupScreenBase BuildScreen(Type screenType, Ascension
162162
footerLinePseudos.Add(child);
163163
footerLinePseudos.Sort((a, b) => a.localPosition.y < b.localPosition.y ? -1 : 1);
164164

165-
InscryptionAPIPlugin.Log.LogInfo($"Building footer text controller");
165+
InscryptionAPIPlugin.Log.LogDebug($"Building footer text controller");
166166
List<GameObject> newFooterLines = footerLinePseudos.Select(t => GameObject.Instantiate(t.gameObject, footer.transform)).ToList();
167167
SequentialPixelTextLines footerLines = footer.AddComponent<SequentialPixelTextLines>();
168168
footerLines.lines = newFooterLines.Select(o => o.GetComponent<PixelText>()).ToList();
@@ -174,14 +174,14 @@ public static AscensionRunSetupScreenBase BuildScreen(Type screenType, Ascension
174174
controller.rightButton = screenObject.transform.Find("Unlocks/ScreenAnchor/PageRightButton").gameObject.GetComponent<MainInputInteractable>();
175175
if (controller.showCardPanel)
176176
{
177-
InscryptionAPIPlugin.Log.LogInfo($"Reassigning left/right scroll buttons");
177+
InscryptionAPIPlugin.Log.LogDebug($"Reassigning left/right scroll buttons");
178178
controller.leftButton.CursorSelectStarted = controller.LeftButtonClicked;
179179
controller.rightButton.CursorSelectStarted = controller.RightButtonClicked;
180180
controller.leftButton.gameObject.transform.localPosition = controller.leftButton.gameObject.transform.localPosition - (Vector3)BETWEEN_CARD_OFFSET * 1.5f;
181181
controller.rightButton.gameObject.transform.localPosition = controller.rightButton.gameObject.transform.localPosition + (Vector3)BETWEEN_CARD_OFFSET * 1.5f;
182182

183183
// Let's add three more cards to the panel
184-
InscryptionAPIPlugin.Log.LogInfo($"Expanding card panel");
184+
InscryptionAPIPlugin.Log.LogDebug($"Expanding card panel");
185185
GameObject cardPrefab = Resources.Load<GameObject>("prefabs/gbccardbattle/pixelselectablecard");
186186
Transform cardsParent = screenObject.transform.Find("Unlocks/ScreenAnchor/Cards");
187187
for (int i = 0; i < 3; i++)
@@ -196,7 +196,7 @@ public static AscensionRunSetupScreenBase BuildScreen(Type screenType, Ascension
196196
Traverse.Create(newPixelComponent).Field("pixelBorder").SetValue(pixelBorder);
197197
}
198198

199-
InscryptionAPIPlugin.Log.LogInfo($"Assigning click action to cards in card panel");
199+
InscryptionAPIPlugin.Log.LogDebug($"Assigning click action to cards in card panel");
200200
foreach (PixelSelectableCard card in controller.cards)
201201
{
202202
card.CursorSelectStarted = (Action<MainInputInteractable>)Delegate.Combine(card.CursorSelectStarted, new Action<MainInputInteractable>(delegate(MainInputInteractable i)
@@ -215,7 +215,7 @@ public static AscensionRunSetupScreenBase BuildScreen(Type screenType, Ascension
215215
}
216216
else
217217
{
218-
InscryptionAPIPlugin.Log.LogInfo($"Destroying scroll buttons");
218+
InscryptionAPIPlugin.Log.LogDebug($"Destroying scroll buttons");
219219
GameObject.Destroy(controller.leftButton.gameObject);
220220
GameObject.Destroy(controller.rightButton.gameObject);
221221

@@ -225,13 +225,13 @@ public static AscensionRunSetupScreenBase BuildScreen(Type screenType, Ascension
225225

226226

227227
// Reroute the back button
228-
InscryptionAPIPlugin.Log.LogInfo($"Rerouting back button");
228+
InscryptionAPIPlugin.Log.LogDebug($"Rerouting back button");
229229
GameObject backButton = screenObject.transform.Find("BackButton").gameObject;
230230
controller.backButton = backButton.GetComponent<AscensionMenuBackButton>();
231231
controller.backButton.screenToReturnTo = previousScreen;
232232

233233
// Add a continue button
234-
InscryptionAPIPlugin.Log.LogInfo($"Adding continue button");
234+
InscryptionAPIPlugin.Log.LogDebug($"Adding continue button");
235235
GameObject continuePrefab = Resources.Load<GameObject>("prefabs/ui/ascension/ascensionmenucontinuebutton");
236236
GameObject continueButton = GameObject.Instantiate(continuePrefab, screenObject.transform);
237237
continueButton.transform.localPosition = new Vector3(2.08f, 1.15f, 0f);
@@ -248,24 +248,24 @@ public static AscensionRunSetupScreenBase BuildScreen(Type screenType, Ascension
248248
controller.continueButton.CursorSelectStarted = (Action<MainInputInteractable>)Delegate.Combine(controller.continueButton.CursorSelectStarted, clickAction);
249249

250250
// Let the base class do its magic
251-
InscryptionAPIPlugin.Log.LogInfo($"Calling screen implementation to finish creating screen UI elements");
251+
InscryptionAPIPlugin.Log.LogDebug($"Calling screen implementation to finish creating screen UI elements");
252252
controller.InitializeScreen(screenObject);
253253

254254
// And we're done
255-
InscryptionAPIPlugin.Log.LogInfo($"Done building screen");
255+
InscryptionAPIPlugin.Log.LogDebug($"Done building screen");
256256
return controller;
257257
}
258258

259259
private static void TransitionToGame()
260260
{
261261
if (!AscensionSaveData.Data.ChallengeLevelIsMet() && AscensionSaveData.Data.challengeLevel <= 12)
262262
{
263-
InscryptionAPIPlugin.Log.LogInfo("Sending the player to the confirmation screen");
263+
InscryptionAPIPlugin.Log.LogDebug("Sending the player to the confirmation screen");
264264
AscensionMenuScreens.Instance.SwitchToScreen(AscensionMenuScreens.Screen.SelectChallengesConfirm);
265265
}
266266
else
267267
{
268-
InscryptionAPIPlugin.Log.LogInfo("Starting a new run");
268+
InscryptionAPIPlugin.Log.LogDebug("Starting a new run");
269269
AscensionMenuScreens.Instance.TransitionToGame(true);
270270
}
271271
}

0 commit comments

Comments
 (0)