Skip to content

Commit

Permalink
force instrument slots
Browse files Browse the repository at this point in the history
took awhile to "learn" dta but i did it and it just works
  • Loading branch information
CaptnCH committed Jun 7, 2024
1 parent e299e0e commit 127bb59
Show file tree
Hide file tree
Showing 2 changed files with 203 additions and 0 deletions.
9 changes: 9 additions & 0 deletions _ark/ui/locale/eng/locale_updates_keep.dta
Original file line number Diff line number Diff line change
Expand Up @@ -818,6 +818,15 @@
(os_animatedsmasher "Animated Frets")
(os_animatedhighway "Animated Highway")
(os_animatedgem "Animated Gems")
(os_forceslotmenu "Force Instrument Slot")
(os_forceguitar "Guitar")
(os_forcevocals "Vocals")
(os_forcekeys "Keys")
(os_kcguitar "Guitar Slot")
(os_kcvocals "Vocals Slot")
(os_kcdrums "Drums Slot")
(os_kckeys "Keys Slot")
(os_kcrealguitar "Pro Guitar Slot") ; no one dare implement this :kekw:
(mod_animatedhighway "Animated Highway")
(mod_ps3os "PS3 Overshell Color")
(mod_wiios "Wii Overshell Color")
Expand Down
194 changes: 194 additions & 0 deletions _ark/ui/overshell/slot_states.dta
Original file line number Diff line number Diff line change
Expand Up @@ -2033,6 +2033,195 @@
{choose_character.mesh set_local_pos_index 2 300}
{online_options.grp remove_object choose_character.mesh}))

(kState_RB3DXforceslotmenu
(view options_extras)
(enter
{options_extras.lst set_selected 0}
{options_extras.lst
set_data
(os_forceguitar
os_forcevocals
os_forcekeys)})
(SELECT_MSG
{switch
{$component selected_sym}
(os_forceguitar
{$this show_state kState_RB3DXforceguitar})
(os_forcevocals
{$this show_state kState_RB3DXforcevocals})
(os_forcekeys
{$this show_state kState_RB3DXforcekeys})})
(on_cancel
{$this show_state kState_RB3ESettings}))

(kState_RB3DXforceguitar
(view options_extras)
(enter
{options_extras.lst set_selected 0}
{options_extras.lst
set_data
(os_kcguitar
os_kcdrums
os_kcvocals
os_kckeys)})
(SELECT_MSG
{switch
{$component selected_sym}
(os_kcguitar
{set_elem {find $syscfg joypad instrument_mapping ro_guitar} 1 kControllerGuitar}
{set_elem {find $syscfg joypad instrument_mapping ro_guitar_xbox} 1 kControllerGuitar}
{set_elem {find $syscfg joypad instrument_mapping strat_xbox} 1 kControllerGuitar}
{set_elem {find $syscfg joypad instrument_mapping strat_xbox_rb2} 1 kControllerGuitar}
{set_elem {find $syscfg joypad instrument_mapping hx_guitar_ps3} 1 kControllerGuitar}
{set_elem {find $syscfg joypad instrument_mapping ps3_rb2_guitar} 1 kControllerGuitar}
{set_elem {find $syscfg joypad instrument_mapping ro_guitar_ps3} 1 kControllerGuitar}
{set_elem {find $syscfg joypad instrument_mapping wii_guitar} 1 kControllerGuitar}
{set_elem {find $syscfg joypad instrument_mapping wii_guitar_rb2} 1 kControllerGuitar}
{set_elem {find $syscfg joypad instrument_mapping wii_roguitar} 1 kControllerGuitar}
{overshell update_all}
)
(os_kcdrums
{set_elem {find $syscfg joypad instrument_mapping ro_guitar} 1 kControllerDrum}
{set_elem {find $syscfg joypad instrument_mapping ro_guitar_xbox} 1 kControllerDrum}
{set_elem {find $syscfg joypad instrument_mapping strat_xbox} 1 kControllerDrum}
{set_elem {find $syscfg joypad instrument_mapping strat_xbox_rb2} 1 kControllerDrum}
{set_elem {find $syscfg joypad instrument_mapping hx_guitar_ps3} 1 kControllerDrum}
{set_elem {find $syscfg joypad instrument_mapping ps3_rb2_guitar} 1 kControllerDrum}
{set_elem {find $syscfg joypad instrument_mapping ro_guitar_ps3} 1 kControllerDrum}
{set_elem {find $syscfg joypad instrument_mapping wii_guitar} 1 kControllerDrum}
{set_elem {find $syscfg joypad instrument_mapping wii_guitar_rb2} 1 kControllerDrum}
{set_elem {find $syscfg joypad instrument_mapping wii_roguitar} 1 kControllerDrum}
{overshell update_all}
)
(os_kcvocals
{set_elem {find $syscfg joypad instrument_mapping ro_guitar} 1 kControllerVocals}
{set_elem {find $syscfg joypad instrument_mapping ro_guitar_xbox} 1 kControllerVocals}
{set_elem {find $syscfg joypad instrument_mapping strat_xbox} 1 kControllerVocals}
{set_elem {find $syscfg joypad instrument_mapping strat_xbox_rb2} 1 kControllerVocals}
{set_elem {find $syscfg joypad instrument_mapping hx_guitar_ps3} 1 kControllerVocals}
{set_elem {find $syscfg joypad instrument_mapping ps3_rb2_guitar} 1 kControllerVocals}
{set_elem {find $syscfg joypad instrument_mapping ro_guitar_ps3} 1 kControllerVocals}
{set_elem {find $syscfg joypad instrument_mapping wii_guitar} 1 kControllerVocals}
{set_elem {find $syscfg joypad instrument_mapping wii_guitar_rb2} 1 kControllerVocals}
{set_elem {find $syscfg joypad instrument_mapping wii_roguitar} 1 kControllerVocals}
{overshell update_all}
)
(os_kckeys
{set_elem {find $syscfg joypad instrument_mapping ro_guitar} 1 kControllerKeys}
{set_elem {find $syscfg joypad instrument_mapping ro_guitar_xbox} 1 kControllerKeys}
{set_elem {find $syscfg joypad instrument_mapping strat_xbox} 1 kControllerKeys}
{set_elem {find $syscfg joypad instrument_mapping strat_xbox_rb2} 1 kControllerKeys}
{set_elem {find $syscfg joypad instrument_mapping hx_guitar_ps3} 1 kControllerKeys}
{set_elem {find $syscfg joypad instrument_mapping ps3_rb2_guitar} 1 kControllerKeys}
{set_elem {find $syscfg joypad instrument_mapping ro_guitar_ps3} 1 kControllerKeys}
{set_elem {find $syscfg joypad instrument_mapping wii_guitar} 1 kControllerKeys}
{set_elem {find $syscfg joypad instrument_mapping wii_guitar_rb2} 1 kControllerKeys}
{set_elem {find $syscfg joypad instrument_mapping wii_roguitar} 1 kControllerKeys}
{overshell update_all}
)})
(on_cancel
{$this show_state kState_RB3DXforceslotmenu}))

