mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-24 22:14:44 +00:00
Gui rendering cleanup
This commit is contained in:
1 parent
17f036522e
commit
31a305ffc2
173 files changed
+1317
-1349
No files matched your search
@@ -10,8 +10,8 @@ import binnie.craftgui.events.EventMouse;
|
||||
import binnie.craftgui.resource.minecraft.CraftGUITexture;
|
||||
|
||||
public abstract class Dialog extends Control {
|
||||
public Dialog(final IWidget parent, final float w, final float h) {
|
||||
super(parent, (parent.w() - w) / 2.0f, (parent.h() - h) / 2.0f, w, h);
|
||||
public Dialog(final IWidget parent, final int w, final int h) {
|
||||
super(parent, (parent.w() - w) / 2, (parent.h() - h) / 2, w, h);
|
||||
this.addAttribute(Attribute.MouseOver);
|
||||
this.addAttribute(Attribute.AlwaysOnTop);
|
||||
this.addAttribute(Attribute.BlockTooltip);
|
||||
@@ -33,7 +33,7 @@ public abstract class Dialog extends Control {
|
||||
public abstract void onClose();
|
||||
|
||||
@Override
|
||||
public void onRenderBackground() {
|
||||
public void onRenderBackground(int guiWidth, int guiHeight) {
|
||||
CraftGUI.render.gradientRect(this.getArea().outset(400), -1442840576, -1442840576);
|
||||
CraftGUI.render.texture(CraftGUITexture.Window, this.getArea());
|
||||
CraftGUI.render.texture(CraftGUITexture.TabOutline, this.getArea().inset(4));
|
||||
|
||||
Reference in new issue
Block a user