Cubyz icon indicating copy to clipboard operation
Cubyz copied to clipboard

Move the gui windows to comptime modding

Open OneAvargeCoder193 opened this issue 5 months ago • 3 comments

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

OneAvargeCoder193 avatar Jun 17 '25 16:06 OneAvargeCoder193

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 (?)

Argmaster avatar Jun 17 '25 16:06 Argmaster

Also, please don't mention import user, instead use back ticks to make a code block

Argmaster avatar Jun 17 '25 17:06 Argmaster

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.

IntegratedQuantum avatar Jun 17 '25 17:06 IntegratedQuantum

What is the status of this?

Argmaster avatar Oct 18 '25 18:10 Argmaster