mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 01:29:05 +00:00
Resizing for Dialog Page
This commit is contained in:
1 parent
de9b373973
commit
c0dc526d41
3 files changed
+126
-19
No files matched your search
@@ -4,11 +4,14 @@ import kamkeel.npcs.util.TextSplitter;
|
||||
import net.minecraft.client.gui.GuiScreen;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import noppes.npcs.client.gui.global.GuiNPCManageDialogs;
|
||||
import org.lwjgl.input.Mouse;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import static noppes.npcs.client.gui.util.GuiNPCInterface.resizingActive;
|
||||
|
||||
public class GuiCustomScroll extends GuiScreen
|
||||
{
|
||||
public static final ResourceLocation resource = new ResourceLocation("customnpcs","textures/gui/misc.png");
|
||||
@@ -127,7 +130,7 @@ public class GuiCustomScroll extends GuiScreen
|
||||
if(scrollHeight < ySize - 8){
|
||||
i -= guiLeft;
|
||||
j -= guiTop;
|
||||
if(Mouse.isButtonDown(0)){
|
||||
if(Mouse.isButtonDown(0) && !resizingActive){
|
||||
if(i >= xSize-9 && i < xSize-4 && j >= 4 && j < ySize){
|
||||
isScrolling = true;
|
||||
}
|
||||
@@ -263,6 +266,9 @@ public class GuiCustomScroll extends GuiScreen
|
||||
|
||||
public void mouseClicked(int i, int j, int k)
|
||||
{
|
||||
if(resizingActive)
|
||||
return;
|
||||
|
||||
if(k != 0 || hover < 0)
|
||||
return;
|
||||
if(multipleSelection) {
|
||||
|
||||
Reference in new issue
Block a user