Skip to content

Commit

Permalink
Move Warehousing icon outside the checkbox
Browse files Browse the repository at this point in the history
to make the building setting more noticeable.
Use the checkmark icon for toggle on/off
Decrease saturation of Warehousing icon
  • Loading branch information
Ouaz committed Jan 28, 2024
1 parent fdf9cc6 commit 281a0ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Binary file modified res/assets/Graphics/UI/Warehousing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions src/window/building/distribution.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ static struct {
};

static generic_button primary_product_producer_button_stockpiling[] = {
{360, 3, 24, 24, button_stockpiling, button_none, 0, 0}
{350, 3, 24, 24, button_stockpiling, button_none, 0, 0}
};

static struct {
Expand Down Expand Up @@ -609,8 +609,9 @@ void window_building_draw_primary_product_stockpiling(building_info_context *c)
int x = c->x_offset + primary_product_producer_button_stockpiling->x;
int y = c->y_offset + primary_product_producer_button_stockpiling->y + BLOCK_SIZE * c->height_blocks - 40;
button_border_draw(x, y, 20, 20, data.primary_product_stockpiling_id);
image_draw(assets_get_image_id("UI", "Warehousing"), x + 23, y + 4, COLOR_MASK_NONE, SCALE_NONE);
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);
image_draw(assets_get_image_id("UI", "Allowed_Walker_Check"), x + 4, y + 4, COLOR_MASK_NONE, SCALE_NONE);
}
}

Expand Down

0 comments on commit 281a0ed

Please sign in to comment.