(kState_RB3DXforcevocals
(view options_extras)
(enter
{options_extras.lst set_selected 0}
{options_extras.lst
set_data
(os_kcvocals
os_kcguitar
os_kcdrums
os_kckeys)})
(SELECT_MSG
{switch
{$component selected_sym}
(os_kcguitar
{set_elem {find $syscfg joypad instrument_mapping hx_xbox} 1 kControllerGuitar}
{set_elem {find $syscfg joypad instrument_mapping digital} 1 kControllerGuitar}
{set_elem {find $syscfg joypad instrument_mapping analog} 1 kControllerGuitar}
{set_elem {find $syscfg joypad instrument_mapping dualshock} 1 kControllerGuitar}
{set_elem {find $syscfg joypad instrument_mapping stagekit_xbox} 1 kControllerGuitar}
{set_elem {find $syscfg joypad instrument_mapping wii_remote} 1 kControllerGuitar}
{set_elem {find $syscfg joypad instrument_mapping wii_classic} 1 kControllerGuitar}
{set_elem {find $syscfg joypad instrument_mapping gamecube} 1 kControllerGuitar}
{overshell update_all}
)
(os_kcdrums
{set_elem {find $syscfg joypad instrument_mapping hx_xbox} 1 kControllerDrum}
{set_elem {find $syscfg joypad instrument_mapping digital} 1 kControllerDrum}
{set_elem {find $syscfg joypad instrument_mapping analog} 1 kControllerDrum}
{set_elem {find $syscfg joypad instrument_mapping dualshock} 1 kControllerDrum}
{set_elem {find $syscfg joypad instrument_mapping stagekit_xbox} 1 kControllerDrum}
{set_elem {find $syscfg joypad instrument_mapping wii_remote} 1 kControllerDrum}
{set_elem {find $syscfg joypad instrument_mapping wii_classic} 1 kControllerDrum}
{set_elem {find $syscfg joypad instrument_mapping gamecube} 1 kControllerDrum}
{overshell update_all}
)
(os_kcvocals
{set_elem {find $syscfg joypad instrument_mapping hx_xbox} 1 kControllerVocals}
{set_elem {find $syscfg joypad instrument_mapping digital} 1 kControllerVocals}
{set_elem {find $syscfg joypad instrument_mapping analog} 1 kControllerVocals}
{set_elem {find $syscfg joypad instrument_mapping dualshock} 1 kControllerVocals}
{set_elem {find $syscfg joypad instrument_mapping stagekit_xbox} 1 kControllerVocals}
{set_elem {find $syscfg joypad instrument_mapping wii_remote} 1 kControllerVocals}
{set_elem {find $syscfg joypad instrument_mapping wii_classic} 1 kControllerVocals}
{set_elem {find $syscfg joypad instrument_mapping gamecube} 1 kControllerVocals}
{overshell update_all}
)
(os_kckeys
{set_elem {find $syscfg joypad instrument_mapping hx_xbox} 1 kControllerKeys}
{set_elem {find $syscfg joypad instrument_mapping digital} 1 kControllerKeys}
{set_elem {find $syscfg joypad instrument_mapping analog} 1 kControllerKeys}
{set_elem {find $syscfg joypad instrument_mapping dualshock} 1 kControllerKeys}
{set_elem {find $syscfg joypad instrument_mapping stagekit_xbox} 1 kControllerKeys}
{set_elem {find $syscfg joypad instrument_mapping wii_remote} 1 kControllerKeys}
{set_elem {find $syscfg joypad instrument_mapping wii_classic} 1 kControllerKeys}
{set_elem {find $syscfg joypad instrument_mapping gamecube} 1 kControllerKeys}
{overshell update_all}
)})
(on_cancel
{$this show_state kState_RB3DXforceslotmenu}))

