diff options
author | Vittorio Romeo <vittorio.romeo@outlook.com> | 2021-11-25 02:30:06 +0000 |
---|---|---|
committer | Vittorio Romeo <vittorio.romeo@outlook.com> | 2021-11-25 02:30:06 +0000 |
commit | 5608fe94cbc2f07d79c8f920e2be597697f473e3 (patch) | |
tree | 9271deaa281a8fc9b4f83cc36dc1894a458e02a5 | |
parent | 5a0703dd14cf74e757b79b79004a0ad3408c52f8 (diff) |
Add options for "show swap particles", "play swap ready sound" and "show swap blinking effect"
-rw-r--r-- | include/SSVOpenHexagon/Global/Config.hpp | 6 | ||||
-rw-r--r-- | src/SSVOpenHexagon/Global/Config.cpp | 33 |
2 files changed, 39 insertions, 0 deletions
diff --git a/include/SSVOpenHexagon/Global/Config.hpp b/include/SSVOpenHexagon/Global/Config.hpp index a3916f3f..fc2100c7 100644 --- a/include/SSVOpenHexagon/Global/Config.hpp +++ b/include/SSVOpenHexagon/Global/Config.hpp @@ -89,6 +89,9 @@ void setPlayerTrailAlpha(unsigned int x); void setPlayerTrailScale(float x); void setPlayerTrailDecay(float x); void setPlayerTrailHasSwapColor(bool x); +void setShowSwapParticles(bool x); +void setPlaySwapReadySound(bool x); +void setShowSwapBlinkingEffect(bool x); [[nodiscard]] bool getOfficial(); [[nodiscard]] const std::string& getUneligibilityReason(); @@ -162,6 +165,9 @@ void setPlayerTrailHasSwapColor(bool x); [[nodiscard]] float getPlayerTrailScale(); [[nodiscard]] float getPlayerTrailDecay(); [[nodiscard]] bool getPlayerTrailHasSwapColor(); +[[nodiscard]] bool getShowSwapParticles(); +[[nodiscard]] bool getPlaySwapReadySound(); +[[nodiscard]] bool getShowSwapBlinkingEffect(); // keyboard binds diff --git a/src/SSVOpenHexagon/Global/Config.cpp b/src/SSVOpenHexagon/Global/Config.cpp index bf08844e..8470df37 100644 --- a/src/SSVOpenHexagon/Global/Config.cpp +++ b/src/SSVOpenHexagon/Global/Config.cpp @@ -246,6 +246,9 @@ using cil = std::initializer_list<cmb>; X(playerTrailScale, float, "player_trail_scale", 0.9f) \ X(playerTrailDecay, float, "player_trail_decay", 3.0f) \ X(playerTrailHasSwapColor, bool, "player_trail_has_swap_color", true) \ + X(showSwapParticles, bool, "show_swap_particles", true) \ + X(playSwapReadySound, bool, "play_swap_ready_sound", true) \ + X(showSwapBlinkingEffect, bool, "show_swap_blinking_effect", true) \ X_LINKEDVALUES_BINDS namespace hg::Config { @@ -797,6 +800,21 @@ void setPlayerTrailHasSwapColor(bool x) playerTrailHasSwapColor() = x; } +void setShowSwapParticles(bool x) +{ + showSwapParticles() = x; +} + +void setPlaySwapReadySound(bool x) +{ + playSwapReadySound() = x; +} + +void setShowSwapBlinkingEffect(bool x) +{ + showSwapBlinkingEffect() = x; +} + [[nodiscard]] bool getOfficial() { return official(); @@ -1157,6 +1175,21 @@ void setPlayerTrailHasSwapColor(bool x) return playerTrailHasSwapColor(); } +[[nodiscard]] bool getShowSwapParticles() +{ + return showSwapParticles(); +} + +[[nodiscard]] bool getPlaySwapReadySound() +{ + return playSwapReadySound(); +} + +[[nodiscard]] bool getShowSwapBlinkingEffect() +{ + return showSwapBlinkingEffect(); +} + //*********************************************************** // // KEYBOARD/MOUSE BINDS |