mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-12-04 07:00:18 +01:00
MainMenu: Add build number to neoLegacy name
This commit is contained in:
1 parent
af1e7f4380
commit
b3e518a78e
2 files changed
+17
-2
No files matched your search
@@ -570,7 +570,9 @@ void UIScene_MainMenu::render(S32 width, S32 height, C4JRender::eViewportType vi
|
||||
|
||||
Font *font = pMinecraft->font;
|
||||
const wstring part1 = L"neo";
|
||||
const wstring part2 = L"Legacy";
|
||||
const wstring part2 = L"Legacy ";
|
||||
const wstring part3 = VER_LAST_TAG;
|
||||
|
||||
const float scale = 0.6f;
|
||||
const int pad = 4;
|
||||
|
||||
@@ -600,7 +602,7 @@ void UIScene_MainMenu::render(S32 width, S32 height, C4JRender::eViewportType vi
|
||||
glEnable(GL_TEXTURE_2D);
|
||||
glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
|
||||
|
||||
int totalW = static_cast<int>((font->width(part1) + font->width(part2)) * scale);
|
||||
int totalW = static_cast<int>((font->width(part1) + font->width(part2) + font->width(part3)) * scale);
|
||||
int tx = sw - totalW - pad;
|
||||
int ty = sh - static_cast<int>(8 * scale) - pad;
|
||||
|
||||
@@ -609,6 +611,7 @@ void UIScene_MainMenu::render(S32 width, S32 height, C4JRender::eViewportType vi
|
||||
glScalef(scale, scale, scale);
|
||||
font->drawShadow(part1, 0, 0, 0x66A254FA);
|
||||
font->drawShadow(part2, font->width(part1), 0, 0x66ffffff);
|
||||
font->drawShadow(part3, font->width(part1) + font->width(part2), 0, 0x66ffffff);
|
||||
glPopMatrix();
|
||||
|
||||
glDepthMask(true);
|
||||
|
||||
Reference in new issue
Block a user