Advertisement
Guest User

Untitled

a guest
Jul 26th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void MenuDrawTabs()
  2. {
  3.     static std::vector<std::wstring>* pTabs = nullptr;
  4.     static std::vector<std::wstring>* pTabs_chineese = nullptr;
  5.     static std::vector<std::wstring>* pTabs_korean = nullptr;
  6.     if (!pTabs) pTabs = new std::vector<std::wstring>({ E(L"AIMBOT"), E(L"VISUALS"), E(L"MEME FEATURES") });
  7.     if (!pTabs_chineese) pTabs_chineese = new std::vector<std::wstring>({ E(L"自瞄选项"), E(L"视效"), E(L"MEME特征") });
  8.     if (!pTabs_korean) pTabs_korean = new std::vector<std::wstring>({ E(L"AIMBOT"), E(L"ESP"), E(L"기타 기능") });
  9.  
  10.     auto inp = g_MenuInitialPos + FVector2D({ 20, 20 });
  11.  
  12.     //drawRect(inp, g_MenuW - 40, 23, Black, 2);
  13.     auto tabsz = (g_MenuW - 40) / pTabs->size();
  14.     tabsz -= 2;
  15.     FVector2D ip = inp + FVector2D(2, 2);
  16.  
  17.     auto t = g_Chineese ? pTabs_chineese : pTabs;
  18.  
  19.     if (g_Korean)
  20.         t = pTabs_korean;
  21.  
  22.     auto i = 0;
  23.     for (auto tab : *t)
  24.     {
  25.         auto clr = White;
  26.         auto clr2 = Colors::pBlack;
  27.         if (g_MenuIndex == i)
  28.         {
  29.             clr2 = Colors::SkeetMenuOutline;
  30.             clr = Black;
  31.         }
  32.         RegisterButtonControl(ip, tabsz, 22, clr2, i);
  33.         S2(fMain, { ip.X + tabsz / 2 - (lstrlenW(tab.c_str())*10)/2, ip.Y + 3 }, clr, (wchar_t*)tab.c_str());
  34.         //drawFilledRect(ip-2, 2, 22, Black);
  35.         ip.X += tabsz + 2;
  36.         i++;
  37.     }
  38.  
  39.     g_Clientarea = inp + FVector2D(0, 28);
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement