Skip to content

Commit

Permalink
add rb3 source (pls improve)
Browse files Browse the repository at this point in the history
  • Loading branch information
LlysiX committed Nov 12, 2024
1 parent d17b2ad commit 8a83e4b
Showing 1 changed file with 112 additions and 23 deletions.
135 changes: 112 additions & 23 deletions _ark/config/song_select.dta
Original file line number Diff line number Diff line change
Expand Up @@ -125,42 +125,116 @@
; (kSTOrigin)
; (kSTName)}
{cond
; ({&& {$lhs has_data game_origin} {! {$rhs has_data game_origin}}}
; {if_else {== {$lhs get_data (game_origin)} rb3}
; -1 ; bring what we want to sort to the top (left side)
; 0
; }
; )
; ({&& {! {$lhs has_data game_origin}} {$rhs has_data game_origin}}
; {if_else {== {$rhs get_data (game_origin)} rb3}
; 1 ; bring what we want to sort to the top (right side)
; 0
; }
; )
({&& {== {$lhs get_icon} rb2_icon} {! {== {$rhs get_icon} rb2_icon}}}
-1 ; bring what we already sorted to the top (left side)
{if_else {$rhs has_data game_origin}
{if_else {== {$rhs get_data (game_origin)} rb3}
1 ; bring what we already sorted to the top (right side)
-1 ; bring what we want to sort to the top (left side)
}
-1
}
)
({&& {! {== {$lhs get_icon} rb2_icon}} {== {$rhs get_icon} rb2_icon}}
1 ; bring what we already sorted to the top (right side)
{if_else {$lhs has_data game_origin}
{if_else {== {$lhs get_data (game_origin)} rb3}
-1 ; bring what we already sorted to the top (left side)
1 ; bring what we want to sort to the top (right side)
}
1
}
)
({&& {== {$lhs get_icon} rb1_icon} {! {== {$rhs get_icon} rb1_icon}}}
{if_else {== {$rhs get_icon} rb2_icon}
1
-1 ; bring what we already sorted to the top (left side)
{if_else {$rhs has_data game_origin}
{if_else {== {$rhs get_data (game_origin)} rb3}
1 ; bring what we already sorted to the top (right side)
{if_else {== {$rhs get_icon} rb2_icon}
1 ; bring what we already sorted to the top (right side)
-1 ; bring what we want to sort to the top (left side)
}
}
{if_else {== {$rhs get_icon} rb2_icon}
1 ; bring what we already sorted to the top (right side)
-1 ; bring what we want to sort to the top (left side)
}
}
)
({&& {! {== {$lhs get_icon} rb1_icon}} {== {$rhs get_icon} rb1_icon}}
{if_else {== {$lhs get_icon} rb2_icon}
-1
1 ; bring what we already sorted to the top (right side)
{if_else {$lhs has_data game_origin}
{if_else {== {$lhs get_data (game_origin)} rb3}
-1 ; bring what we already sorted to the top (left side)
{if_else {== {$lhs get_icon} rb2_icon}
-1 ; bring what we already sorted to the top (left side)
1 ; bring what we want to sort to the top (right side)
}
}
{if_else {== {$lhs get_icon} rb2_icon}
-1 ; bring what we already sorted to the top (left side)
1 ; bring what we want to sort to the top (right side)
}
}
)
({&& {== {$lhs get_icon} ugc_icon} {! {== {$rhs get_icon} ugc_icon}}}
{if_else {== {$rhs get_icon} rb2_icon}
1
{if_else {== {$rhs get_icon} rb1_icon}
1
-1 ; bring what we already sorted to the top (left side)
{if_else {$rhs has_data game_origin}
{if_else {== {$rhs get_data (game_origin)} rb3}
1 ; bring what we already sorted to the top (right side)
{if_else {== {$rhs get_icon} rb2_icon}
1 ; bring what we already sorted to the top (right side)
{if_else {== {$rhs get_icon} rb1_icon}
1 ; bring what we already sorted to the top (right side)
-1 ; bring what we want to sort to the top (left side)
}
}
}
{if_else {== {$rhs get_icon} rb2_icon}
1 ; bring what we already sorted to the top (right side)
{if_else {== {$rhs get_icon} rb1_icon}
1 ; bring what we already sorted to the top (right side)
-1 ; bring what we want to sort to the top (left side)
}
}
}
)
({&& {! {== {$lhs get_icon} ugc_icon}} {== {$rhs get_icon} ugc_icon}}
{if_else {== {$lhs get_icon} rb2_icon}
-1
{if_else {== {$lhs get_icon} rb1_icon}
-1
1 ; bring what we already sorted to the top (right side)
{if_else {$lhs has_data game_origin}
{if_else {== {$lhs get_data (game_origin)} rb3}
-1 ; bring what we already sorted to the top (left side)
{if_else {== {$lhs get_icon} rb2_icon}
-1
{if_else {== {$lhs get_icon} rb1_icon}
-1 ; bring what we already sorted to the top (left side)
1 ; bring what we want to sort to the top (right side)
}
}
}
{if_else {== {$lhs get_icon} rb2_icon}
-1
{if_else {== {$lhs get_icon} rb1_icon}
-1 ; bring what we already sorted to the top (left side)
1 ; bring what we want to sort to the top (right side)
}
}
}
)
; ({&& {if {$lhs has_data game_origin} {== {$lhs get_data (game_origin)} rb3}} {if {$rhs has_data game_origin} {== {$rhs get_data (game_origin)} rb3}}} ; ignore
; {$this
; cmp
; $lhs
; $rhs
; (kSTName)
; }
; )
({&& {== {$lhs get_icon} rb2_icon} {== {$rhs get_icon} rb2_icon}} ; ignore
{$this
cmp
Expand Down Expand Up @@ -199,13 +273,28 @@
)
(browser_group
($offer)
{if_else {== {$offer get_icon} rb2_icon}
{sprint {$offer get_icon}}
{if_else {== {$offer get_icon} rb1_icon}
{if_else {$offer has_data game_origin}
{if_else {== {$offer get_data (game_origin)} rb3}
rb3
{if_else {== {$offer get_icon} rb2_icon}
{sprint {$offer get_icon}}
{if_else {== {$offer get_icon} rb1_icon}
{sprint {$offer get_icon}}
{if_else {== {$offer get_icon} ugc_icon}
{sprint {$offer get_icon}}
downloaded
}
}
}
}
{if_else {== {$offer get_icon} rb2_icon}
{sprint {$offer get_icon}}
{if_else {== {$offer get_icon} ugc_icon}
{if_else {== {$offer get_icon} rb1_icon}
{sprint {$offer get_icon}}
downloaded
{if_else {== {$offer get_icon} ugc_icon}
{sprint {$offer get_icon}}
downloaded
}
}
}
}
Expand Down

0 comments on commit 8a83e4b

Please sign in to comment.