Talk:Button Combo Menus: Difference between revisions
Jump to navigation
Jump to search
Line 22: | Line 22: | ||
}; | }; | ||
base.UIManager.SetPadListener(padEntries, SpecialCommandFunc); | base.UIManager.SetPadListener(padEntries, SpecialCommandFunc); | ||
... | |||
//ConsoleInfoPage | |||
if (SblWrapper.SblRcMgrIsAllowDebugMenuForSettings() == 1 || SblWrapper.SblRcMgrIsAllowMinimumDebugMenuForSettings() == 1 || SblWrapper.SblRcMgrIsStoreMode() == 1) | |||
{ | |||
SettingsPadEntry[] padEntries = new SettingsPadEntry[2] | |||
{ | |||
new SettingsPadEntry((Buttons)3089u, 5000u), | |||
new SettingsPadEntry(Buttons.Start, 0u) | |||
}; | |||
UIManager.Instance.SetPadListener(padEntries, delegate | |||
{ | |||
createVersionDetailsUi(); | |||
}); | |||
} | |||
else | |||
{ | |||
SettingsPadEntry[] padEntries2 = new SettingsPadEntry[2] | |||
{ | |||
new SettingsPadEntry((Buttons)17440u, 5000u), | |||
new SettingsPadEntry((Buttons)258u, 0u) | |||
}; | |||
UIManager.Instance.SetPadListener(padEntries2, delegate | |||
{ | |||
createVersionDetailsUi(); | |||
}); | |||
} | |||
</pre> | </pre> |
Revision as of 01:54, 10 November 2018
Same on Vita
Sources
//RootSettingHandler SettingsPadEntry[] padEntries = new SettingsPadEntry[13] { new SettingsPadEntry(Buttons.L, 0u), new SettingsPadEntry(Buttons.R, 0u), new SettingsPadEntry(Buttons.L, 0u), new SettingsPadEntry(Buttons.R, 0u), new SettingsPadEntry(Buttons.L2, 0u), new SettingsPadEntry(Buttons.R2, 0u), new SettingsPadEntry(Buttons.L2, 0u), new SettingsPadEntry(Buttons.R2, 0u), new SettingsPadEntry(Buttons.Square, 0u), new SettingsPadEntry(Buttons.Triangle, 0u), new SettingsPadEntry(Buttons.Start, 0u), new SettingsPadEntry(Buttons.L3, 0u), new SettingsPadEntry(Buttons.R3, 0u) }; base.UIManager.SetPadListener(padEntries, SpecialCommandFunc); ... //ConsoleInfoPage if (SblWrapper.SblRcMgrIsAllowDebugMenuForSettings() == 1 || SblWrapper.SblRcMgrIsAllowMinimumDebugMenuForSettings() == 1 || SblWrapper.SblRcMgrIsStoreMode() == 1) { SettingsPadEntry[] padEntries = new SettingsPadEntry[2] { new SettingsPadEntry((Buttons)3089u, 5000u), new SettingsPadEntry(Buttons.Start, 0u) }; UIManager.Instance.SetPadListener(padEntries, delegate { createVersionDetailsUi(); }); } else { SettingsPadEntry[] padEntries2 = new SettingsPadEntry[2] { new SettingsPadEntry((Buttons)17440u, 5000u), new SettingsPadEntry((Buttons)258u, 0u) }; UIManager.Instance.SetPadListener(padEntries2, delegate { createVersionDetailsUi(); }); }