better branding
This commit is contained in:
parent
6298b2285f
commit
b72d6a606c
@ -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<float>(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<float>(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<float>(font->pixelHeight), 1.f, 1.f, 0.0f, color, 0);
|
||||
game::R_AddCmdDrawText("h1-mod",
|
||||
0x7FFFFFFF, font, 10.f,
|
||||
5.f + static_cast<float>(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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user