mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 00:19:05 +00:00
Position Fix when resizing GUI
This commit is contained in:
1 parent
7e109200ab
commit
75e5e1f541
1 file changed
+13
@@ -257,6 +257,13 @@ public class GuiNPCEditAnimation extends GuiModelInterface implements ITextfield
|
||||
this.rotationSliders[i].width = 110;
|
||||
this.rotationSliders[i].height= 20;
|
||||
this.rotationSliders[i].xPosition = guiLeft + bodyPartX + 10;
|
||||
|
||||
int yOffset = 20;
|
||||
if(i != 0)
|
||||
yOffset += 3;
|
||||
yOffset *= i;
|
||||
this.rotationSliders[i].yPosition = guiTop + bodyPartY + 105 + yOffset;
|
||||
|
||||
this.addSlider(this.rotationSliders[i]);
|
||||
}
|
||||
|
||||
@@ -269,6 +276,12 @@ public class GuiNPCEditAnimation extends GuiModelInterface implements ITextfield
|
||||
this.pivotSliders[i].width = 110;
|
||||
this.pivotSliders[i].height = 20;
|
||||
this.pivotSliders[i].xPosition = guiLeft + bodyPartX + 10;
|
||||
|
||||
int yOffset = 20;
|
||||
if(i != 0)
|
||||
yOffset += 3;
|
||||
yOffset *= i;
|
||||
this.pivotSliders[i].yPosition = guiTop + bodyPartY + 105 + yOffset;
|
||||
this.addSlider(this.pivotSliders[i]);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user