GUI: Split gui to interface, potentially new ui interface is possible

This commit is contained in:
Er2
2023-12-09 13:58:05 +03:00
parent 7b5f2b61f9
commit 5e311cbbb3
31 changed files with 460 additions and 202 deletions

View File

@@ -23,8 +23,9 @@ void SavingWorldScreen::render(int mouseX, int mouseY, float f)
{
renderDirtBackground(0);
int x_width = int(Minecraft::width * Gui::InvGuiScale);
int x_height = int(Minecraft::height * Gui::InvGuiScale);
//! why not use the screen stuff
int x_width = int(Minecraft::width * m_pMinecraft->m_pGui->scale);
int x_height = int(Minecraft::height * m_pMinecraft->m_pGui->scale);
int yPos = x_height / 2;
int width = m_pFont->width("Saving chunks");