mirror of
https://github.com/GTNewHorizons/CodeChickenCore.git
synced 2026-11-19 20:09:35 +00:00
Added scrollable description override to content in GuiModList
This commit is contained in:
1 parent
e332467293
commit
07451771aa
7 files changed
+205
-82
No files matched your search
@@ -2,9 +2,14 @@ package codechicken.core.internal;
|
||||
|
||||
import codechicken.core.CCUpdateChecker;
|
||||
|
||||
import codechicken.core.GuiModListScroll;
|
||||
import cpw.mods.fml.client.GuiModList;
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.gameevent.TickEvent;
|
||||
import cpw.mods.fml.common.gameevent.TickEvent.Phase;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraftforge.client.event.GuiScreenEvent;
|
||||
|
||||
public class CCCEventHandler
|
||||
{
|
||||
@@ -24,4 +29,11 @@ public class CCCEventHandler
|
||||
if(event.phase == Phase.START)
|
||||
renderFrame = event.renderTickTime;
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void posGuiRender(GuiScreenEvent.DrawScreenEvent.Post event) {
|
||||
if(event.gui instanceof GuiModList)
|
||||
GuiModListScroll.draw((GuiModList)event.gui, event.mouseX, event.mouseY);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user