summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2024-11-28 20:29:46 +0100
committerAldrik Ramaekers <aldrikboy@gmail.com>2024-11-28 20:29:46 +0100
commite3724ffc498462d1da85542a57e91d9b882ad6dd (patch)
tree50847f3bbbb8bbf1fde19811bdfc797123d9f2fe
parentba45aec809a5ecc4955848ddf94d959e89db3905 (diff)
close #20
-rw-r--r--data/img/invest.pngbin0 -> 5309 bytes
-rw-r--r--data/world/download.pngbin0 -> 23270 bytes
-rw-r--r--src/data.c1
-rw-r--r--src/include/data.h1
-rw-r--r--src/scenes/world_map.c2
5 files changed, 3 insertions, 1 deletions
diff --git a/data/img/invest.png b/data/img/invest.png
new file mode 100644
index 0000000..3b28620
--- /dev/null
+++ b/data/img/invest.png
Binary files differ
diff --git a/data/world/download.png b/data/world/download.png
new file mode 100644
index 0000000..294fa03
--- /dev/null
+++ b/data/world/download.png
Binary files differ
diff --git a/src/data.c b/src/data.c
index 3698908..bf84628 100644
--- a/src/data.c
+++ b/src/data.c
@@ -52,6 +52,7 @@ void data_load()
img_hired = assets_load_image_from_file("data/img/hired.png");
img_denied = assets_load_image_from_file("data/img/denied.png");
img_world_map = assets_load_image_from_file("data/img/world_background.png");
+ img_invest = assets_load_image_from_file("data/img/invest.png");
img_panel_bottom = assets_load_image_from_file("data/img/panel_bottom.png");
img_panel_top = assets_load_image_from_file("data/img/panel_top.png");
diff --git a/src/include/data.h b/src/include/data.h
index 1f13791..65f7389 100644
--- a/src/include/data.h
+++ b/src/include/data.h
@@ -54,6 +54,7 @@ image* img_signature;
image* img_hired;
image* img_denied;
image* img_world_map;
+image* img_invest;
image* img_button_bottom;
image* img_button_top;
diff --git a/src/scenes/world_map.c b/src/scenes/world_map.c
index 63e988c..1e3f76d 100644
--- a/src/scenes/world_map.c
+++ b/src/scenes/world_map.c
@@ -167,7 +167,7 @@ static void world_map_draw_info_panel(platform_window* window, bool enabled)
push_info_panel_button(scale, img_bank, screen_center_x - (total_btn_w/2) + (btn_size+btn_spacing)*2, btn_y, btn_size, enabled, false);
// Event log button
- if (push_info_panel_button(scale, img_list, screen_center_x - (total_btn_w/2) + (btn_size+btn_spacing)*3, btn_y, btn_size, enabled, _active_world->log.has_unread_messages)) {
+ if (push_info_panel_button(scale, img_invest, screen_center_x - (total_btn_w/2) + (btn_size+btn_spacing)*3, btn_y, btn_size, enabled, _active_world->log.has_unread_messages)) {
scene_state = (scene_state == WORLD_SCENE_STATE_INVEST) ? WORLD_SCENE_STATE_IDLE : WORLD_SCENE_STATE_INVEST;
}
}