diff --git a/source/main.adb b/source/main.adb index 864aa3c..1ffc20c 100644 --- a/source/main.adb +++ b/source/main.adb @@ -143,8 +143,10 @@ procedure main is x : constant integer := preview_width + core.icon; y : constant integer := core.icon; width : constant integer := side_panel - 2 * core.icon; - height : constant integer := 640; + height : constant integer := 480; offset : constant integer := 8; + at_x : integer := 0; + at_y : integer := 0; begin ui.draw_frame ("--", x, y, width, height); ui.draw_sprite (chad.view (player.index), chad.description (player.index).name.all, x + offset, y + offset, 0); @@ -181,9 +183,13 @@ procedure main is move_x := move_x + core.icon; end loop; end; - --~ui.draw_tiny_fill_bar (x + chad.view_width + 2 * 8, y + 1 * core.icon + 8, 360 - chad.view_width - 8, float (player.health.value) / float (player.health.limit), (127, 0, 0, 255)); - --~ui.draw_tiny_fill_bar (x + chad.view_width + 2 * 8, y + 2 * core.icon + 8, 360 - chad.view_width - 8, float (player.mana.value) / float (player.mana.limit), (0, 0, 127, 255)); - --~ui.draw_tiny_fill_bar (x + chad.view_width + 2 * 8, y + 3 * core.icon + 8, 360 - chad.view_width - 8, float (player.movement.value) / float (player.movement.limit), (0, 127, 0, 255)); + -- + at_x := x + offset; + at_y := y + offset + chad.view_height + core.icon; + -- + ui.draw_tiny_fill_bar (at_x, at_y + 0 * core.icon, width - 2 * offset, float (player.health.value) / float (player.health.limit), (127, 0, 0, 255)); + ui.draw_tiny_fill_bar (at_x, at_y + 1 * core.icon, width - 2 * offset, float (player.mana.value) / float (player.mana.limit), (0, 0, 127, 255)); + ui.draw_tiny_fill_bar (at_x, at_y + 2 * core.icon, width - 2 * offset, float (player.movement.value) / float (player.movement.limit), (0, 127, 0, 255)); -- --~ui.write (text => "Health " & player.health.value'image & " /" & player.health.limit'image, --~x => x + chad.view_width + core.icon + 3 * 8, diff --git a/ui/dwarf/tiny_fill_bar_right.png b/ui/dwarf/tiny_fill_bar_right.png index 1d9f15d..c35665a 100644 Binary files a/ui/dwarf/tiny_fill_bar_right.png and b/ui/dwarf/tiny_fill_bar_right.png differ diff --git a/ui/fairy/tiny_fill_bar_right.png b/ui/fairy/tiny_fill_bar_right.png index f5a7f54..55bbe08 100644 Binary files a/ui/fairy/tiny_fill_bar_right.png and b/ui/fairy/tiny_fill_bar_right.png differ diff --git a/ui/gnoll/tiny_fill_bar_right.png b/ui/gnoll/tiny_fill_bar_right.png index de859fc..64634e4 100644 Binary files a/ui/gnoll/tiny_fill_bar_right.png and b/ui/gnoll/tiny_fill_bar_right.png differ diff --git a/ui/goblin/tiny_fill_bar_right.png b/ui/goblin/tiny_fill_bar_right.png index eec06e5..b21e6bc 100644 Binary files a/ui/goblin/tiny_fill_bar_right.png and b/ui/goblin/tiny_fill_bar_right.png differ diff --git a/ui/imp/tiny_fill_bar_right.png b/ui/imp/tiny_fill_bar_right.png index 1f574f3..46e5b5f 100644 Binary files a/ui/imp/tiny_fill_bar_right.png and b/ui/imp/tiny_fill_bar_right.png differ diff --git a/ui/kobold/tiny_fill_bar_right.png b/ui/kobold/tiny_fill_bar_right.png index 6e40340..17ba645 100644 Binary files a/ui/kobold/tiny_fill_bar_right.png and b/ui/kobold/tiny_fill_bar_right.png differ diff --git a/ui/main/tiny_fill_bar_right.png b/ui/main/tiny_fill_bar_right.png index 0840c3f..1d0cfd5 100644 Binary files a/ui/main/tiny_fill_bar_right.png and b/ui/main/tiny_fill_bar_right.png differ