From b72d6a606c2456e487d2c993c611c68a21627e8e Mon Sep 17 00:00:00 2001 From: m Date: Thu, 22 Dec 2022 08:39:14 -0600 Subject: [PATCH] better branding --- src/client/component/branding.cpp | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/src/client/component/branding.cpp b/src/client/component/branding.cpp index f304b07f..342b8b0f 100644 --- a/src/client/component/branding.cpp +++ b/src/client/component/branding.cpp @@ -20,7 +20,7 @@ namespace branding { utils::hook::detour ui_get_formatted_build_number_hook; - float color[4] = {0.666f, 0.666f, 0.666f, 0.666f}; + float color[4] = {0.39f, 0.9f, 0.4f, 0.9f}; const char* ui_get_formatted_build_number_stub() { @@ -30,15 +30,19 @@ namespace branding void draw_branding() { - const auto font = game::R_RegisterFont("fonts/fira_mono_bold.ttf", 20); + const auto font = game::R_RegisterFont("fonts/fira_mono_bold.ttf", 22); if (font) { #ifdef DEBUG - game::R_AddCmdDrawText("H1-Mod: " VERSION " (" __DATE__ " " __TIME__ ")", 0x7FFFFFFF, font, 10.f, - 5.f + static_cast(font->pixelHeight), 1.f, 1.f, 0.0f, color, 0); + game::R_AddCmdDrawText("h1-mod: " VERSION " (" __DATE__ " " __TIME__ ")", + 0x7FFFFFFF, font, 10.f, + 5.f + static_cast(font->pixelHeight), + 1.f, 1.f, 0.0f, color, 0); #else - game::R_AddCmdDrawText("H1-Mod: " VERSION, 0x7FFFFFFF, font, 10.f, - 5.f + static_cast(font->pixelHeight), 1.f, 1.f, 0.0f, color, 0); + game::R_AddCmdDrawText("h1-mod", + 0x7FFFFFFF, font, 10.f, + 5.f + static_cast(font->pixelHeight), + 1.f, 1.f, 0.0f, color, 0); #endif } } @@ -59,12 +63,6 @@ namespace branding return; } - if (game::environment::is_mp()) - { - localized_strings::override("LUA_MENU_MULTIPLAYER_CAPS", "H1-MOD: MULTIPLAYER\n"); - localized_strings::override("MENU_MULTIPLAYER_CAPS", "H1-MOD: MULTIPLAYER"); - } - ui_get_formatted_build_number_hook.create( SELECT_VALUE(0x406EC0_b, 0x1DF300_b), ui_get_formatted_build_number_stub); }