Skip to content

Commit

Permalink
Implement updating settings dropdown selection from C++
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkrupinski committed Jan 7, 2025
1 parent 7ae41cc commit 9281744
Show file tree
Hide file tree
Showing 15 changed files with 290 additions and 55 deletions.
12 changes: 12 additions & 0 deletions Source/CS2/Panorama/CDropDown.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#pragma once

#include "CPanel2D.h"

namespace cs2
{

struct CDropDown : CPanel2D {
using SetSelectedIndex = void(CDropDown* thisptr, int index);
};

}
27 changes: 27 additions & 0 deletions Source/GameClasses/PanoramaDropDown.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#pragma once

#include <CS2/Panorama/CDropDown.h>
#include <MemoryPatterns/PatternTypes/PanoramaDropDownPatternTypes.h>

template <typename HookContext>
class PanoramaDropDown {
public:
PanoramaDropDown(HookContext& hookContext, cs2::CDropDown* dropDown) noexcept
: hookContext{hookContext}
, dropDown{dropDown}
{
}

using RawType = cs2::CDropDown;

void setSelectedIndex(int index) const noexcept
{
const auto setSelectedIndexFn = hookContext.clientPatternSearchResults().template get<SetSelectedIndexFunctionPointer>();
if (dropDown && setSelectedIndexFn)
setSelectedIndexFn(dropDown, index);
}

private:
HookContext& hookContext;
cs2::CDropDown* dropDown;
};
1 change: 1 addition & 0 deletions Source/MemoryPatterns/Linux/LinuxPatterns.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include "MemAllocPatternsLinux.h"
#include "PanelPatternsLinux.h"
#include "PanelStylePatternsLinux.h"
#include "PanoramaDropDownPatternsLinux.h"
#include "PanoramaImagePanelPatternsLinux.h"
#include "PanoramaLabelPatternsLinux.h"
#include "PanoramaUiEnginePatternsLinux.h"
Expand Down
12 changes: 12 additions & 0 deletions Source/MemoryPatterns/Linux/PanoramaDropDownPatternsLinux.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#pragma once

#include <MemoryPatterns/PatternTypes/PanoramaDropDownPatternTypes.h>
#include <MemorySearch/CodePattern.h>

