Skip to content

Commit

Permalink
custom gem colors
Browse files Browse the repository at this point in the history
  • Loading branch information
LlysiX committed Nov 4, 2024
1 parent e7ea550 commit ec4d1c3
Show file tree
Hide file tree
Showing 7 changed files with 483 additions and 1 deletion.
19 changes: 19 additions & 0 deletions _ark/ps4/dx/macros/dx_overshell_macros.dta
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,23 @@
{dx_file_rename "ps4/track/shared/particles/textures/particle_spark_cluster.bmp_ps4" "ps4/track/shared/particles/textures/particle_spark_cluster1.bmp_ps4"}
{dx_file_rename "ps4/track/shared/particles/textures/particle_spark_dense.bmp_ps4" "ps4/track/shared/particles/textures/particle_spark_dense1.bmp_ps4"}
{dx_file_rename "ps4/track/shared/particles/textures/particle_spiral_flare.bmp_ps4" "ps4/track/shared/particles/textures/particle_spiral_flare1.bmp_ps4"}
)

#define WRITE_GEM_COLOR_DTAS
(
{write_file "data:/GoldHEN/RB4DX/settings/theme/gem/colors/greenr.dta" {array ({/ $gemcolgr 255})}}
{write_file "data:/GoldHEN/RB4DX/settings/theme/gem/colors/greeng.dta" {array ({/ $gemcolgg 255})}}
{write_file "data:/GoldHEN/RB4DX/settings/theme/gem/colors/greenb.dta" {array ({/ $gemcolgb 255})}}
{write_file "data:/GoldHEN/RB4DX/settings/theme/gem/colors/redr.dta" {array ({/ $gemcolrr 255})}}
{write_file "data:/GoldHEN/RB4DX/settings/theme/gem/colors/redg.dta" {array ({/ $gemcolrg 255})}}
{write_file "data:/GoldHEN/RB4DX/settings/theme/gem/colors/redb.dta" {array ({/ $gemcolrb 255})}}
{write_file "data:/GoldHEN/RB4DX/settings/theme/gem/colors/yellowr.dta" {array ({/ $gemcolyr 255})}}
{write_file "data:/GoldHEN/RB4DX/settings/theme/gem/colors/yellowg.dta" {array ({/ $gemcolyg 255})}}
{write_file "data:/GoldHEN/RB4DX/settings/theme/gem/colors/yellowb.dta" {array ({/ $gemcolyb 255})}}
{write_file "data:/GoldHEN/RB4DX/settings/theme/gem/colors/bluer.dta" {array ({/ $gemcolbr 255})}}
{write_file "data:/GoldHEN/RB4DX/settings/theme/gem/colors/blueg.dta" {array ({/ $gemcolbg 255})}}
{write_file "data:/GoldHEN/RB4DX/settings/theme/gem/colors/blueb.dta" {array ({/ $gemcolbb 255})}}
{write_file "data:/GoldHEN/RB4DX/settings/theme/gem/colors/oranger.dta" {array ({/ $gemcolor 255})}}
{write_file "data:/GoldHEN/RB4DX/settings/theme/gem/colors/orangeg.dta" {array ({/ $gemcolog 255})}}
{write_file "data:/GoldHEN/RB4DX/settings/theme/gem/colors/orangeb.dta" {array ({/ $gemcolob 255})}}
)
367 changes: 367 additions & 0 deletions _ark/ps4/dx/overshell/dx_slider_states.dta
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,371 @@
(on_cancel
{$this show_state kState_RB4DXVisSettings}
{$this trigger_cancel_effects})
)

