Skip to content

Commit

Permalink
clean up dta formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
LlysiX committed Oct 11, 2024
1 parent 4432448 commit a642f59
Show file tree
Hide file tree
Showing 6 changed files with 290 additions and 280 deletions.
50 changes: 21 additions & 29 deletions _ark/ps4/dx/overshell/dx_controller_states.dta
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(kState_RB4DXControllerSettings
(view {$this get_auto_list_view })
(view {$this get_auto_list_view})
(enter
{$this setup_confirm_actions a
(
Expand All @@ -9,9 +9,7 @@
}
)
(SELECT_MSG
{local $list_data
{
($objId UIListCom)get_data_in_column token }}
{local $list_data {($objId UIListCom)get_data_in_column token}}
{switch $list_data
("Change instrument type"
{$this show_state kState_RB4DXSlotOverride}
Expand All @@ -23,7 +21,7 @@
)
(on_cancel
{$this show_state kState_RB4DXMain}
{$this trigger_cancel_effects }
{$this trigger_cancel_effects}
)
)
#define RB4DXSLOT_DATA
Expand Down Expand Up @@ -55,48 +53,44 @@
{set $slotentered TRUE}
)
(SELECT_MSG
{local $list_data
{
($objId UIListCom)get_data_in_column token }}
{local $list_data {($objId UIListCom)get_data_in_column token}}
{switch $list_data
(("guitar: guitar" "guitar: drums" "guitar: vocals")
{set $slot_changed gtr}
{$this show_state kState_RB4DXSlotChooser}
{$this trigger_select_effects }
{$this trigger_select_effects}
)
(("drums: guitar" "drums: drums" "drums: vocals")
{set $slot_changed drum}
{$this show_state kState_RB4DXSlotChooser}
{$this trigger_select_effects }
{$this trigger_select_effects}
)
(("vocals: guitar" "vocals: drums" "vocals: vocals")
{set $slot_changed vox}
{$this show_state kState_RB4DXSlotChooser}
{$this trigger_select_effects }
{$this trigger_select_effects}
)
}
)
(on_cancel
{$this show_state kState_RB4DXMain}
{$this trigger_cancel_effects }
{$this trigger_cancel_effects}
{set $slotentered FALSE}
)
)
(kState_RB4DXSlotChooser
(view confirm_action)
(enter
{$this setup_confirm_actions "Select the controller type you want to change to:"
(
"guitar"
"drums"
"vocals"
)
}
(
"guitar"
"drums"
"vocals"
)
}
)
(SELECT_MSG
{local $list_data
{
($objId UIListCom)get_data_in_column token }}
{local $list_data {($objId UIListCom)get_data_in_column token}}
{switch $list_data
("guitar"
{set $slot_to gtr}
Expand All @@ -113,7 +107,7 @@
SET_SLOT_VAR
CLEAR_INVALID_SLOT_DTAS
{$overshell update_all}
{$this trigger_select_effects }
{$this trigger_select_effects}
)
(exit
{set $slot_changed FALSE}
Expand All @@ -122,11 +116,11 @@
(on_cancel
{set $slot_changed FALSE}
{$this show_state kState_RB4DXSlotOverride}
{$this trigger_cancel_effects }
{$this trigger_cancel_effects}
)
)
(kState_RB4DXBindingOverride
(view {$this get_auto_list_view })
(view {$this get_auto_list_view})
(enter
{$this setup_confirm_actions a
(
Expand All @@ -141,9 +135,7 @@
}
)
(SELECT_MSG
{local $list_data
{
($objId UIListCom)get_data_in_column token }}
{local $list_data {($objId UIListCom)get_data_in_column token}}
DELETE_PAD_BINDING_DTAS
{switch $list_data
("[Reset]")
Expand All @@ -170,10 +162,10 @@
SET_PAD_BINDING_HOOK
{$overshell update_all}
{$this show_state kState_RB4DXControllerSettings}
{$this trigger_select_effects }
{$this trigger_select_effects}
)
(on_cancel
{$this show_state kState_RB4DXControllerSettings}
{$this trigger_cancel_effects }
{$this trigger_cancel_effects}
)
)
12 changes: 4 additions & 8 deletions _ark/ps4/dx/overshell/dx_slider_states.dta
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
{$this setup_confirm_actions {sprintf "Song Speed: %d%%" $speedmod} ("+" "Reset" "-")}
)
(SELECT_MSG
{local $list_data
{
($objId UIListCom)get_data_in_column token }}
{local $list_data {($objId UIListCom) get_data_in_column token}}
{switch $list_data
("+"
{set $speedmod {+ $speedmod 5}}
Expand All @@ -29,7 +27,7 @@
{write_file "data:/GoldHEN/RB4DX/speedmod.ini" {array ({/ $speedmod 100})}}
SET_TRACK_SPEEDS
{$this show_state kState_RB4DXMain}
{$this trigger_cancel_effects })
{$this trigger_cancel_effects})
)

(kState_RB4DXTrackCurve
Expand All @@ -38,9 +36,7 @@
{$this setup_confirm_actions {sprintf "Track Curve: %.2fX" {+ {* $track_curve -2} 3}} ("+" "Reset" "-")}
)
(SELECT_MSG
{local $list_data
{
($objId UIListCom)get_data_in_column token }}
{local $list_data {($objId UIListCom) get_data_in_column token}}
{switch $list_data
("-"
{unless {> {+ $track_curve 0.05} 1.5}
Expand All @@ -62,5 +58,5 @@
})
(on_cancel
{$this show_state kState_RB4DXVisSettings}
{$this trigger_cancel_effects })
{$this trigger_cancel_effects})
)
Loading

0 comments on commit a642f59

Please sign in to comment.