Fixing lower left corner thing...

This commit is contained in:
Ognjen Milan Robovic 2024-04-30 19:42:17 -04:00
parent 919961f770
commit 48b17e09d4
4 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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, "- "),

View File

@ -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;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 658 B

After

Width:  |  Height:  |  Size: 468 B