From 48b17e09d45e9baa731b08d571ad64cce96b1687 Mon Sep 17 00:00:00 2001 From: xolatile Date: Tue, 30 Apr 2024 19:42:17 -0400 Subject: [PATCH] Fixing lower left corner thing... --- source/skill.adb | 2 +- source/skill.ads | 2 +- source/ui.adb | 4 ++-- sprite/ui/main/corner_lower_left.png | Bin 658 -> 468 bytes 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/skill.adb b/source/skill.adb index 7c7d3eb..0610c16 100644 --- a/source/skill.adb +++ b/source/skill.adb @@ -25,7 +25,7 @@ package body skill is procedure menu (x, y : in integer; center : in boolean) is column : constant integer := 2; - offset : constant integer := 16; + offset : constant integer := 32; width : constant integer := 216 * column + 2 * offset; height : constant integer := (count / column) * core.icon + 2 * offset; move_x : constant integer := (if center then (core.window_width - width) / 2 else x); diff --git a/source/skill.ads b/source/skill.ads index f56f0bb..aee0c4f 100644 --- a/source/skill.ads +++ b/source/skill.ads @@ -28,7 +28,7 @@ package skill is count : constant natural := enumeration'pos (enumeration'last) + 1; trait : constant array (enumeration) of information := ( - ("Archery ", 0, "- "), + ("Archery ", 0, "Archery skill determines effectiveness and range or your ranged units. "), ("Diplomacy ", 0, "- "), ("Estates ", 0, "- "), ("Exploration ", 0, "- "), diff --git a/source/ui.adb b/source/ui.adb index ad9b36d..0a1901c 100644 --- a/source/ui.adb +++ b/source/ui.adb @@ -132,7 +132,7 @@ package body ui is procedure configure is procedure load_ui (index : in style; folder_path : in string) is begin - glyphs (index) := core.import_font ("./sprite/ui/" & folder_path & "/font.png", (if index = main then 16 else 24), 0); + glyphs (index) := core.import_font ("./sprite/ui/" & folder_path & "/font.png", 24, 0); -- for this in element loop sprite (index, this) := core.import_sprite ("./sprite/ui/" & folder_path & core.lowercase (element'image (this)) & ".png", 1, 1); @@ -230,7 +230,7 @@ package body ui is -- draw_horizontally (title_bar_middle, x + sprite (active, title_bar_left).width, y - sprite (active, title_bar_middle).height, middle_width); -- - core.write (title, x + sprite (active, title_bar_left).width / 2, y - sprite (active, title_bar_middle).height / 2 - 4, glyphs (active)); + core.write (title, x + sprite (active, title_bar_left).width / 2 + 16, y - sprite (active, title_bar_middle).height / 2 - 8, glyphs (active)); -- select_text_box (title, x, y - sprite (active, title_bar_middle).height, width, sprite (active, title_bar_middle).height); end draw_title_bar; diff --git a/sprite/ui/main/corner_lower_left.png b/sprite/ui/main/corner_lower_left.png index 7e51f27cc054824b0059bda881d8a17f93707664..04859e5553343b8262b75dbe31e33008ad371e76 100644 GIT binary patch delta 58 zcmbQldWCs{iV{zNPlzi61H-#_?||h0|NoiN7Cr&87)yfuf*Bm1-AJ3*FTQbS9wR4% Mr>mdKI;Vst0Akh^5dZ)H delta 266 zcmcb@Jc)IJNK-fE>;OkH}&M20djEW~^9hFI)x`WiRpcb!C6SBFAN=k;mt@F{+R;TeZYB zq9i4;B-JXpC>2OC7#SFu=o*;l8XJTdnpznc0TGaEWni#ipUZlnAqWk*`6-!cl_(la ctV}JeObj3zDzCDg18QLKboFyt=akR{07;2Rv;Y7A