forked from akanyan/mu3-mods
feat(AttractVideoPlayer): skip on L1
This commit is contained in:
@ -3,14 +3,14 @@
|
|||||||
namespace MU3.Sequence;
|
namespace MU3.Sequence;
|
||||||
|
|
||||||
class patch_Advertise: Advertise {
|
class patch_Advertise: Advertise {
|
||||||
// Exclude Back/Left/Right
|
// Exclude a bunch of keys
|
||||||
private bool anyKeyDown() {
|
private bool anyKeyDown() {
|
||||||
UIInput instance = Singleton<UIInput>.instance;
|
UIInput instance = Singleton<UIInput>.instance;
|
||||||
if(instance.getTriggerOn(UIInput.Key.Decision)
|
if(instance.getTriggerOn(UIInput.Key.R1)
|
||||||
|| instance.getTriggerOn(UIInput.Key.OptionBackward)
|
|| instance.getTriggerOn(UIInput.Key.R2)
|
||||||
|| instance.getTriggerOn(UIInput.Key.OptionForward)
|
|| instance.getTriggerOn(UIInput.Key.R3)
|
||||||
|| instance.getTriggerOn(UIInput.Key.SkipLeft)
|
|| instance.getTriggerOn(UIInput.Key.LS)
|
||||||
|| instance.getTriggerOn(UIInput.Key.SkipRight)
|
|| instance.getTriggerOn(UIInput.Key.RS)
|
||||||
|| instance.getTriggerOn(UIInput.Key.MenuLeft)
|
|| instance.getTriggerOn(UIInput.Key.MenuLeft)
|
||||||
|| instance.getTriggerOn(UIInput.Key.MenuRight)) {
|
|| instance.getTriggerOn(UIInput.Key.MenuRight)) {
|
||||||
return true;
|
return true;
|
||||||
|
@ -17,6 +17,8 @@ class patch_AdvManager: AdvManager {
|
|||||||
addMovieOffset(-1);
|
addMovieOffset(-1);
|
||||||
} else if(Singleton<UIInput>.instance.getTriggerOn(UIInput.Key.L3)) {
|
} else if(Singleton<UIInput>.instance.getTriggerOn(UIInput.Key.L3)) {
|
||||||
addMovieOffset(1);
|
addMovieOffset(1);
|
||||||
|
} else if(Singleton<UIInput>.instance.getTriggerOn(UIInput.Key.L1)) {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -36,6 +38,7 @@ class patch_AdvManager: AdvManager {
|
|||||||
public extern bool orig_initMovie();
|
public extern bool orig_initMovie();
|
||||||
public new bool initMovie() {
|
public new bool initMovie() {
|
||||||
UIInput instance = Singleton<UIInput>.instance;
|
UIInput instance = Singleton<UIInput>.instance;
|
||||||
|
instance.setLedColor(UIInput.Key.L1, new Color(0.7f, 0.0f, 0f));
|
||||||
instance.setLedColor(UIInput.Key.L2, new Color(0f, 0.7f, 0f));
|
instance.setLedColor(UIInput.Key.L2, new Color(0f, 0.7f, 0f));
|
||||||
instance.setLedColor(UIInput.Key.L3, new Color(0f, 0.7f, 0f));
|
instance.setLedColor(UIInput.Key.L3, new Color(0f, 0.7f, 0f));
|
||||||
|
|
||||||
@ -47,6 +50,7 @@ class patch_AdvManager: AdvManager {
|
|||||||
orig_exitMovie();
|
orig_exitMovie();
|
||||||
|
|
||||||
UIInput instance = Singleton<UIInput>.instance;
|
UIInput instance = Singleton<UIInput>.instance;
|
||||||
|
instance.setLedColor(UIInput.Key.L1, Color.black);
|
||||||
instance.setLedColor(UIInput.Key.L2, Color.black);
|
instance.setLedColor(UIInput.Key.L2, Color.black);
|
||||||
instance.setLedColor(UIInput.Key.L3, Color.black);
|
instance.setLedColor(UIInput.Key.L3, Color.black);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user