Skip to content

Commit

Permalink
Add more space for Concrete Maker text
Browse files Browse the repository at this point in the history
  • Loading branch information
Keriew committed Mar 12, 2024
1 parent 8646873 commit f217c74
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/window/building/industry.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,11 @@ static void draw_workshop(
window_building_draw_description_at(c, 96 + resources_y_offset, group_id, text_offset + 6);
}

if (b->type == BUILDING_CONCRETE_MAKER) {
// Concrete maker needs more text space
resources_y_offset += 2 * BLOCK_SIZE;
}

inner_panel_draw(c->x_offset + 16, c->y_offset + 146 + resources_y_offset, c->width_blocks - 2, 4);
window_building_draw_employment(c, 152 + resources_y_offset);
window_building_draw_risks(c, c->x_offset + c->width_blocks * BLOCK_SIZE - 76,
Expand Down
1 change: 1 addition & 0 deletions src/window/building_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ static int get_height_id(void)
case BUILDING_TAVERN:
case BUILDING_AMPHITHEATER:
case BUILDING_ARENA:
case BUILDING_CONCRETE_MAKER:
return 5;

case BUILDING_DOCK:
Expand Down

0 comments on commit f217c74

Please sign in to comment.