mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 17:39:39 +00:00
Create Guide button.
This commit is contained in:
1 parent
32839206d3
commit
160f3ae628
3 files changed
+71
No files matched your search
@@ -0,0 +1,23 @@
|
||||
package somehussar.gui.guides;
|
||||
|
||||
|
||||
import tconstruct.client.tabs.InventoryTabGuides;
|
||||
import tconstruct.client.tabs.TabRegistry;
|
||||
|
||||
// TODO: THIS IS JUST THE CLIENT SIDE CONTROLLER
|
||||
// NEED SERVER SIDE
|
||||
public class GuideController {
|
||||
private static boolean isGuideLoaded = true;
|
||||
|
||||
public static boolean isGuideLoaded() {
|
||||
return isGuideLoaded;
|
||||
}
|
||||
|
||||
public static void setGuideLoaded(boolean isGuideLoaded) {
|
||||
GuideController.isGuideLoaded = isGuideLoaded;
|
||||
}
|
||||
|
||||
public static void forceGuideButtonToBeFirst() {
|
||||
TabRegistry.getTabList().add(0, new InventoryTabGuides());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user