Cubyz/src/gui/windows/healthbar.zig
2023-02-14 12:46:29 +01:00

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 {
}