mirror of
https://github.com/PixelGuys/Cubyz.git
synced 2025-08-03 03:06:55 -04:00
25 lines
460 B
Zig
25 lines
460 B
Zig
const main = @import("root");
|
|
const Vec2f = main.vec.Vec2f;
|
|
|
|
const gui = @import("../gui.zig");
|
|
const GuiWindow = gui.GuiWindow;
|
|
|
|
var healthbarWindow: GuiWindow = undefined;
|
|
pub fn init() !void {
|
|
healthbarWindow = GuiWindow{
|
|
.contentSize = Vec2f{128, 16},
|
|
.title = "Health Bar",
|
|
.id = "cubyz:healthbar",
|
|
.renderFn = &render,
|
|
.updateFn = &update,
|
|
};
|
|
try gui.addWindow(&healthbarWindow, true);
|
|
}
|
|
|
|
pub fn render() void {
|
|
|
|
}
|
|
|
|
pub fn update() void {
|
|
|
|
} |