5using System.Windows.Forms;
14using SteelSeries.GameSense;
15using SteelSeries.GameSense.DeviceZone;
60 DefaultDisplayName =
"Left Mouse Button"
67 DefaultDisplayName =
"Right Mouse Button"
74 DefaultDisplayName =
"Up"
81 DefaultDisplayName =
"Down"
88 DefaultDisplayName =
"Left"
95 DefaultDisplayName =
"Right"
102 DefaultDisplayName =
"Jump"
109 DefaultDisplayName =
"Throw"
116 DefaultDisplayName =
"Inventory"
123 DefaultDisplayName =
"Grapple"
130 DefaultDisplayName =
"Smart Select"
137 DefaultDisplayName =
"Smart Cursor"
144 DefaultDisplayName =
"Quick Mount"
151 DefaultDisplayName =
"Quick Heal"
158 DefaultDisplayName =
"Quick Mana"
165 DefaultDisplayName =
"Quick Buff"
172 DefaultDisplayName =
"Map Zoom In"
179 DefaultDisplayName =
"Map Zoom Out"
186 DefaultDisplayName =
"Map Transparency Up"
193 DefaultDisplayName =
"Map Transparency Down"
200 DefaultDisplayName =
"Map Full"
207 DefaultDisplayName =
"Map Style"
214 DefaultDisplayName =
"Hotbar 1"
221 DefaultDisplayName =
"Hotbar 2"
228 DefaultDisplayName =
"Hotbar 3"
235 DefaultDisplayName =
"Hotbar 4"
242 DefaultDisplayName =
"Hotbar 5"
249 DefaultDisplayName =
"Hotbar 6"
256 DefaultDisplayName =
"Hotbar 7"
263 DefaultDisplayName =
"Hotbar 8"
270 DefaultDisplayName =
"Hotbar 9"
277 DefaultDisplayName =
"Hotbar 10"
284 DefaultDisplayName =
"Hotbar Minus"
291 DefaultDisplayName =
"Hotbar Plus"
298 DefaultDisplayName =
"Dpad Radial 1"
305 DefaultDisplayName =
"Dpad Radial 2"
312 DefaultDisplayName =
"Dpad Radial 3"
319 DefaultDisplayName =
"Dpad Radial 4"
326 DefaultDisplayName =
"Radial Hotbar"
330 "KEY_RADIALQUICKBAR",
333 DefaultDisplayName =
"Radial Quickbar"
340 DefaultDisplayName =
"Dpad Snap 1"
347 DefaultDisplayName =
"Dpad Snap 2"
354 DefaultDisplayName =
"Dpad Snap 3"
361 DefaultDisplayName =
"Dpad Snap 4"
368 DefaultDisplayName =
"Menu Up"
375 DefaultDisplayName =
"Menu Down"
382 DefaultDisplayName =
"Menu Left"
389 DefaultDisplayName =
"Menu Right"
396 DefaultDisplayName =
"Lock On"
403 DefaultDisplayName =
"Zoom In"
410 DefaultDisplayName =
"Zoom Out"
414 "KEY_TOGGLECREATIVEMENU",
417 DefaultDisplayName =
"Toggle Creative Menu"
424 DefaultDisplayName =
"Theme"
431 DefaultDisplayName =
"Zone 1"
438 DefaultDisplayName =
"Zone 2"
445 DefaultDisplayName =
"Zone 3"
452 DefaultDisplayName =
"Zone 4"
459 DefaultDisplayName =
"Zone 5"
466 DefaultDisplayName =
"Zone 6"
473 DefaultDisplayName =
"Zone 7"
480 DefaultDisplayName =
"Zone 8"
487 DefaultDisplayName =
"Zone 9"
494 DefaultDisplayName =
"Zone 10"
501 DefaultDisplayName =
"Zone 11"
508 DefaultDisplayName =
"Zone 12"
515 DefaultDisplayName =
"Life Percent"
522 DefaultDisplayName =
"Mana Percent"
529 DefaultDisplayName =
"Breath Percent"
601 _engine.EnableDeviceGroup(
"Razer");
605 _engine.EnableDeviceGroup(
"Corsair");
609 _engine.EnableDeviceGroup(
"Logitech");
613 _engine.EnableDeviceGroup(
"SteelSeries");
659 int num = (int)
Utils.Clamp((
float)localPlayer.statLife / (float)
localPlayer.statLifeMax2 * 100f, 0f, 100f);
661 int num2 = (int)
Utils.Clamp((
float)localPlayer.statMana / (float)
localPlayer.statManaMax2 * 100f, 0f, 100f);
663 int num3 = (int)
Utils.Clamp((
float)localPlayer.breath / (float)
localPlayer.breathMax * 100f, 0f, 100f);
697 item.defaultDisplayName =
value.DefaultDisplayName;
698 item.localizedDisplayNames =
value.LocalizedNames;
701 _engine.LoadSpecialRules((
object)val);
715 new ContextColorEventHandlerType
717 ContextFrameKey = contextFrameKey,
749 new ContextColorEventHandlerType
751 ContextFrameKey = key,
752 DeviceZone = deviceZone
759 new PartialBitmapEventHandlerType
761 EventsToExclude = eventsToBind.Select((Bind_Event x) => x.eventName).ToArray()
777 DisableAllDeviceGroups();
828 for (
int i = 0; i <
array.Length; i++)
848 RegisterShader(
"Blood Moon", (
ChromaShader)(
object)
new MoonShader(
new Color(10, 0, 0),
Color.
Red,
Color.
Red,
new Color(255, 150, 125)),
CommonConditions.
Events.
BloodMoon, (
ShaderLayer)4);
851 RegisterShader(
"Pirate Invasion", (
ChromaShader)(
object)
new PirateInvasionShader(
new Color(173, 173, 173),
new Color(101, 101, 255),
Color.
Blue,
Color.
Black),
CommonConditions.
Events.
PirateInvasion, (
ShaderLayer)4);
855 RegisterShader(
"Martian Madness", (
ChromaShader)(
object)
new MartianMadnessShader(
new Color(64, 64, 64),
new Color(64, 113, 122),
new Color(255, 255, 0),
new Color(3, 3, 18)),
CommonConditions.
Events.
MartianMadness, (
ShaderLayer)4);
860 RegisterShader(
"Eater of Worlds", (
ChromaShader)(
object)
new WormShader(
new Color(14, 0, 15),
new Color(47, 51, 59),
new Color(20, 25, 11)),
CommonConditions.
Boss.
EaterOfWorlds, (
ShaderLayer)5);
861 RegisterShader(
"Eye of Cthulhu", (
ChromaShader)(
object)
new EyeOfCthulhuShader(
new Color(145, 145, 126),
new Color(138, 0, 0),
new Color(3, 3, 18)),
CommonConditions.
Boss.
EyeOfCthulhu, (
ShaderLayer)5);
862 RegisterShader(
"Skeletron", (
ChromaShader)(
object)
new SkullShader(
new Color(110, 92, 47),
new Color(36, 32, 51),
new Color(0, 0, 0)),
CommonConditions.
Boss.
Skeletron, (
ShaderLayer)5);
869 RegisterShader(
"Destroyer", (
ChromaShader)(
object)
new WormShader(
new Color(25, 25, 25),
new Color(192, 0, 0),
new Color(10, 0, 0)),
CommonConditions.
Boss.
Destroyer, (
ShaderLayer)5);
870 RegisterShader(
"Skeletron Prime", (
ChromaShader)(
object)
new SkullShader(
new Color(110, 92, 47),
new Color(79, 0, 0),
new Color(255, 29, 0)),
CommonConditions.
Boss.
SkeletronPrime, (
ShaderLayer)5);
871 RegisterShader(
"The Twins", (
ChromaShader)(
object)
new TwinsShader(
new Color(145, 145, 126),
new Color(138, 0, 0),
new Color(138, 0, 0),
new Color(20, 20, 20),
new Color(65, 140, 0),
new Color(3, 3, 18)),
CommonConditions.
Boss.
TheTwins, (
ShaderLayer)5);
873 RegisterShader(
"Deerclops", (
ChromaShader)(
object)
new BlizzardShader(
new Vector4(1f, 1f, 1f, 1f),
new Vector4(0.15f, 0.1f, 0.4f, 1f), -0.1f, 0.4f),
CommonConditions.
Boss.
Deerclops, (
ShaderLayer)5);
874 RegisterShader(
"Plantera", (
ChromaShader)(
object)
new PlanteraShader(
new Color(255, 0, 220),
new Color(0, 255, 0),
new Color(12, 4, 0)),
CommonConditions.
Boss.
Plantera, (
ShaderLayer)5);
875 RegisterShader(
"Golem", (
ChromaShader)(
object)
new GolemShader(
new Color(255, 144, 0),
new Color(255, 198, 0),
new Color(10, 10, 0)),
CommonConditions.
Boss.
Golem, (
ShaderLayer)5);
879 RegisterShader(
"Snowstorm", (
ChromaShader)(
object)
new BlizzardShader(
new Vector4(1f, 1f, 1f, 1f),
new Vector4(0.1f, 0.1f, 0.3f, 1f), 0.35f, -0.35f),
CommonConditions.
Weather.
Blizzard, (
ShaderLayer)6);
896 [Conditional(
"DEBUG")]
901 Filters.Scene.OnPostDraw +=
delegate
void RegisterShader(ChromaShader shader, ChromaCondition condition, ShaderLayer layer)
void DisableAllDeviceGroups()
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
void Add(TKey key, TValue value)
static readonly ChromaCondition LavaIndicator
static readonly ChromaCondition Drowning
static readonly ChromaCondition MoonlordComing
static readonly ChromaCondition Keybinds
static readonly ChromaCondition Cultist
static readonly ChromaCondition Destroyer
static readonly ChromaCondition KingSlime
static readonly ChromaCondition Deerclops
static readonly ChromaCondition DukeFishron
static readonly ChromaCondition Plantera
static readonly ChromaCondition Empress
static readonly ChromaCondition QueenSlime
static readonly ChromaCondition Golem
static readonly ChromaCondition QueenBee
static readonly ChromaCondition Skeletron
static readonly ChromaCondition MoonLord
static readonly ChromaCondition BrainOfCthulhu
static readonly ChromaCondition WallOfFlesh
static readonly ChromaCondition EaterOfWorlds
static readonly ChromaCondition TheTwins
static readonly ChromaCondition SkeletronPrime
static readonly ChromaCondition EyeOfCthulhu
static readonly ChromaCondition LowLife
static readonly ChromaCondition Death
static readonly ChromaCondition Caverns
static readonly ChromaCondition Magma
static readonly ChromaCondition Underworld
static readonly ChromaCondition Surface
static readonly ChromaCondition Sky
static readonly ChromaCondition Underground
static readonly ChromaCondition Vines
static readonly ChromaCondition FrostLegion
static readonly ChromaCondition PirateInvasion
static readonly ChromaCondition GoblinArmy
static readonly ChromaCondition StardustPillar
static readonly ChromaCondition VortexPillar
static readonly ChromaCondition FrostMoon
static readonly ChromaCondition MartianMadness
static readonly ChromaCondition DD2Event
static readonly ChromaCondition SolarPillar
static readonly ChromaCondition NebulaPillar
static readonly ChromaCondition BloodMoon
static readonly ChromaCondition SolarEclipse
static readonly ChromaCondition PumpkinMoon
static readonly ChromaCondition Meteorite
static readonly ChromaCondition Ocean
static readonly ChromaCondition Desert
static readonly ChromaCondition Crimson
static readonly ChromaCondition Hallow
static readonly ChromaCondition Corruption
static readonly ChromaCondition Mushroom
static readonly ChromaCondition Snow
static readonly ChromaCondition Jungle
static readonly ChromaCondition CorruptIce
static readonly ChromaCondition GemCave
static readonly ChromaCondition Hallow
static readonly ChromaCondition CrimsonDesert
static readonly ChromaCondition Crimson
static readonly ChromaCondition Desert
static readonly ChromaCondition CrimsonIce
static readonly ChromaCondition CorruptDesert
static readonly ChromaCondition Jungle
static readonly ChromaCondition Temple
static readonly ChromaCondition HallowDesert
static readonly ChromaCondition Granite
static readonly ChromaCondition Shimmer
static readonly ChromaCondition Dungeon
static readonly ChromaCondition Ice
static readonly ChromaCondition Marble
static readonly ChromaCondition Hive
static readonly ChromaCondition Mushroom
static readonly ChromaCondition HallowIce
static readonly ChromaCondition Corrupt
static readonly ChromaCondition Sandstorm
static readonly ChromaCondition Blizzard
static readonly ChromaCondition SlimeRain
static readonly ChromaCondition Rain
static readonly ChromaCondition InMenu
static readonly ChromaCondition DrunkMenu
static void UpdateEvents()
static Dictionary< string, EventLocalization > _localizedEvents
static void LoadSpecialRulesFor_SecondaryDevice(List< Bind_Event > eventsToBind, string eventName, string contextFrameKey, AbstractIlluminationDevice_Zone zone)
static void Configuration_OnSave(Preferences preferences)
static VendorColorProfile _corsairColorProfile
static void LoadSpecialRulesFor_GameSense()
static void LoadSpecialRulesFor_GameSense_Keyboard(List< Bind_Event > eventsToBind)
static void DisableAllDeviceGroups()
static float _rgbUpdateRate
static IntRgbGameValueTracker Event_BreathPercent
static VendorColorProfile _logitechColorProfile
static void OnProcessExit(object sender, EventArgs e)
const string GAME_NAME_ID
static void BindTo(Preferences preferences)
static IntRgbGameValueTracker Event_LifePercent
static void AddGameplayEvents(List< Bind_Event > eventsToBind)
static void LoadSpecialRulesForDevices()
static ChromaEngine _engine
static void RegisterShader(string name, ChromaShader shader, ChromaCondition condition, ShaderLayer layer)
static bool _useSteelSeries
static IntRgbGameValueTracker Event_ManaPercent
static void AddDebugDraw()
static VendorColorProfile _steelSeriesColorProfile
static void Configuration_OnLoad(Preferences obj)
static VendorColorProfile _razerColorProfile
static ChromaEngine Chroma
static Microsoft.Xna.Framework.Color hslToRgb(Vector3 hslVector)
static Player LocalPlayer
Dictionary< string, string > LocalizedNames
string DefaultDisplayName