Browse Source

Fixing lower left corner thing...

master
parent
commit
48b17e09d4
4 changed files with 4 additions and 4 deletions
  1. +1
    -1
      source/skill.adb
  2. +1
    -1
      source/skill.ads
  3. +2
    -2
      source/ui.adb
  4. BIN
      sprite/ui/main/corner_lower_left.png

+ 1
- 1
source/skill.adb 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);


+ 1
- 1
source/skill.ads 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, "- "),


+ 2
- 2
source/ui.adb 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;


BIN
sprite/ui/main/corner_lower_left.png View File

Before After
Width: 64  |  Height: 64  |  Size: 658B Width: 64  |  Height: 64  |  Size: 468B

Loading…
Cancel
Save