#include #include "loader/component_loader.hpp" #include "localized_strings.hpp" #include "scheduler.hpp" #include "command.hpp" #include "game/game.hpp" #include #include namespace branding { namespace { void draw_brand() { const auto font = game::R_RegisterFont("fonts/defaultBold.otf", 22); float color[4] = {0.9f, 0.9f, 0.5f, 1.f}; game::R_AddCmdDrawText("h2-mod", 0x7FFFFFFF, font, 15.f, 15.f + static_cast(font->pixelHeight), 1.f, 1.f, 0.0f, color, 0); } } class component final : public component_interface { public: void post_unpack() override { localized_strings::override("MENU_SP_CAMPAIGN", "H2-Mod"); scheduler::once([]() { scheduler::loop([]() { draw_brand(); }, scheduler::pipeline::renderer); }, scheduler::pipeline::renderer); } }; } REGISTER_COMPONENT(branding::component)