Skip to content

Commit d5fa1e1

Browse files
authoredFeb 18, 2025··
barbarians and incidents (#160)
1 parent 3b696e0 commit d5fa1e1

File tree

213 files changed

+2605
-1145
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

213 files changed

+2605
-1145
lines changed
 

‎client/src/action_buttons.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ fn generic_custom_action(
146146
CustomActionType::ForcedLabor => Some(StateUpdate::execute(Action::Playing(
147147
PlayingAction::Custom(CustomAction::ForcedLabor),
148148
))),
149-
CustomActionType::CivilRights => Some(StateUpdate::execute(Action::Playing(
149+
CustomActionType::CivilLiberties => Some(StateUpdate::execute(Action::Playing(
150150
PlayingAction::Custom(CustomAction::CivilRights),
151151
))),
152152
CustomActionType::Taxes => Some(StateUpdate::OpenDialog(ActiveDialog::Taxes(

‎client/src/advance_ui.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ use crate::client_state::{ActiveDialog, StateUpdate};
22
use crate::layout_ui::{left_mouse_button_pressed_in_rect, top_centered_text};
33
use crate::log_ui::break_text;
44
use crate::payment_ui::{payment_dialog, Payment};
5-
use crate::player_ui::player_color;
65
use crate::render_context::RenderContext;
76
use crate::tooltip::show_tooltip_for_rect;
87
use macroquad::color::Color;
@@ -107,7 +106,7 @@ pub fn show_advance_menu(
107106
rect.y,
108107
rect.w,
109108
rect.h,
110-
fill_color(p, &advance_state),
109+
fill_color(rc, p, &advance_state),
111110
);
112111
state.draw_text(name, pos.x + 10., pos.y + 22.);
113112

@@ -148,9 +147,9 @@ pub fn show_advance_menu(
148147
StateUpdate::None
149148
}
150149

151-
fn fill_color(p: &Player, advance_state: &AdvanceState) -> Color {
150+
fn fill_color(rc: &RenderContext, p: &Player, advance_state: &AdvanceState) -> Color {
152151
match advance_state {
153-
AdvanceState::Owned | AdvanceState::Removable => player_color(p.index),
152+
AdvanceState::Owned | AdvanceState::Removable => rc.player_color(p.index),
154153
AdvanceState::Available => WHITE,
155154
AdvanceState::Unavailable => GRAY,
156155
}

0 commit comments

Comments
 (0)
Please sign in to comment.