Исходник How to add custom icon into your supremacy paste, c+p ready

Начинающий
Статус
Оффлайн
Регистрация
15 Окт 2019
Сообщения
18
Реакции[?]
5
Поинты[?]
5K
  1. first step: install a font of your choice
  2. in render.cpp init your new font:
  3. 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);
    }
  4. in tab.h you neet to modify SetTitle
  5. 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;
        }
  6. finally in form.cpp you need to change m_title render and use m_icon instead
  7. render:
                render::menu_icon.string(text_x, text_y, color, t->m_icon, render::ALIGN_CENTER);
  8. BEFORE YOU INJECT I RECOMMEND GOING INTO MENU.H
  9. open your installed font and a normal font, should be C:\Windows\Fonts
  10. then compare the alphabet and set the right single letter that corresponds for your icon
  11. example
  12. menu:
            SetTitle(xor_c("o"), xor_c("menu"), xor_c("configurations"));
  13. POZRDO
  14. Counter Strike Global Offensive_2024.09.18-10.29.png
 
Начинающий
Статус
Оффлайн
Регистрация
5 Авг 2023
Сообщения
57
Реакции[?]
15
Поинты[?]
15K
  1. first step: install a font of your choice
  2. in render.cpp init your new font:
  3. 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);
    }
  4. in tab.h you neet to modify SetTitle
  5. 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;
        }
  6. finally in form.cpp you need to change m_title render and use m_icon instead
  7. render:
                render::menu_icon.string(text_x, text_y, color, t->m_icon, render::ALIGN_CENTER);
  8. BEFORE YOU INJECT I RECOMMEND GOING INTO MENU.H
  9. open your installed font and a normal font, should be C:\Windows\Fonts
  10. then compare the alphabet and set the right single letter that corresponds for your icon
  11. example
  12. menu:
            SetTitle(xor_c("o"), xor_c("menu"), xor_c("configurations"));
  13. POZRDO
  14. Посмотреть вложение 285909
useless, kys
 
Пользователь
Статус
Оффлайн
Регистрация
29 Дек 2020
Сообщения
61
Реакции[?]
31
Поинты[?]
2K
  1. first step: install a font of your choice
  2. in render.cpp init your new font:
  3. 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);
    }
  4. in tab.h you neet to modify SetTitle
  5. 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;
        }
  6. finally in form.cpp you need to change m_title render and use m_icon instead
  7. render:
                render::menu_icon.string(text_x, text_y, color, t->m_icon, render::ALIGN_CENTER);
  8. BEFORE YOU INJECT I RECOMMEND GOING INTO MENU.H
  9. open your installed font and a normal font, should be C:\Windows\Fonts
  10. then compare the alphabet and set the right single letter that corresponds for your icon
  11. example
  12. menu:
            SetTitle(xor_c("o"), xor_c("menu"), xor_c("configurations"));
  13. POZRDO
  14. Посмотреть вложение 285909
useless, kys
 
Сверху Снизу