(kState_RB3DXforcekeys
(view options_extras)
(enter
{options_extras.lst set_selected 0}
{options_extras.lst
set_data
(os_kckeys
os_kcdrums
os_kcvocals
os_kcguitar)})
(SELECT_MSG
{switch
{$component selected_sym}
(os_kcguitar
{set_elem {find $syscfg joypad instrument_mapping hx_midi_keys_xbox} 1 kControllerGuitar}
{set_elem {find $syscfg joypad instrument_mapping hx_midi_keys_ps3} 1 kControllerGuitar}
{set_elem {find $syscfg joypad instrument_mapping hx_midi_keys_wii} 1 kControllerGuitar}
{overshell update_all}
)
(os_kcdrums
{set_elem {find $syscfg joypad instrument_mapping hx_midi_keys_xbox} 1 kControllerDrum}
{set_elem {find $syscfg joypad instrument_mapping hx_midi_keys_ps3} 1 kControllerDrum}
{set_elem {find $syscfg joypad instrument_mapping hx_midi_keys_wii} 1 kControllerDrum}
{overshell update_all}
)
(os_kcvocals
{set_elem {find $syscfg joypad instrument_mapping hx_midi_keys_xbox} 1 kControllerVocals}
{set_elem {find $syscfg joypad instrument_mapping hx_midi_keys_ps3} 1 kControllerVocals}
{set_elem {find $syscfg joypad instrument_mapping hx_midi_keys_wii} 1 kControllerVocals}
{overshell update_all}
)
(os_kckeys
{set_elem {find $syscfg joypad instrument_mapping hx_midi_keys_xbox} 1 kControllerKeys}
{set_elem {find $syscfg joypad instrument_mapping hx_midi_keys_ps3} 1 kControllerKeys}
{set_elem {find $syscfg joypad instrument_mapping hx_midi_keys_wii} 1 kControllerKeys}
{overshell update_all}
)})
(on_cancel
{$this show_state kState_RB3DXforceslotmenu}))

(kState_RB3EKeyboardSelector
(view online_options)
(enter
Expand Down Expand Up @@ -2899,6 +3088,7 @@
os_trkspd
os_sngspd
os_venuesel
os_forceslotmenu
os_thm
;os_fretboard
os_spotlight
Expand All @@ -2919,6 +3109,7 @@
os_trkspd
os_sngspd
os_venuesel
os_forceslotmenu
os_thm
;os_fretboard
os_spotlight
Expand All @@ -2938,6 +3129,7 @@
os_trkspd
os_sngspd
os_venuesel
os_forceslotmenu
os_thm
;os_fretboard
os_spotlight
Expand Down Expand Up @@ -2984,6 +3176,8 @@
{$this show_state kState_RB3EKeyboardSelector})
(os_gems
{$this show_state kState_RB3EGemSelector})
(os_forceslotmenu
{$this show_state kState_RB3DXforceslotmenu})
(os_smashers
{$this show_state kState_RB3ESmasherSelector})
(os_animatedgem
Expand Down

0 comments on commit 127bb59

Please sign in to comment.