Skip to content

Commit bf12c42

Browse files
committed
Added extra distance to tooltip panel if compat checker is enabled. Not pushed to SW yet.
1 parent 1c5c7e6 commit bf12c42

3 files changed

Lines changed: 13 additions & 8 deletions

File tree

Common/Systems/Hooks/MainMenu/MainMenuState.cs

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,20 @@ public MainMenuState()
3131
ManualSortMethod = (e) => { }
3232
};
3333

34+
tooltipPanel = new TooltipPanel();
35+
tooltipPanel.Left.Set(15 + 3, 0f);
36+
tooltipPanel.Top.Set(470f, 0f); // 6 px under the list
37+
3438
// Extra spacing if other big menu mods are loaded
3539
if (ModLoader.HasMod("TerrariaOverhaul") || ModLoader.HasMod("Terramon"))
3640
{
3741
mainMenuList.Top.Pixels += 205f;
3842
}
3943
if (ModLoader.HasMod("CompatChecker"))
44+
{
4045
mainMenuList.Top.Pixels += 30f;
41-
42-
tooltipPanel = new TooltipPanel();
46+
tooltipPanel.Top.Pixels += 30f;
47+
}
4348

4449
// Add elements to the main menu list
4550
AddModReloaderSection(tooltipPanel);
@@ -202,15 +207,15 @@ public override void Draw(SpriteBatch spriteBatch)
202207

203208
private void PositionTooltip()
204209
{
205-
tooltipPanel.Left.Set(15 + 3, 0f);
206-
tooltipPanel.Top.Set(470f, 0f); // 6 px under the list
207-
tooltipPanel.Recalculate();
210+
// tooltipPanel.Left.Set(15 + 3, 0f);
211+
// tooltipPanel.Top.Set(470f, 0f); // 6 px under the list
212+
// tooltipPanel.Recalculate();
208213
}
209214

210215
public override void Update(GameTime gameTime)
211216
{
212217
base.Update(gameTime);
213-
PositionTooltip();
218+
// PositionTooltip();
214219
}
215220

216221
private void DrawActionRowsDebug(SpriteBatch spriteBatch)

Localization/en-US_Mods.ModReloader.hjson

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ MainMenu: {
189189
LoadingWorld: Loading world: {0}
190190
WorldHeader: World
191191
WorldTooltip: Quickly create worlds
192-
CreateNewWorld: Create New World
192+
CreateNewWorld: Quick Generate World
193193
CreateNewWorldTooltip:
194194
'''
195195
Create world with name {0},

Localization/zh-Hans_Mods.ModReloader.hjson

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ MainMenu: {
165165
LoadingWorld: 加入游戏:{0}
166166
// WorldHeader: World
167167
// WorldTooltip: Quickly create worlds
168-
// CreateNewWorld: Create New World
168+
// CreateNewWorld: Quick Generate World
169169
/* CreateNewWorldTooltip:
170170
'''
171171
Create world with name {0},

0 commit comments

Comments
 (0)