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

44 lines
932 B
Zig

const main = @import("root");
const Vec2f = main.vec.Vec2f;
const gui = @import("../gui.zig");
const GuiWindow = gui.GuiWindow;
var hotbarWindow: GuiWindow = undefined;
var hotbarWindow2: GuiWindow = undefined;
var hotbarWindow3: GuiWindow = undefined;
pub fn init() !void {
hotbarWindow = GuiWindow{
.contentSize = Vec2f{64*8, 64},
.title = "Hotbar",
.id = "cubyz:hotbar",
.renderFn = &render,
.updateFn = &update,
};
try gui.addWindow(&hotbarWindow, true);
hotbarWindow2 = GuiWindow{
.contentSize = Vec2f{64*8, 64},
.title = "Hotbar2",
.id = "cubyz:hotbar2",
.renderFn = &render,
.updateFn = &update,
};
try gui.addWindow(&hotbarWindow2, true);
hotbarWindow3 = GuiWindow{
.contentSize = Vec2f{64*8, 64},
.title = "Hotbar3",
.id = "cubyz:hotbar3",
.renderFn = &render,
.updateFn = &update,
};
try gui.addWindow(&hotbarWindow3, true);
}
pub fn render() void {
}
pub fn update() void {
}