Skip to content

Commit

Permalink
add sounds for right-click to all garden gates, palisade gates, and w…
Browse files Browse the repository at this point in the history
…atchtowers
  • Loading branch information
eugenikus8 committed Feb 9, 2025
1 parent e046db8 commit 3c547ba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/window/building/military.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include "city/military.h"
#include "city/view.h"
#include "core/calc.h"
#include "core/dir.h"
#include "core/log.h"
#include "core/string.h"
#include "figure/formation_legion.h"
Expand Down Expand Up @@ -123,7 +124,8 @@ void window_building_draw_wall(building_info_context *c)
void window_building_draw_gatehouse(building_info_context *c)
{
c->help_id = 85;
window_building_play_sound(c, "wavs/gatehouse.wav");
window_building_play_sound(c, ASSETS_DIRECTORY "/Sounds/Road.ogg");
//window_building_play_sound(c, "wavs/gatehouse.wav");
outer_panel_draw(c->x_offset, c->y_offset, c->width_blocks, c->height_blocks);
lang_text_draw_centered(90, 0, c->x_offset, c->y_offset + 10, BLOCK_SIZE * c->width_blocks, FONT_LARGE_BLACK);
window_building_draw_description_at(c, BLOCK_SIZE * c->height_blocks - 158, 90, 1);
Expand Down
6 changes: 4 additions & 2 deletions src/window/building/utility.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,8 @@ void window_building_roadblock_get_tooltip_walker_permissions(int *translation)
void window_building_draw_garden_gate(building_info_context *c)
{
c->help_id = 0;
window_building_play_sound(c, "wavs/garden.wav");
window_building_play_sound(c, ASSETS_DIRECTORY "/Sounds/Road.ogg");
//window_building_play_sound(c, "wavs/garden.wav");
outer_panel_draw(c->x_offset, c->y_offset, c->width_blocks, c->height_blocks);
text_draw_centered(translation_for(TR_BUILDING_GARDEN_WALL_GATE), c->x_offset, c->y_offset + 10, 16 * c->width_blocks, FONT_LARGE_BLACK, 0);
window_building_draw_description_at(c, 96, CUSTOM_TRANSLATION, TR_BUILDING_GARDEN_WALL_GATE_DESC);
Expand All @@ -242,7 +243,8 @@ void window_building_draw_garden_gate(building_info_context *c)
void window_building_draw_palisade_gate(building_info_context *c)
{
c->help_id = 0;
window_building_play_sound(c, "wavs/gatehouse.wav");
window_building_play_sound(c, ASSETS_DIRECTORY "/Sounds/Road.ogg");
//window_building_play_sound(c, "wavs/gatehouse.wav");
outer_panel_draw(c->x_offset, c->y_offset, c->width_blocks, c->height_blocks);
text_draw_centered(translation_for(TR_BUILDING_PALISADE_GATE), c->x_offset, c->y_offset + 10, 16 * c->width_blocks, FONT_LARGE_BLACK, 0);
window_building_draw_description_at(c, 96, CUSTOM_TRANSLATION, TR_BUILDING_PALISADE_GATE_DESC);
Expand Down

0 comments on commit 3c547ba

Please sign in to comment.