#define RGB_DATA
(
{switch $gemchanged
("Green"
{switch $gemcolchanged
(R
{$this setup_confirm_actions {sprintf "Gem Color: %d" $gemcolgr} ("+" "0" "-")}
)
(G
{$this setup_confirm_actions {sprintf "Gem Color: %d" $gemcolgg} ("+" "0" "-")}
)
(B
{$this setup_confirm_actions {sprintf "Gem Color: %d" $gemcolgb} ("+" "0" "-")}
)
}
)
("Red"
{switch $gemcolchanged
(R
{$this setup_confirm_actions {sprintf "Gem Color: %d" $gemcolrr} ("+" "0" "-")}
)
(G
{$this setup_confirm_actions {sprintf "Gem Color: %d" $gemcolrg} ("+" "0" "-")}
)
(B
{$this setup_confirm_actions {sprintf "Gem Color: %d" $gemcolrb} ("+" "0" "-")}
)
}
)
("Yellow"
{switch $gemcolchanged
(R
{$this setup_confirm_actions {sprintf "Gem Color: %d" $gemcolyr} ("+" "0" "-")}
)
(G
{$this setup_confirm_actions {sprintf "Gem Color: %d" $gemcolyg} ("+" "0" "-")}
)
(B
{$this setup_confirm_actions {sprintf "Gem Color: %d" $gemcolyb} ("+" "0" "-")}
)
}
)
("Blue"
{switch $gemcolchanged
(R
{$this setup_confirm_actions {sprintf "Gem Color: %d" $gemcolbr} ("+" "0" "-")}
)
(G
{$this setup_confirm_actions {sprintf "Gem Color: %d" $gemcolbg} ("+" "0" "-")}
)
(B
{$this setup_confirm_actions {sprintf "Gem Color: %d" $gemcolbb} ("+" "0" "-")}
)
}
)
("Orange"
{switch $gemcolchanged
(R
{$this setup_confirm_actions {sprintf "Gem Color: %d" $gemcolor} ("+" "0" "-")}
)
(G
{$this setup_confirm_actions {sprintf "Gem Color: %d" $gemcolog} ("+" "0" "-")}
)
(B
{$this setup_confirm_actions {sprintf "Gem Color: %d" $gemcolob} ("+" "0" "-")}
)
}
)
}
)
#define RGB_ADD
(
{switch $gemchanged
("Green"
{switch $gemcolchanged
(R
{unless {> {+ $gemcolgr 1} 255}
{set $gemcolgr {+ $gemcolgr 1}}
}
)
(G
{unless {> {+ $gemcolgg 1} 255}
{set $gemcolgg {+ $gemcolgg 1}}
}
)
(B
{unless {> {+ $gemcolgb 1} 255}
{set $gemcolgb {+ $gemcolgb 1}}
}
)
}
)
("Red"
{switch $gemcolchanged
(R
{unless {> {+ $gemcolrr 1} 255}
{set $gemcolrr {+ $gemcolrr 1}}
}
)
(G
{unless {> {+ $gemcolrg 1} 255}
{set $gemcolrg {+ $gemcolrg 1}}
}
)
(B
{unless {> {+ $gemcolrb 1} 255}
{set $gemcolrb {+ $gemcolrb 1}}
}
)
}
)
("Yellow"
{switch $gemcolchanged
(R
{unless {> {+ $gemcolyr 1} 255}
{set $gemcolyr {+ $gemcolyr 1}}
}
)
(G
{unless {> {+ $gemcolyg 1} 255}
{set $gemcolyg {+ $gemcolyg 1}}
}
)
(B
{unless {> {+ $gemcolyb 1} 255}
{set $gemcolyb {+ $gemcolyb 1}}
}
)
}
)
("Blue"
{switch $gemcolchanged
(R
{unless {> {+ $gemcolbr 1} 255}
{set $gemcolbr {+ $gemcolbr 1}}
}
)
(G
{unless {> {+ $gemcolbg 1} 255}
{set $gemcolbg {+ $gemcolbg 1}}
}
)
(B
{unless {> {+ $gemcolbb 1} 255}
{set $gemcolbb {+ $gemcolbb 1}}
}
)
}
)
("Orange"
{switch $gemcolchanged
(R
{unless {> {+ $gemcolor 1} 255}
{set $gemcolor {+ $gemcolor 1}}
}
)
(G
{unless {> {+ $gemcolgg 1} 255}
{set $gemcolog {+ $gemcolog 1}}
}
)
(B
{unless {> {+ $gemcolgb 1} 255}
{set $gemcolob {+ $gemcolob 1}}
}
)
}
)
}
)
#define RGB_SUB
(
{switch $gemchanged
("Green"
{switch $gemcolchanged
(R
{unless {< {- $gemcolgr 1} 0}
{set $gemcolgr {- $gemcolgr 1}}
}
)
(G
{unless {< {- $gemcolgg 1} 0}
{set $gemcolgg {- $gemcolgg 1}}
}
)
(B
{unless {< {- $gemcolgb 1} 0}
{set $gemcolgb {- $gemcolgb 1}}
}
)
}
)
("Red"
{switch $gemcolchanged
(R
{unless {< {<- $gemcolrr 1} 0}
{set $gemcolrr {<- $gemcolrr 1}}
}
)
(G
{unless {< {<- $gemcolrg 1} 0}
{set $gemcolrg {<- $gemcolrg 1}}
}
)
(B
{unless {< {<- $gemcolrb 1} 0}
{set $gemcolrb {<- $gemcolrb 1}}
}
)
}
)
("Yellow"
{switch $gemcolchanged
(R
{unless {< {<- $gemcolyr 1} 0}
{set $gemcolyr {<- $gemcolyr 1}}
}
)
(G
{unless {< {<- $gemcolyg 1} 0}
{set $gemcolyg {<- $gemcolyg 1}}
}
)
(B
{unless {< {<- $gemcolyb 1} 0}
{set $gemcolyb {<- $gemcolyb 1}}
}
)
}
)
("Blue"
{switch $gemcolchanged
(R
{unless {< {<- $gemcolbr 1} 0}
{set $gemcolbr {<- $gemcolbr 1}}
}
)
(G
{unless {< {<- $gemcolbg 1} 0}
{set $gemcolbg {<- $gemcolbg 1}}
}
)
(B
{unless {< {<- $gemcolbb 1} 0}
{set $gemcolbb {<- $gemcolbb 1}}
}
)
}
)
("Orange"
{switch $gemcolchanged
(R
{unless {< {<- $gemcolor 1} 0}
{set $gemcolor {<- $gemcolor 1}}
}
)
(G
{unless {< {<- $gemcolgg 1} 0}
{set $gemcolog {<- $gemcolog 1}}
}
)
(B
{unless {< {<- $gemcolgb 1} 0}
{set $gemcolob {<- $gemcolob 1}}
}
)
}
)
}
)
#define RGB_RESET
(
{switch $gemchanged
("Green"
{switch $gemcolchanged
(R
{set $gemcolgr 0}
)
(G
{set $gemcolgg 0}
)
(B
{set $gemcolgb 0}
)
}
)
("Red"
{switch $gemcolchanged
(R
{set $gemcolrr 0}
)
(G
{set $gemcolrg 0}
)
(B
{set $gemcolrb 0}
)
}
)
("Yellow"
{switch $gemcolchanged
(R
{set $gemcolyr 0}
)
(G
{set $gemcolyg 0}
)
(B
{set $gemcolyb 0}
)
}
)
("Blue"
{switch $gemcolchanged
(R
{set $gemcolbr 0}
)
(G
{set $gemcolbg 0}
)
(B
{set $gemcolbb 0}
)
}
)
("Orange"
{switch $gemcolchanged
(R
{set $gemcolor 0}
)
(G
{set $gemcolog 0}
)
(B
{set $gemcolob 0}
)
}
)
}
)
(kState_RB4DXRGBSlider
(view confirm_action)
(enter
RGB_DATA
)
(SELECT_MSG
{local $list_data {($objId UIListCom) get_data_in_column token}}
{switch $list_data
("+"
RGB_ADD
RGB_DATA
)
("0"
RGB_RESET
RGB_DATA
)
("-"
RGB_SUB
RGB_DATA
)
}
)
(on_cancel
{$this show_state kState_RB4DXRGBSelect}
{$this trigger_cancel_effects})
)
Loading

0 comments on commit ec4d1c3

Please sign in to comment.