Cubyz
Cubyz copied to clipboard
Move the gui windows to comptime modding
Closes #1537
The main changes to the gui window code is that I made it use main.gui instead of @import("../gui.zig"); and i also use GuiComponent.Button instead of @import("../components/Button.zig") and the same for the rest of the components. I also had to change the code that references gui windows to have a cubyz: prefix
I am not sure if this is best choice, we might consider API changes which would allow us to spawn multiple instances of same window, unless that was rejected (?)
Also, please don't mention import user, instead use back ticks to make a code block
I am not sure if this is best choice, we might consider API changes which would allow us to spawn multiple instances of same window, unless that was rejected (?)
That was not rejected, however I do not think we have to worry about it here. Just because we support modding, doesn't mean we need to commit to this as the final window API.
What is the status of this?