Minor source changes...

This commit is contained in:
Ognjen Milan Robovic 2024-05-20 15:30:40 -04:00
parent 6b020bf0d2
commit a02a50d72c
3 changed files with 8 additions and 8 deletions

View File

@ -23,7 +23,7 @@ package body attribute is
structure.center := false;
structure.resize := true;
structure.x := 60;
structure.y := 80;
structure.y := 100;
structure.gui_n := count;
--
ui.add_structure (data => structure);

View File

@ -53,24 +53,24 @@ package body chad is
--
ui.draw_sprite (view (player.index), trait (player.index).name, x + offset, y + offset, 0);
--
ui.draw_tiny_fill_bar (x + view_width + 2 * offset, y + 1 * core.icon + offset, 4 * core.icon, float (player.health.value) / float (player.health.limit), (255, 0, 0, 255));
ui.draw_tiny_fill_bar (x + view_width + 2 * offset, y + 2 * core.icon + offset, 4 * core.icon, float (player.mana.value) / float (player.mana.limit), (0, 0, 255, 255));
ui.draw_tiny_fill_bar (x + view_width + 2 * offset, y + 3 * core.icon + offset, 4 * core.icon, float (player.stamina.value) / float (player.stamina.limit), (0, 255, 0, 255));
ui.draw_tiny_fill_bar (x + view_width + 2 * offset, y + 1 * core.icon + offset, 360 - view_width - offset, float (player.health.value) / float (player.health.limit), (127, 0, 0, 255));
ui.draw_tiny_fill_bar (x + view_width + 2 * offset, y + 2 * core.icon + offset, 360 - view_width - offset, float (player.mana.value) / float (player.mana.limit), (0, 0, 127, 255));
ui.draw_tiny_fill_bar (x + view_width + 2 * offset, y + 3 * core.icon + offset, 360 - view_width - offset, float (player.stamina.value) / float (player.stamina.limit), (0, 127, 0, 255));
--
ui.write (text => "Health " & player.health.value'image & " /" & player.health.limit'image,
x => x + view_width + 4 * core.icon + 3 * offset,
x => x + view_width + core.icon + 3 * offset,
y => y + 2 * offset,
tint => (255, 127, 127, 255),
size => 15,
code => true);
ui.write (text => "Mana " & player.mana.value'image & " /" & player.mana.limit'image,
x => x + view_width + 4 * core.icon + 3 * offset,
x => x + view_width + core.icon + 3 * offset,
y => y + core.icon + 2 * offset,
tint => (127, 127, 255, 255),
size => 15,
code => true);
ui.write (text => "Stamina" & player.stamina.value'image & " /" & player.stamina.limit'image,
x => x + view_width + 4 * core.icon + 3 * offset,
x => x + view_width + core.icon + 3 * offset,
y => y + 2 * core.icon + 2 * offset,
tint => (127, 255, 127, 255),
size => 15,

View File

@ -23,7 +23,7 @@ package body resource is
structure.center := false;
structure.resize := true;
structure.x := 60;
structure.y := 480;
structure.y := 500;
structure.gui_n := count;
--
ui.add_structure (structure);