Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void MenuDrawTabs()
- {
- static std::vector<std::wstring>* pTabs = nullptr;
- static std::vector<std::wstring>* pTabs_chineese = nullptr;
- static std::vector<std::wstring>* pTabs_korean = nullptr;
- if (!pTabs) pTabs = new std::vector<std::wstring>({ E(L"AIMBOT"), E(L"VISUALS"), E(L"MEME FEATURES") });
- if (!pTabs_chineese) pTabs_chineese = new std::vector<std::wstring>({ E(L"自瞄选项"), E(L"视效"), E(L"MEME特征") });
- if (!pTabs_korean) pTabs_korean = new std::vector<std::wstring>({ E(L"AIMBOT"), E(L"ESP"), E(L"기타 기능") });
- auto inp = g_MenuInitialPos + FVector2D({ 20, 20 });
- //drawRect(inp, g_MenuW - 40, 23, Black, 2);
- auto tabsz = (g_MenuW - 40) / pTabs->size();
- tabsz -= 2;
- FVector2D ip = inp + FVector2D(2, 2);
- auto t = g_Chineese ? pTabs_chineese : pTabs;
- if (g_Korean)
- t = pTabs_korean;
- auto i = 0;
- for (auto tab : *t)
- {
- auto clr = White;
- auto clr2 = Colors::pBlack;
- if (g_MenuIndex == i)
- {
- clr2 = Colors::SkeetMenuOutline;
- clr = Black;
- }
- RegisterButtonControl(ip, tabsz, 22, clr2, i);
- S2(fMain, { ip.X + tabsz / 2 - (lstrlenW(tab.c_str())*10)/2, ip.Y + 3 }, clr, (wchar_t*)tab.c_str());
- //drawFilledRect(ip-2, 2, 22, Black);
- ip.X += tabsz + 2;
- i++;
- }
- g_Clientarea = inp + FVector2D(0, 28);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement