VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
CenterHtmlRender.cpp File Reference
#include "Menu/CenterHtmlRender.hpp"
#include <VoltMod/Core/Text/Strings.hpp>
#include <VoltMod/Core/Text/Translations.hpp>
#include <VoltMod/Menu/MenuModel.hpp>
#include <algorithm>
#include <sstream>
#include <string>
#include <string_view>

Go to the source code of this file.

Namespaces

namespace  VoltMod
 
namespace  VoltMod::Theme
 

Functions

std::string VoltMod::RenderHeader (const CenterHtmlHeader &header)
 
static std::string VoltMod::FooterChunk (std::string_view keyColor, std::string_view keyText, const std::string &label)
 
std::string VoltMod::RenderFooter (bool isSubmenu, bool isPaginated, bool selectedRowSteps, int slot, Translations &translations)
 
static std::string VoltMod::RowText (const MenuRow &row)
 
static std::string VoltMod::RenderItems (const CenterHtmlView &view, int pageStart, int pageEnd, MenuRow &selected)
 
std::string VoltMod::RenderMenuHtml (const Menu *menu, const CenterHtmlView &view, Translations &translations)
 
std::string VoltMod::RenderCaptureOverlay (const std::string &menuTitle, std::string_view prompt)
 

Variables

constexpr std::string_view VoltMod::Theme::Gold = "#FFD700"
 
constexpr std::string_view VoltMod::Theme::Amber = "#FF8C00"
 
constexpr std::string_view VoltMod::Theme::WarmWhite = "#CCBBAA"
 
constexpr std::string_view VoltMod::Theme::WarmGray = "#887755"
 
constexpr std::string_view VoltMod::Theme::Disabled = "#665544"
 
constexpr std::string_view VoltMod::Theme::NavGold = "#AA8833"
 
constexpr std::string_view VoltMod::Theme::NavClose = "#AA4422"
 
constexpr std::string_view VoltMod::Theme::NavBack = "#AA8833"