mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 22:45:09 +00:00
Fixed textured rectangles in custom GUIs not being placed relative to the GUIs' position.
This commit is contained in:
1 parent
b0da137db5
commit
2874643c84
2 files changed
+3
-3
No files matched your search
@@ -22,12 +22,12 @@ public class ScriptGuiTexturedRect extends ScriptGuiComponent implements ITextur
|
||||
this.scale = 1.0F;
|
||||
this.setID(id);
|
||||
this.setTexture(texture);
|
||||
this.setPos(GuiCustom.guiLeft + x, GuiCustom.guiTop + y);
|
||||
this.setPos(x, y);
|
||||
this.setSize(width, height);
|
||||
}
|
||||
|
||||
public ScriptGuiTexturedRect(int id, String texture, int x, int y, int width, int height, int textureX, int textureY) {
|
||||
this(id, texture, GuiCustom.guiLeft + x, GuiCustom.guiTop + y, width, height);
|
||||
this(id, texture, x, y, width, height);
|
||||
this.setTextureOffset(textureX, textureY);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user