#include #include "loader/component_loader.hpp" #include "game/game.hpp" #include "version.hpp" #include "scheduler.hpp" namespace branding { namespace { void draw_branding() { constexpr auto x = 4; constexpr auto y = 0; constexpr auto scale = 0.45f; float color[4] = {0.666f, 0.666f, 0.666f, 0.666f}; const auto* font = reinterpret_cast(0x141CAC8E0_g)(); if (!font) return; game::R_AddCmdDrawText("BOIII: " VERSION, std::numeric_limits::max(), font, static_cast(x), y + static_cast(font[2]) * scale, scale, scale, 0.0f, color, game::ITEM_TEXTSTYLE_NORMAL); } } struct component final : client_component { void post_unpack() override { scheduler::loop(draw_branding, scheduler::renderer); } }; } REGISTER_COMPONENT(branding::component)