Commit 12a6cba5e45bff4f8ea2a238ab63bbb45c199e1c

Authored by Mumfrey
1 parent 8f946289

moving ModList classes to new package

java/client/com/mumfrey/liteloader/client/gui/GuiLiteLoaderPanel.java
@@ -703,7 +703,7 @@ public class GuiLiteLoaderPanel extends GuiScreen @@ -703,7 +703,7 @@ public class GuiLiteLoaderPanel extends GuiScreen
703 * @param colour 703 * @param colour
704 * @param backgroundColour 704 * @param backgroundColour
705 */ 705 */
706 - protected static void drawTooltip(FontRenderer fontRenderer, String tooltipText, int mouseX, int mouseY, int screenWidth, int screenHeight, int colour, int backgroundColour) 706 + public static void drawTooltip(FontRenderer fontRenderer, String tooltipText, int mouseX, int mouseY, int screenWidth, int screenHeight, int colour, int backgroundColour)
707 { 707 {
708 int textSize = fontRenderer.getStringWidth(tooltipText); 708 int textSize = fontRenderer.getStringWidth(tooltipText);
709 mouseX = Math.max(0, Math.min(screenWidth - 4, mouseX - 4)); 709 mouseX = Math.max(0, Math.min(screenWidth - 4, mouseX - 4));
java/client/com/mumfrey/liteloader/client/gui/GuiPanelMods.java
@@ -13,6 +13,8 @@ import org.lwjgl.input.Keyboard; @@ -13,6 +13,8 @@ import org.lwjgl.input.Keyboard;
13 13
14 import com.mumfrey.liteloader.LiteMod; 14 import com.mumfrey.liteloader.LiteMod;
15 import com.mumfrey.liteloader.api.ModInfoDecorator; 15 import com.mumfrey.liteloader.api.ModInfoDecorator;
  16 +import com.mumfrey.liteloader.client.gui.modlist.ModList;
  17 +import com.mumfrey.liteloader.client.gui.modlist.ModListContainer;
16 import com.mumfrey.liteloader.core.LiteLoaderMods; 18 import com.mumfrey.liteloader.core.LiteLoaderMods;
17 import com.mumfrey.liteloader.launch.LoaderEnvironment; 19 import com.mumfrey.liteloader.launch.LoaderEnvironment;
18 import com.mumfrey.liteloader.modconfig.ConfigManager; 20 import com.mumfrey.liteloader.modconfig.ConfigManager;
java/client/com/mumfrey/liteloader/client/gui/GuiModInfoPanel.java renamed to java/client/com/mumfrey/liteloader/client/gui/modlist/GuiModInfoPanel.java
1 -package com.mumfrey.liteloader.client.gui; 1 +package com.mumfrey.liteloader.client.gui.modlist;
2 2
3 import static com.mumfrey.liteloader.gl.GLClippingPlanes.*; 3 import static com.mumfrey.liteloader.gl.GLClippingPlanes.*;
4 import net.minecraft.client.gui.FontRenderer; 4 import net.minecraft.client.gui.FontRenderer;
@@ -6,6 +6,7 @@ import net.minecraft.client.gui.Gui; @@ -6,6 +6,7 @@ import net.minecraft.client.gui.Gui;
6 import net.minecraft.client.resources.I18n; 6 import net.minecraft.client.resources.I18n;
7 7
8 import com.google.common.base.Strings; 8 import com.google.common.base.Strings;
  9 +import com.mumfrey.liteloader.client.gui.GuiSimpleScrollBar;
9 import com.mumfrey.liteloader.core.ModInfo; 10 import com.mumfrey.liteloader.core.ModInfo;
10 11
11 public class GuiModInfoPanel extends Gui 12 public class GuiModInfoPanel extends Gui
java/client/com/mumfrey/liteloader/client/gui/GuiModListPanel.java renamed to java/client/com/mumfrey/liteloader/client/gui/modlist/GuiModListPanel.java
1 -package com.mumfrey.liteloader.client.gui; 1 +package com.mumfrey.liteloader.client.gui.modlist;
2 2
3 import static com.mumfrey.liteloader.gl.GL.*; 3 import static com.mumfrey.liteloader.gl.GL.*;
4 import static com.mumfrey.liteloader.gl.GLClippingPlanes.*; 4 import static com.mumfrey.liteloader.gl.GLClippingPlanes.*;
@@ -11,6 +11,7 @@ import net.minecraft.client.gui.FontRenderer; @@ -11,6 +11,7 @@ import net.minecraft.client.gui.FontRenderer;
11 import net.minecraft.client.gui.Gui; 11 import net.minecraft.client.gui.Gui;
12 12
13 import com.mumfrey.liteloader.api.ModInfoDecorator; 13 import com.mumfrey.liteloader.api.ModInfoDecorator;
  14 +import com.mumfrey.liteloader.client.gui.GuiLiteLoaderPanel;
14 import com.mumfrey.liteloader.core.ModInfo; 15 import com.mumfrey.liteloader.core.ModInfo;
15 import com.mumfrey.liteloader.util.render.IconClickable; 16 import com.mumfrey.liteloader.util.render.IconClickable;
16 import com.mumfrey.liteloader.util.render.IconTextured; 17 import com.mumfrey.liteloader.util.render.IconTextured;
java/client/com/mumfrey/liteloader/client/gui/ModList.java renamed to java/client/com/mumfrey/liteloader/client/gui/modlist/ModList.java
1 -package com.mumfrey.liteloader.client.gui; 1 +package com.mumfrey.liteloader.client.gui.modlist;
2 2
3 import java.util.ArrayList; 3 import java.util.ArrayList;
4 import java.util.List; 4 import java.util.List;
@@ -12,6 +12,7 @@ import org.lwjgl.input.Keyboard; @@ -12,6 +12,7 @@ import org.lwjgl.input.Keyboard;
12 12
13 import com.mumfrey.liteloader.LiteMod; 13 import com.mumfrey.liteloader.LiteMod;
14 import com.mumfrey.liteloader.api.ModInfoDecorator; 14 import com.mumfrey.liteloader.api.ModInfoDecorator;
  15 +import com.mumfrey.liteloader.client.gui.GuiLiteLoaderPanel;
15 import com.mumfrey.liteloader.core.LiteLoaderMods; 16 import com.mumfrey.liteloader.core.LiteLoaderMods;
16 import com.mumfrey.liteloader.core.ModInfo; 17 import com.mumfrey.liteloader.core.ModInfo;
17 import com.mumfrey.liteloader.interfaces.Loadable; 18 import com.mumfrey.liteloader.interfaces.Loadable;
java/client/com/mumfrey/liteloader/client/gui/ModListContainer.java renamed to java/client/com/mumfrey/liteloader/client/gui/modlist/ModListContainer.java
1 -package com.mumfrey.liteloader.client.gui; 1 +package com.mumfrey.liteloader.client.gui.modlist;
  2 +
  3 +import com.mumfrey.liteloader.client.gui.GuiLiteLoaderPanel;
2 4
3 public interface ModListContainer 5 public interface ModListContainer
4 { 6 {
java/client/com/mumfrey/liteloader/client/gui/ModListEntry.java renamed to java/client/com/mumfrey/liteloader/client/gui/modlist/ModListEntry.java
1 -package com.mumfrey.liteloader.client.gui; 1 +package com.mumfrey.liteloader.client.gui.modlist;
2 2
3 import java.util.List; 3 import java.util.List;
4 import java.util.Set; 4 import java.util.Set;