-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
106 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
using HarmonyLib; | ||
using Il2CppAssets.Scripts.PeroTools.Nice.Events; | ||
using Il2CppAssets.Scripts.UI.Panels; | ||
using SelectiveEffects.Managers; | ||
using UnityEngine; | ||
using UnityEngine.Events; | ||
using UnityEngine.UI; | ||
|
||
namespace SelectiveEffects.Patches | ||
{ | ||
[HarmonyPatch(typeof(PnlMenu), nameof(PnlMenu.Awake))] | ||
internal class TogglePatch | ||
{ | ||
internal static GameObject EffectsToggle; | ||
public static void Postfix(PnlMenu __instance) | ||
{ | ||
if (EffectsToggle) return; | ||
|
||
EffectsToggle = UnityEngine.Object.Instantiate( | ||
GameObject.Find("Forward").transform.Find("PnlVolume").Find("LogoSetting").Find("Toggles").Find("TglOn").gameObject, | ||
__instance.transform | ||
); | ||
|
||
|
||
Toggle toggleComp = EffectsToggle.GetComponent<Toggle>(); | ||
toggleComp.onValueChanged.AddListener((UnityAction<bool>) | ||
((bool val) => { SettingsManager.Enabled = val; }) | ||
); | ||
toggleComp.group = null; | ||
toggleComp.SetIsOnWithoutNotify(SettingsManager.Enabled); | ||
|
||
EffectsToggle.name = "EffectsToggleObject"; | ||
|
||
Text txt = EffectsToggle.transform.Find("Txt").GetComponent<Text>(); | ||
txt.text = "Disable Effects"; | ||
txt.fontSize = 40; | ||
txt.color = new Color(1, 1, 1, 76 / 255f); | ||
RectTransform rect = txt.transform.Cast<RectTransform>(); | ||
Vector2 vect = rect.offsetMax; | ||
rect.offsetMax = new Vector2(txt.text.Length * 25, vect.y); | ||
|
||
|
||
Image checkBox = EffectsToggle.transform.Find("Background").GetComponent<Image>(); | ||
checkBox.color = new(60 / 255f, 40 / 255f, 111 / 255f); | ||
|
||
Image checkMark = EffectsToggle.transform.Find("Background").GetChild(0).GetComponent<Image>(); | ||
checkMark.color = new(103 / 255f, 93 / 255f, 130 / 255f); | ||
|
||
EffectsToggle.transform.position = new Vector3(-6.8f, -4.95f, 100f); | ||
EffectsToggle.GetComponent<OnToggle>().enabled = false; | ||
EffectsToggle.GetComponent<OnToggleOn>().enabled = false; | ||
EffectsToggle.GetComponent<OnActivate>().enabled = false; | ||
|
||
EffectsToggle.transform.SetParent(__instance.transform.Find("Panels").Find("PnlOption").Find("TxtVersion")); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,33 @@ | ||
# SelectiveEffects | ||
Mod that allows disabling battle effects. | ||
|
||
## Features | ||
* Individual config options for several effects. | ||
* Enable/disable toggle at the menu. | ||
|
||
## Settings | ||
The config file can be found at `${Your muse dash folder}/UserData/SelectiveEffects.cfg` | ||
### Main | ||
* `Enabled` stores the last status of the toggle. | ||
* `DisableAllEfects` uses a general method to disable all effects in battle. | ||
### Judgement | ||
* `DisableJudgement` disables the judgements (including early/late). | ||
* `MakeJudgementSmaller` if the judgements are available, it makes them 25%~ smaller. | ||
### Hit | ||
* `DisableHitDissapearAnimation` disables the enemies animation when they have been hit and makes them disappear inmmeadiatly. | ||
* `DisableHitEffects` disables the hit effects and particles. | ||
* `DisableGirlHitFx` the same as `DisableHitEffects` but doesn't disappear the out_fx of some enemies. | ||
* `DisablePressFx` disables some particles when pressing the holds. | ||
### MusicHearts | ||
* `DisableMusicNotesFx` disables the particles and text that appear when you touch a music note. | ||
* `DisableHeartsFx` disables the particles and text that appear when you touch a heart. | ||
### Misc | ||
* `DisableBossFx` disables some effects the boss has when deploying enemies. | ||
* `DisableDustFx` disables the dust effect when the character falls to the ground. | ||
* `DisableHurtFx` disables the text that appear when the character is hurt. | ||
|
||
It is prefered to use the `DisableAllEfects` option instead of the individual options. | ||
|
||
Config file at `${Your muse dash folder}/UserData/SelectiveEffects.cfg` | ||
## In-game screenshots | ||
### Menu Toggle | ||
![MenuToggle](Media/MenuToggle.jpg) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters