Advertisement
Guest User

Untitled

a guest
Jan 21st, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.62 KB | None | 0 0
  1. void CVisualTab::Setup()
  2. {
  3. SetTitle("VISUALS");
  4.  
  5. ActiveLabel.SetPosition(46 + 134, -15 - 8);
  6. ActiveLabel.SetText("Active");
  7. RegisterControl(&ActiveLabel);
  8.  
  9. Active.SetFileId("active");
  10. Active.SetPosition(86 + 134, -15 - 8);
  11. RegisterControl(&Active);
  12.  
  13. #pragma region Options
  14. BoxGroup.SetText("Box");
  15. BoxGroup.SetPosition(363 - 25, -15 - 8);
  16. BoxGroup.SetSize(173, 155);
  17. RegisterControl(&BoxGroup);
  18.  
  19. OptionsBox.SetFileId("otr_showbox");
  20. BoxGroup.PlaceCheckBox("Bounding box", this, &OptionsBox);
  21.  
  22. OptionsName.SetFileId("opt_name");
  23. BoxGroup.PlaceCheckBox("Name", this, &OptionsName);
  24.  
  25. OptionsWeapon.SetFileId("opt_weapon");
  26. BoxGroup.PlaceCheckBox("Weapon", this, &OptionsWeapon);
  27.  
  28. OptionHealthEnable.SetFileId("opt_health");
  29. BoxGroup.PlaceCheckBox("Health bar", this, &OptionHealthEnable);
  30.  
  31. OptionsArmor.SetFileId("opt_armor");
  32. BoxGroup.PlaceCheckBox("Armor", this, &OptionsArmor);
  33.  
  34. OptionsSkeleton.SetFileId("opt_bone");
  35. BoxGroup.PlaceCheckBox("Skeleton", this, &OptionsSkeleton);
  36.  
  37. ChamsGroup.SetText("Chams");
  38. ChamsGroup.SetPosition(16 + 134, -3); //-23
  39. ChamsGroup.SetSize(173, 135);
  40. RegisterControl(&ChamsGroup);
  41.  
  42. OptionsChams.SetFileId("opt_chams");
  43. OptionsChams.AddItem("Off");
  44. OptionsChams.AddItem("Normal");
  45. OptionsChams.AddItem("Flat");
  46. ChamsGroup.PlaceOtherControl("Chams", this, &OptionsChams);
  47.  
  48. OtherNoHands.SetFileId("otr_hands");
  49. OtherNoHands.AddItem("Off");
  50. OtherNoHands.AddItem("None");
  51. OtherNoHands.AddItem("TP");
  52. OtherNoHands.AddItem("WF");
  53. OtherNoHands.AddItem("Chams");
  54. OtherNoHands.AddItem("Rainbow");
  55. ChamsGroup.PlaceOtherControl("Hands", this, &OtherNoHands);
  56.  
  57. ChamsVisibleOnly.SetFileId("opt_chamsvisonly");
  58. ChamsGroup.PlaceCheckBox("XQZ chams", this, &ChamsVisibleOnly);
  59.  
  60. pLocalOpacity.SetFileId("otr_plocal_opacity");
  61. ChamsGroup.PlaceCheckBox("Opacity", this, &pLocalOpacity);
  62.  
  63. OptionsGroup.SetText("Misc");
  64. OptionsGroup.SetPosition(150, 155 + 183);
  65. OptionsGroup.SetSize(173, 155);
  66. RegisterControl(&OptionsGroup);
  67.  
  68. OtherHitmarker.SetFileId("otr_hitmarker");
  69. OptionsGroup.PlaceCheckBox("Hitmarker", this, &OtherHitmarker);
  70.  
  71. HitmarkerSound.SetFileId("otr_hitmarkersound");
  72. OptionsGroup.PlaceCheckBox("Hitmarker sound", this, &HitmarkerSound);
  73.  
  74. Logs.SetFileId("otr_logs");
  75. OptionsGroup.PlaceCheckBox("Logs", this, &Logs);
  76.  
  77. OptionsAimSpot.SetFileId("opt_aimspot");
  78. OptionsGroup.PlaceCheckBox("Head cross", this, &OptionsAimSpot);
  79.  
  80. BacktrackingLol.SetFileId("opt_backdot");
  81. OptionsGroup.PlaceCheckBox("Backtrack visualization", this, &BacktrackingLol);
  82.  
  83. InfoGroup.SetText("Info");
  84. InfoGroup.SetPosition(526, 155);
  85. InfoGroup.SetSize(173, 155);
  86. RegisterControl(&InfoGroup);
  87.  
  88. OptionsInfo.SetFileId("opt_info");
  89. InfoGroup.PlaceCheckBox("Info", this, &OptionsInfo);
  90.  
  91. ResolverInfo.SetFileId("opt_resolverinfo");
  92. InfoGroup.PlaceCheckBox("Resolver info", this, &ResolverInfo);
  93.  
  94. OptionsCompRank.SetFileId("opt_comprank");
  95. InfoGroup.PlaceCheckBox("Ranks", this, &OptionsCompRank);
  96.  
  97. RemovalsGroup.SetText("Removals");
  98. RemovalsGroup.SetPosition(566 - 40, -15 - 8);
  99. RemovalsGroup.SetSize(173, 155);
  100. RegisterControl(&RemovalsGroup);
  101.  
  102.  
  103. OtherNoVisualRecoil.SetFileId("otr_visrecoil");
  104. RemovalsGroup.PlaceCheckBox("Remove visual recoil", this, &OtherNoVisualRecoil);
  105.  
  106. OtherNoFlash.SetFileId("otr_noflash");
  107. RemovalsGroup.PlaceCheckBox("Remove flashbang", this, &OtherNoFlash);
  108.  
  109. OtherNoSmoke.SetFileId("otr_nosmoke");
  110. RemovalsGroup.PlaceCheckBox("Remove smoke", this, &OtherNoSmoke);
  111.  
  112. OtherNoScope.SetFileId("otr_noscope");
  113. RemovalsGroup.PlaceCheckBox("Remove scope", this, &OtherNoScope);
  114.  
  115. #pragma endregion Setting up the Options controls
  116.  
  117. #pragma region Filters
  118. FiltersGroup.SetText("Filters");
  119. FiltersGroup.SetPosition(749 - 40, -15 - 8);
  120. FiltersGroup.SetSize(173, 155);
  121. RegisterControl(&FiltersGroup);
  122.  
  123. //FiltersAll.SetFileId("ftr_all");
  124. //FiltersGroup.PlaceCheckBox("All", this, &FiltersAll);
  125.  
  126. FiltersPlayers.SetFileId("ftr_players");
  127. FiltersGroup.PlaceCheckBox("Players", this, &FiltersPlayers);
  128.  
  129. FiltersSelf.SetFileId("ftr_self");
  130. FiltersGroup.PlaceCheckBox("Local", this, &FiltersSelf);
  131.  
  132. FiltersEnemiesOnly.SetFileId("ftr_enemyonly");
  133. FiltersGroup.PlaceCheckBox("Enemies only", this, &FiltersEnemiesOnly);
  134.  
  135. FiltersWeapons.SetFileId("ftr_weaps");
  136. FiltersGroup.PlaceCheckBox("Weapons", this, &FiltersWeapons);
  137.  
  138. FiltersNades.SetFileId("ftr_nades");
  139. FiltersGroup.PlaceCheckBox("Nades", this, &FiltersNades);
  140.  
  141. FiltersC4.SetFileId("ftr_c4");
  142. FiltersGroup.PlaceCheckBox("C4", this, &FiltersC4);
  143.  
  144. #pragma endregion Setting up the Filters controls
  145.  
  146. #pragma region Other
  147. OtherGroup.SetText("Show");
  148. OtherGroup.SetPosition(150, 155);
  149. OtherGroup.SetSize(173, 155);
  150. RegisterControl(&OtherGroup);
  151.  
  152. OtherSpreadCrosshair.SetFileId("otr_spreadhair");
  153. OtherGroup.PlaceCheckBox("Show innacuracy", this, &OtherSpreadCrosshair);
  154.  
  155. SpecList.SetFileId("otr_speclist");
  156. OtherGroup.PlaceCheckBox("Spectators", this, &SpecList);
  157.  
  158. OtherRadar.SetFileId("otr_radar");
  159. OtherGroup.PlaceCheckBox("Radar", this, &OtherRadar);
  160.  
  161. Watermark.SetFileId("otr_watermark");
  162. OtherGroup.PlaceCheckBox("Watermark", this, &Watermark);
  163.  
  164. WelcomeMessage.SetFileId("otr_welcomemsg");
  165. WelcomeMessage.SetState(false);
  166. OtherGroup.PlaceCheckBox("Show greeting", this, &WelcomeMessage);
  167.  
  168. LBYIndicator.SetFileId("otr_lbyindicator");
  169. OtherGroup.PlaceCheckBox("LBY Indicator", this, &LBYIndicator);
  170.  
  171. GlowGroup.SetText("Glow");
  172. GlowGroup.SetPosition(363 - 25, 155);
  173. GlowGroup.SetSize(173, 155);
  174. RegisterControl(&GlowGroup);
  175.  
  176. OptionsGlow.SetFileId("opt_glow");
  177. GlowGroup.PlaceCheckBox("Glow", this, &OptionsGlow);
  178.  
  179. EntityGlow.SetFileId("opt_entityglow");
  180. GlowGroup.PlaceCheckBox("Entity glow", this, &EntityGlow);
  181.  
  182. //GlowZ.SetFileId("opt_glowz");
  183. GlowZ.SetBoundaries(0.f, 255.f);
  184. GlowZ.SetValue(255);
  185. //OptionsGroup.PlaceOtherControl("Glow Alpha", this, &GlowZ);
  186.  
  187. RenderGroup.SetText("Render");
  188. RenderGroup.SetPosition(709, 155);
  189. RenderGroup.SetSize(173, 155);
  190. RegisterControl(&RenderGroup);
  191.  
  192. Barrels.SetFileId("opt_barrels");
  193. RenderGroup.PlaceCheckBox("Trace lines", this, &Barrels);
  194.  
  195. AALines.SetFileId("opt_aalines");
  196. RenderGroup.PlaceCheckBox("Anti-Aim lines", this, &AALines);
  197.  
  198. OtherViewmodelFOV.SetFileId("otr_viewfov");
  199. OtherViewmodelFOV.SetBoundaries(0.f, 180.f);
  200. OtherViewmodelFOV.SetValue(0.f);
  201. RenderGroup.PlaceOtherControl("Viewmodel FOV", this, &OtherViewmodelFOV);
  202.  
  203. OtherFOV.SetFileId("otr_fov");
  204. OtherFOV.SetBoundaries(0.f, 70.f);
  205. OtherFOV.SetValue(0.f);
  206. RenderGroup.PlaceOtherControl("Render FOV", this, &OtherFOV);
  207.  
  208.  
  209.  
  210. #pragma endregion Setting up the Other controls
  211. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement