increase safe effect on notplayer to player revive from 60f to 100f, since material damage is dealt with better now, remove homing on both notplayer to player and player to notplayer revive, display who has won in end fight, have hue slider only effect the color with the color picker out, or all if none are out

This commit is contained in:
bgkillas 2024-11-02 09:16:43 -04:00
parent 86505bc2a1
commit a1cce5d6e6
6 changed files with 47 additions and 26 deletions

View file

@ -805,12 +805,34 @@ impl App {
ui.style_mut().spacing.slider_width = old;
if old_hue != self.appearance.hue {
let diff = self.appearance.hue - old_hue;
shift_hue(diff, &mut self.appearance.player_color.player_main);
shift_hue(diff, &mut self.appearance.player_color.player_alt);
shift_hue(diff, &mut self.appearance.player_color.player_arm);
shift_hue(diff, &mut self.appearance.player_color.player_forearm);
shift_hue(diff, &mut self.appearance.player_color.player_cape);
shift_hue(diff, &mut self.appearance.player_color.player_cape_edge);
match self.appearance.player_picker {
PlayerPicker::PlayerAlt => {
shift_hue(diff, &mut self.appearance.player_color.player_alt);
}
PlayerPicker::PlayerArm => {
shift_hue(diff, &mut self.appearance.player_color.player_arm);
}
PlayerPicker::PlayerCape => {
shift_hue(diff, &mut self.appearance.player_color.player_cape);
}
PlayerPicker::PlayerForearm => {
shift_hue(diff, &mut self.appearance.player_color.player_forearm);
}
PlayerPicker::PlayerCapeEdge => {
shift_hue(diff, &mut self.appearance.player_color.player_cape_edge);
}
PlayerPicker::PlayerMain => {
shift_hue(diff, &mut self.appearance.player_color.player_main);
}
PlayerPicker::None => {
shift_hue(diff, &mut self.appearance.player_color.player_main);
shift_hue(diff, &mut self.appearance.player_color.player_alt);
shift_hue(diff, &mut self.appearance.player_color.player_arm);
shift_hue(diff, &mut self.appearance.player_color.player_forearm);
shift_hue(diff, &mut self.appearance.player_color.player_cape);
shift_hue(diff, &mut self.appearance.player_color.player_cape_edge);
}
}
}
ui.horizontal(|ui| {
display_player_skin(ui, self);