Skip to content

Commit

Permalink
Smarter way to colorize the icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Ouaz committed Apr 13, 2024
1 parent 9a5d1ed commit 6392ab6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/window/building/distribution.c
Original file line number Diff line number Diff line change
Expand Up @@ -610,11 +610,8 @@ void window_building_draw_primary_product_stockpiling(building_info_context *c)
int x = c->x_offset + primary_product_producer_button_stockpiling->x + BLOCK_SIZE * c->width_blocks - 30;
int y = c->y_offset + primary_product_producer_button_stockpiling->y + 10;
button_border_draw(x, y, 20, 20, data.primary_product_stockpiling_id);
if (building_stockpiling_enabled(building_get(c->building_id))) {
image_draw(assets_get_image_id("UI", "Warehousing"), x + 4, y + 4, COLOR_MASK_NONE, SCALE_NONE);
} else {
image_draw(assets_get_image_id("UI", "Warehousing_off"), x + 4, y + 4, COLOR_MASK_NONE, SCALE_NONE);
}
image_draw(assets_get_image_id("UI", "Warehousing_off"), x + 4, y + 4, building_stockpiling_enabled(building_get(c->building_id)) ?
0xfff5a46b : COLOR_MASK_NONE, SCALE_NONE);
}

void window_building_draw_granary(building_info_context *c)
Expand Down

0 comments on commit 6392ab6

Please sign in to comment.