mirror of
https://github.com/PixelGuys/Cubyz.git
synced 2025-08-03 19:28:49 -04:00
Organized Code
This commit is contained in:
parent
31598085d3
commit
4fa484d3ae
@ -1,9 +1,11 @@
|
||||
package io.cubyz.ui;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.awt.Rectangle;
|
||||
|
||||
import org.joml.Vector2d;
|
||||
import org.jungle.Window;
|
||||
import org.lwjgl.nanovg.NVGColor;
|
||||
|
||||
public abstract class Component {
|
||||
|
||||
|
@ -48,4 +48,4 @@ public class DebugGUI extends MenuGUI {
|
||||
@Override
|
||||
public void init(long nvg) {}
|
||||
|
||||
}
|
||||
}
|
@ -2,6 +2,7 @@ package io.cubyz.ui;
|
||||
|
||||
import org.jungle.Window;
|
||||
import org.jungle.hud.Font;
|
||||
import org.lwjgl.nanovg.NVGColor;
|
||||
|
||||
import io.cubyz.client.Cubyz;
|
||||
import io.cubyz.ui.components.Button;
|
||||
|
@ -46,9 +46,7 @@ public class UISystem extends Hud {
|
||||
return gui.isFullscreen();
|
||||
}
|
||||
|
||||
public void updateUI() {
|
||||
|
||||
}
|
||||
public void updateUI() {}
|
||||
|
||||
@Override
|
||||
public void init(Window window) throws Exception {
|
||||
|
@ -63,5 +63,5 @@ public class Button extends Component {
|
||||
NGraphics.drawText(x + (width / 2) - ((text.length() * 5) / 2), (int) (y + (height / 2) - fontSize / 2), text);
|
||||
//int ascent = NGraphics.getAscent("ahh");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
@ -33,6 +33,4 @@ public class Label extends Component {
|
||||
NGraphics.drawText(x, y, text);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
@ -46,4 +46,4 @@ public class ScrollingContainer extends Container {
|
||||
scrollY = Math.min(maxY, scrollY);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user