mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 19:59:56 +00:00
Revamp Quest and Dialog Selection to use Client Side Data
This commit is contained in:
1 parent
3d4e917b0e
commit
aa1db389da
15 files changed
+477
-610
No files matched your search
@@ -35,6 +35,7 @@ public class GuiCustomScroll extends GuiScreen
|
||||
private boolean isSorted = true;
|
||||
public boolean visible = true;
|
||||
private boolean selectable = true;
|
||||
private boolean hasSubGUI = false;
|
||||
|
||||
private int lastClickedItem;
|
||||
private long lastClickedTime = 0;
|
||||
@@ -116,7 +117,7 @@ public class GuiCustomScroll extends GuiScreen
|
||||
hoverCount++;
|
||||
}
|
||||
|
||||
if(hover != -1 && hoverableText && hoverCount > 100){
|
||||
if(!hasSubGUI && hover != -1 && hoverableText && hoverCount > 100){
|
||||
String displayString = StatCollector.translateToLocal(list.get(hover));
|
||||
GL11.glColor4f(1, 1, 1, 1);
|
||||
List<String> lines = TextSplitter.splitText(displayString, 30);
|
||||
@@ -176,7 +177,7 @@ public class GuiCustomScroll extends GuiScreen
|
||||
hoverCount++;
|
||||
}
|
||||
|
||||
if(hover != -1 && hoverableText && hoverCount > 100){
|
||||
if(!hasSubGUI && hover != -1 && hoverableText && hoverCount > 100){
|
||||
String displayString = StatCollector.translateToLocal(list.get(hover));
|
||||
GL11.glColor4f(1, 1, 1, 1);
|
||||
List<String> lines = TextSplitter.splitText(displayString, 30);
|
||||
@@ -374,4 +375,9 @@ public class GuiCustomScroll extends GuiScreen
|
||||
public void resetScroll(){
|
||||
scrollY = 0;
|
||||
}
|
||||
|
||||
public void updateSubGUI(boolean hasSubGUI)
|
||||
{
|
||||
this.hasSubGUI = hasSubGUI;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user