struct PanoramaDropDownPatterns {
[[nodiscard]] static consteval auto addClientPatterns(auto clientPatterns) noexcept
{
return clientPatterns
.template addPattern<SetSelectedIndexFunctionPointer, CodePattern{"55 48 89 E5 41 55 41 89 F5 41 54 48 8D 77 ? 49 89 FC 53 48 83 EC ? 8B"}>();
}
};
1 change: 1 addition & 0 deletions Source/MemoryPatterns/MemoryPatterns.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ constexpr auto kClientPatterns = []() consteval {
.ADD_PATTERNS(GlowSceneObjectPatterns)
.ADD_PATTERNS(MemAllocPatterns)
.ADD_PATTERNS(PanelPatterns)
.ADD_PATTERNS(PanoramaDropDownPatterns)
.ADD_PATTERNS(PanoramaImagePanelPatterns)
.ADD_PATTERNS(PanoramaLabelPatterns)
.ADD_PATTERNS(PanoramaUiEnginePatterns)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#pragma once

#include <CS2/Panorama/CDropDown.h>
#include <Utils/StrongTypeAlias.h>

STRONG_TYPE_ALIAS(SetSelectedIndexFunctionPointer, cs2::CDropDown::SetSelectedIndex*);
12 changes: 12 additions & 0 deletions Source/MemoryPatterns/Windows/PanoramaDropDownPatternsWindows.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#pragma once

#include <MemoryPatterns/PatternTypes/PanoramaDropDownPatternTypes.h>
#include <MemorySearch/CodePattern.h>

struct PanoramaDropDownPatterns {
[[nodiscard]] static consteval auto addClientPatterns(auto clientPatterns) noexcept
{
return clientPatterns
.template addPattern<SetSelectedIndexFunctionPointer, CodePattern{"48 89 5C 24 ? 48 89 74 24 ? 57 48 83 EC ? 8B 05 ? ? ? ? 8B"}>();
}
};
1 change: 1 addition & 0 deletions Source/MemoryPatterns/Windows/WindowsPatterns.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include "MemAllocPatternsWindows.h"
#include "PanelPatternsWindows.h"
#include "PanelStylePatternsWindows.h"
#include "PanoramaDropDownPatternsWindows.h"
#include "PanoramaImagePanelPatternsWindows.h"
#include "PanoramaLabelPatternsWindows.h"
#include "PanoramaUiEnginePatternsWindows.h"
Expand Down
6 changes: 6 additions & 0 deletions Source/Osiris.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
<ClInclude Include="CS2\Constants\StylePropertySymbolNames.h" />
<ClInclude Include="CS2\Constants\StylePropertyTypeNames.h" />
<ClInclude Include="CS2\Constants\TeamNumberConstants.h" />
<ClInclude Include="CS2\Panorama\CDropDown.h" />
<ClInclude Include="CS2\Panorama\CImagePanel.h" />
<ClInclude Include="CS2\Panorama\CLabel.h" />
<ClInclude Include="CS2\Panorama\CPanel2D.h" />
Expand Down Expand Up @@ -287,6 +288,7 @@
<ClInclude Include="GameClasses\PanelFontParams.h" />
<ClInclude Include="GameClasses\PanelHandle.h" />
<ClInclude Include="GameClasses\PanelMarginParams.h" />
<ClInclude Include="GameClasses\PanoramaDropDown.h" />
<ClInclude Include="GameClasses\PanoramaImagePanel.h" />
<ClInclude Include="GameClasses\PanoramaImagePanelContext.h" />
<ClInclude Include="GameClasses\PanoramaLabel.h" />
Expand Down Expand Up @@ -388,6 +390,7 @@
<ClInclude Include="MemoryPatterns\Windows\MemAllocPatternsWindows.h" />
<ClInclude Include="MemoryPatterns\Windows\PanelPatternsWindows.h" />
<ClInclude Include="MemoryPatterns\Windows\PanelStylePatternsWindows.h" />
<ClInclude Include="MemoryPatterns\Windows\PanoramaDropDownPatternsWindows.h" />
<ClInclude Include="MemoryPatterns\Windows\PanoramaImagePanelPatternsWindows.h" />
<ClInclude Include="MemoryPatterns\Windows\PanoramaLabelPatternsWindows.h" />
<ClInclude Include="MemoryPatterns\Windows\PanoramaUiEnginePatternsWindows.h" />
Expand Down Expand Up @@ -469,11 +472,14 @@
<ClInclude Include="SDL\SdlConstants.h" />
<ClInclude Include="SDL\SdlDll.h" />
<ClInclude Include="SDL\SdlFunctions.h" />
<ClInclude Include="UI\Panorama\HudTab.h" />
<ClInclude Include="UI\Panorama\PanoramaCommandDispatcher.h" />
<ClInclude Include="UI\Panorama\PanoramaGUI.h" />
<ClInclude Include="UI\Panorama\PanoramaGuiState.h" />
<ClInclude Include="UI\Panorama\PanoramaGuiUnloadHandler.h" />
<ClInclude Include="UI\Panorama\SetCommandHandler.h" />
<ClInclude Include="UI\Panorama\SoundTab.h" />
<ClInclude Include="UI\Panorama\VisualsTab.h" />
<ClInclude Include="Utils\Align.h" />
<ClInclude Include="Utils\BitFlags.h" />
<ClInclude Include="Utils\CharUtils.h" />
Expand Down
39 changes: 18 additions & 21 deletions Source/Osiris.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -1250,9 +1250,6 @@
<ClInclude Include="Features\Visuals\OutlineGlow\WeaponOutlineGlow\WeaponOutlineGlowContext.h">
<Filter>Features\Visuals\OutlineGlow\WeaponOutlineGlow</Filter>
</ClInclude>
<ClInclude Include="Features\Visuals\OutlineGlow\WeaponOutlineGlow\WeaponOutlineGlowState.h">
<Filter>Features\Visuals\OutlineGlow\WeaponOutlineGlow</Filter>
</ClInclude>
<ClInclude Include="Features\Visuals\OutlineGlow\WeaponOutlineGlow\WeaponOutlineGlowToggle.h">
<Filter>Features\Visuals\OutlineGlow\WeaponOutlineGlow</Filter>
</ClInclude>
Expand All @@ -1268,9 +1265,6 @@
<ClInclude Include="Features\Visuals\OutlineGlow\PlayerOutlineGlow\PlayerOutlineGlowContext.h">
<Filter>Features\Visuals\OutlineGlow\PlayerOutlineGlow</Filter>
</ClInclude>
<ClInclude Include="Features\Visuals\OutlineGlow\PlayerOutlineGlow\PlayerOutlineGlowState.h">
<Filter>Features\Visuals\OutlineGlow\PlayerOutlineGlow</Filter>
</ClInclude>
<ClInclude Include="Features\Visuals\OutlineGlow\PlayerOutlineGlow\PlayerOutlineGlowToggle.h">
<Filter>Features\Visuals\OutlineGlow\PlayerOutlineGlow</Filter>
</ClInclude>
Expand All @@ -1286,9 +1280,6 @@
<ClInclude Include="Features\Visuals\OutlineGlow\DefuseKitOutlineGlow\DefuseKitOutlineGlowContext.h">
<Filter>Features\Visuals\OutlineGlow\DefuseKitOutlineGlow</Filter>
</ClInclude>
<ClInclude Include="Features\Visuals\OutlineGlow\DefuseKitOutlineGlow\DefuseKitOutlineGlowState.h">
<Filter>Features\Visuals\OutlineGlow\DefuseKitOutlineGlow</Filter>
</ClInclude>
<ClInclude Include="Features\Visuals\OutlineGlow\DefuseKitOutlineGlow\DefuseKitOutlineGlowToggle.h">
<Filter>Features\Visuals\OutlineGlow\DefuseKitOutlineGlow</Filter>
</ClInclude>
Expand All @@ -1304,9 +1295,6 @@
<ClInclude Include="Features\Visuals\OutlineGlow\GrenadeProjectileOutlineGlow\GrenadeProjectileOutlineGlowContext.h">
<Filter>Features\Visuals\OutlineGlow\GrenadeProjectileOutlineGlow</Filter>
</ClInclude>
<ClInclude Include="Features\Visuals\OutlineGlow\GrenadeProjectileOutlineGlow\GrenadeProjectileOutlineGlowState.h">
<Filter>Features\Visuals\OutlineGlow\GrenadeProjectileOutlineGlow</Filter>
</ClInclude>
<ClInclude Include="Features\Visuals\OutlineGlow\GrenadeProjectileOutlineGlow\GrenadeProjectileOutlineGlowToggle.h">
<Filter>Features\Visuals\OutlineGlow\GrenadeProjectileOutlineGlow</Filter>
</ClInclude>
Expand All @@ -1328,9 +1316,6 @@
<ClInclude Include="Features\Visuals\OutlineGlow\DroppedBombOutlineGlow\DroppedBombOutlineGlowContext.h">
<Filter>Features\Visuals\OutlineGlow\DroppedBombOutlineGlow</Filter>
</ClInclude>
<ClInclude Include="Features\Visuals\OutlineGlow\DroppedBombOutlineGlow\DroppedBombOutlineGlowState.h">
<Filter>Features\Visuals\OutlineGlow\DroppedBombOutlineGlow</Filter>
</ClInclude>
<ClInclude Include="Features\Visuals\OutlineGlow\DroppedBombOutlineGlow\DroppedBombOutlineGlowToggle.h">
<Filter>Features\Visuals\OutlineGlow\DroppedBombOutlineGlow</Filter>
</ClInclude>
Expand All @@ -1352,9 +1337,6 @@
<ClInclude Include="Features\Visuals\OutlineGlow\TickingBombOutlineGlow\TickingBombOutlineGlowContext.h">
<Filter>Features\Visuals\OutlineGlow\TickingBombOutlineGlow</Filter>
</ClInclude>
<ClInclude Include="Features\Visuals\OutlineGlow\TickingBombOutlineGlow\TickingBombOutlineGlowState.h">
<Filter>Features\Visuals\OutlineGlow\TickingBombOutlineGlow</Filter>
</ClInclude>
<ClInclude Include="Features\Visuals\OutlineGlow\TickingBombOutlineGlow\TickingBombOutlineGlowToggle.h">
<Filter>Features\Visuals\OutlineGlow\TickingBombOutlineGlow</Filter>
</ClInclude>
Expand All @@ -1364,9 +1346,6 @@
<ClInclude Include="Features\Visuals\OutlineGlow\HostageOutlineGlow\HostageOutlineGlowContext.h">
<Filter>Features\Visuals\OutlineGlow\HostageOutlineGlow</Filter>
</ClInclude>
<ClInclude Include="Features\Visuals\OutlineGlow\HostageOutlineGlow\HostageOutlineGlowState.h">
<Filter>Features\Visuals\OutlineGlow\HostageOutlineGlow</Filter>
</ClInclude>
<ClInclude Include="Features\Visuals\OutlineGlow\HostageOutlineGlow\HostageOutlineGlowToggle.h">
<Filter>Features\Visuals\OutlineGlow\HostageOutlineGlow</Filter>
</ClInclude>
Expand Down Expand Up @@ -1742,6 +1721,24 @@
<ClInclude Include="CS2\Classes\EntitySystem\CEntityClass.h">
<Filter>CS2\Classes\EntitySystem</Filter>
</ClInclude>
<ClInclude Include="MemoryPatterns\Windows\PanoramaDropDownPatternsWindows.h">
<Filter>MemoryPatterns\Windows</Filter>
</ClInclude>
<ClInclude Include="CS2\Panorama\CDropDown.h">
<Filter>CS2\Panorama</Filter>
</ClInclude>
<ClInclude Include="UI\Panorama\VisualsTab.h">
<Filter>UI\Panorama</Filter>
</ClInclude>
<ClInclude Include="GameClasses\PanoramaDropDown.h">
<Filter>GameClasses</Filter>
</ClInclude>
<ClInclude Include="UI\Panorama\HudTab.h">
<Filter>UI\Panorama</Filter>
</ClInclude>
<ClInclude Include="UI\Panorama\SoundTab.h">
<Filter>UI\Panorama</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<None Include="UI\Panorama\CreateGUI.js">
Expand Down
65 changes: 31 additions & 34 deletions Source/UI/Panorama/CreateGUI.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ $.Osiris = (function () {
return content;
};

var createDropDown = function (parent, labelText, section, feature, options, defaultIndex = 1) {
var createDropDown = function (parent, labelText, section, feature, options) {
var container = $.CreatePanel('Panel', parent, '', {
class: "SettingsMenuDropdownContainer"
});
Expand All @@ -250,17 +250,14 @@ $.Osiris = (function () {
text: options[i]
}));
}

dropdown.SetSelectedIndex(defaultIndex);
dropdown.RefreshDisplay();
};

var createOnOffDropDown = function (parent, labelText, section, feature) {
createDropDown(parent, labelText, section, feature, ["On", "Off"]);
};

var createYesNoDropDown = function (parent, labelText, section, feature, defaultIndex = 1) {
createDropDown(parent, labelText, section, feature, ["Yes", "No"], defaultIndex);
var createYesNoDropDown = function (parent, labelText, section, feature) {
createDropDown(parent, labelText, section, feature, ["Yes", "No"]);
};

var separator = function (parent) {
Expand All @@ -287,82 +284,82 @@ $.Osiris = (function () {
var playerInfoTab = createSubTab(visuals, 'player_info');

var playerInfo = createSection(playerInfoTab, 'Player Info In World');
createDropDown(playerInfo, "Master Switch", 'visuals', 'player_information_through_walls', ['Enemies', 'All Players', 'Off'], 2);
createDropDown(playerInfo, "Master Switch", 'visuals', 'player_information_through_walls', ['Enemies', 'All Players', 'Off']);

var playerPosition = createSection(playerInfoTab, 'Player Position');
createYesNoDropDown(playerPosition, "Show Player Position Arrow", 'visuals', 'player_info_position', 0);
createYesNoDropDown(playerPosition, "Show Player Position Arrow", 'visuals', 'player_info_position');
separator(playerPosition);
createDropDown(playerPosition, "Player Position Arrow Color", 'visuals', 'player_info_position_color', ['Player / Team Color', 'Team Color'], 0);
createDropDown(playerPosition, "Player Position Arrow Color", 'visuals', 'player_info_position_color', ['Player / Team Color', 'Team Color']);

var playerHealth = createSection(playerInfoTab, 'Player Health');
createYesNoDropDown(playerHealth, "Show Player Health", 'visuals', 'player_info_health', 0);
createYesNoDropDown(playerHealth, "Show Player Health", 'visuals', 'player_info_health');
separator(playerHealth);
createDropDown(playerHealth, "Player Health Text Color", 'visuals', 'player_info_health_color', ['Health-based', 'White'], 0);
createDropDown(playerHealth, "Player Health Text Color", 'visuals', 'player_info_health_color', ['Health-based', 'White']);

var playerWeapon = createSection(playerInfoTab, 'Player Weapon');
createYesNoDropDown(playerWeapon, "Show Player Active Weapon Icon", 'visuals', 'player_info_weapon', 0);
createYesNoDropDown(playerWeapon, "Show Player Active Weapon Icon", 'visuals', 'player_info_weapon');
separator(playerWeapon);
createYesNoDropDown(playerWeapon, "Show Player Active Weapon Ammo", 'visuals', 'player_info_weapon_clip', 0);
createYesNoDropDown(playerWeapon, "Show Player Active Weapon Ammo", 'visuals', 'player_info_weapon_clip');
separator(playerWeapon);
createYesNoDropDown(playerWeapon, 'Show Bomb Carrier Icon', 'visuals', 'player_info_bomb_carrier', 0);
createYesNoDropDown(playerWeapon, 'Show Bomb Carrier Icon', 'visuals', 'player_info_bomb_carrier');
separator(playerWeapon);
createYesNoDropDown(playerWeapon, 'Show Bomb Planting Icon', 'visuals', 'player_info_bomb_planting', 0);
createYesNoDropDown(playerWeapon, 'Show Bomb Planting Icon', 'visuals', 'player_info_bomb_planting');

var playerIcons = createSection(playerInfoTab, 'Icons');
createYesNoDropDown(playerIcons, "Show Defuse Icon", 'visuals', 'player_info_defuse', 0);
createYesNoDropDown(playerIcons, "Show Defuse Icon", 'visuals', 'player_info_defuse');
separator(playerIcons);
createYesNoDropDown(playerIcons, 'Show Picking Up Hostage Icon', 'visuals', 'player_info_hostage_pickup', 0);
createYesNoDropDown(playerIcons, 'Show Picking Up Hostage Icon', 'visuals', 'player_info_hostage_pickup');
separator(playerIcons);
createYesNoDropDown(playerIcons, 'Show Rescuing Hostage Icon', 'visuals', 'player_info_hostage_rescue', 0);
createYesNoDropDown(playerIcons, 'Show Rescuing Hostage Icon', 'visuals', 'player_info_hostage_rescue');
separator(playerIcons);
createYesNoDropDown(playerIcons, 'Show Blinded By Flashbang Icon', 'visuals', 'player_info_blinded', 0);
createYesNoDropDown(playerIcons, 'Show Blinded By Flashbang Icon', 'visuals', 'player_info_blinded');

var outlineGlowTab = createSubTab(visuals, 'outline_glow');

var outlineGlow = createSection(outlineGlowTab, 'Outline Glow');
createOnOffDropDown(outlineGlow, "Master Switch", 'visuals', 'outline_glow_enable');

var playerOutlineGlow = createSection(outlineGlowTab, 'Players');
createDropDown(playerOutlineGlow, "Glow Players", 'visuals', 'player_outline_glow', ['Enemies', 'All Players', 'Off'], 0);
createDropDown(playerOutlineGlow, "Glow Players", 'visuals', 'player_outline_glow', ['Enemies', 'All Players', 'Off']);
separator(playerOutlineGlow);
createDropDown(playerOutlineGlow, "Player Glow Color", 'visuals', 'player_outline_glow_color', ['Player / Team Color', 'Team Color', 'Health-based'], 0);
createDropDown(playerOutlineGlow, "Player Glow Color", 'visuals', 'player_outline_glow_color', ['Player / Team Color', 'Team Color', 'Health-based']);

var weaponOutlineGlow = createSection(outlineGlowTab, 'Weapons');
createYesNoDropDown(weaponOutlineGlow, "Glow Weapons on Ground Nearby", 'visuals', 'weapon_outline_glow', 0);
createYesNoDropDown(weaponOutlineGlow, "Glow Weapons on Ground Nearby", 'visuals', 'weapon_outline_glow');
separator(weaponOutlineGlow);
createYesNoDropDown(weaponOutlineGlow, "Glow Grenade Projectiles", 'visuals', 'grenade_proj_outline_glow', 0);
createYesNoDropDown(weaponOutlineGlow, "Glow Grenade Projectiles", 'visuals', 'grenade_proj_outline_glow');

var bombAndDefuseKitOutlineGlow = createSection(outlineGlowTab, 'Bomb & Defuse Kit');
createYesNoDropDown(bombAndDefuseKitOutlineGlow, "Glow Dropped Bomb", 'visuals', 'dropped_bomb_outline_glow', 0);
createYesNoDropDown(bombAndDefuseKitOutlineGlow, "Glow Dropped Bomb", 'visuals', 'dropped_bomb_outline_glow');
separator(bombAndDefuseKitOutlineGlow);
createYesNoDropDown(bombAndDefuseKitOutlineGlow, "Glow Ticking Bomb", 'visuals', 'ticking_bomb_outline_glow', 0);
createYesNoDropDown(bombAndDefuseKitOutlineGlow, "Glow Ticking Bomb", 'visuals', 'ticking_bomb_outline_glow');
separator(bombAndDefuseKitOutlineGlow);
createYesNoDropDown(bombAndDefuseKitOutlineGlow, "Glow Defuse Kits on Ground Nearby", 'visuals', 'defuse_kit_outline_glow', 0);
createYesNoDropDown(bombAndDefuseKitOutlineGlow, "Glow Defuse Kits on Ground Nearby", 'visuals', 'defuse_kit_outline_glow');

var hostageOutlineGlow = createSection(outlineGlowTab, 'Hostages');
createYesNoDropDown(hostageOutlineGlow, "Glow Hostages", 'visuals', 'hostage_outline_glow', 0);
createYesNoDropDown(hostageOutlineGlow, "Glow Hostages", 'visuals', 'hostage_outline_glow');

var modelGlowTab = createSubTab(visuals, 'model_glow');

var modelGlow = createSection(modelGlowTab, 'Model Glow');
createOnOffDropDown(modelGlow, "Master Switch", 'visuals', 'model_glow_enable');

var playerModelGlow = createSection(modelGlowTab, 'Players');
createDropDown(playerModelGlow, "Glow Player Models", 'visuals', 'player_model_glow', ['Enemies', 'All Players', 'Off'], 0);
createDropDown(playerModelGlow, "Glow Player Models", 'visuals', 'player_model_glow', ['Enemies', 'All Players', 'Off']);
separator(playerModelGlow);
createDropDown(playerModelGlow, "Player Model Glow Color", 'visuals', 'player_model_glow_color', ['Player / Team Color', 'Team Color', 'Health-based'], 0);
createDropDown(playerModelGlow, "Player Model Glow Color", 'visuals', 'player_model_glow_color', ['Player / Team Color', 'Team Color', 'Health-based']);

var weaponModelGlow = createSection(modelGlowTab, 'Weapons');
createYesNoDropDown(weaponModelGlow, "Glow Weapon Models on Ground", 'visuals', 'weapon_model_glow', 0);
createYesNoDropDown(weaponModelGlow, "Glow Weapon Models on Ground", 'visuals', 'weapon_model_glow');
separator(weaponModelGlow);
createYesNoDropDown(weaponModelGlow, "Glow Grenade Projectile Models", 'visuals', 'grenade_proj_model_glow', 0);
createYesNoDropDown(weaponModelGlow, "Glow Grenade Projectile Models", 'visuals', 'grenade_proj_model_glow');

var bombModelGlow = createSection(modelGlowTab, 'Bomb & Defuse Kit');
createYesNoDropDown(bombModelGlow, "Glow Dropped Bomb Model", 'visuals', 'dropped_bomb_model_glow', 0);
createYesNoDropDown(bombModelGlow, "Glow Dropped Bomb Model", 'visuals', 'dropped_bomb_model_glow');
separator(bombModelGlow);
createYesNoDropDown(bombModelGlow, "Glow Ticking Bomb Model", 'visuals', 'ticking_bomb_model_glow', 0);
createYesNoDropDown(bombModelGlow, "Glow Ticking Bomb Model", 'visuals', 'ticking_bomb_model_glow');
separator(bombModelGlow);
createYesNoDropDown(bombModelGlow, "Glow Defuse Kit Models on Ground", 'visuals', 'defuse_kit_model_glow', 0);
createYesNoDropDown(bombModelGlow, "Glow Defuse Kit Models on Ground", 'visuals', 'defuse_kit_model_glow');

$.Osiris.navigateToSubTab('visuals', 'player_info');

Expand Down
Loading

0 comments on commit 9281744

Please sign in to comment.