-
Автор темы
- #1
- first step: install a font of your choice
- in render.cpp init your new font:
-
font:
void render::init() { menu = Font(XOR("Tahoma"), 12, FW_NORMAL, FONTFLAG_NONE); menu_shade = Font(xor_c("Tahoma"), 12, FW_NORMAL, FONTFLAG_DROPSHADOW); esp = Font(xor_c("Verdana"), 12, FW_BOLD, FONTFLAG_DROPSHADOW); esp_small = Font(xor_c("Small Fonts"), 8, FW_NORMAL, FONTFLAG_ANTIALIAS | FONTFLAG_OUTLINE); hud = Font(xor_c("Tahoma"), 16, FW_NORMAL, FONTFLAG_ANTIALIAS); cs = Font(xor_c("Counter-Strike"), 28, FW_MEDIUM, FONTFLAG_ANTIALIAS | FONTFLAG_DROPSHADOW); indicator = Font(xor_c("Verdana"), 26, FW_BOLD, FONTFLAG_ANTIALIAS | FONTFLAG_DROPSHADOW); menu_icon = Font(xor_c("Undefeated"), 16, FW_NORMAL, FONTFLAG_ANTIALIAS | FONTFLAG_OUTLINE); }
- in tab.h you neet to modify SetTitle
-
settitle:
std::string m_icon; // New field for the icon // Set the icon and the sub-titles. __forceinline void SetTitle(const std::string& icon, const std::string& sub_one, const std::string& sub_two) { m_icon = icon; // Set the icon instead of the title m_child1 = sub_one; m_child2 = sub_two; }
- finally in form.cpp you need to change m_title render and use m_icon instead
-
render:
render::menu_icon.string(text_x, text_y, color, t->m_icon, render::ALIGN_CENTER);
- BEFORE YOU INJECT I RECOMMEND GOING INTO MENU.H
- open your installed font and a normal font, should be C:\Windows\Fonts
- then compare the alphabet and set the right single letter that corresponds for your icon
- example
-
menu:
SetTitle(xor_c("o"), xor_c("menu"), xor_c("configurations"));
- POZRDO