Removed style based attributes, resources and skills...

This commit is contained in:
Ognjen Milan Robovic 2024-02-16 06:34:45 -05:00
parent 4b45defab9
commit f570df92d5
6 changed files with 8 additions and 26 deletions

View File

@ -18,12 +18,7 @@ package body attribute is
begin
for index in codex
loop
declare
folder : constant string := core.lowercase (ui.style'image (ui.active));
file : constant string := core.lowercase (codex'image (index));
begin
icon (index) := core.load_sprite ("./sprite/menu/" & folder & "/attribute/" & file & ".png", 1, 1);
end;
icon (index) := core.load_sprite ("./sprite/attribute/" & core.lowercase (codex'image (index)) & ".png", 1, 1);
end loop;
end configure;

View File

@ -10,8 +10,8 @@ package body core is
begin
engine_configure;
--
hexagon_grid_sprite := load_sprite ("./sprite/menu/hexagon_grid_tile.png", 1, 1);
hexagon_fill_sprite := load_sprite ("./sprite/menu/hexagon_fill_tile.png", 1, 1);
hexagon_grid_sprite := load_sprite ("./sprite/ui/hexagon_grid_tile.png", 1, 1);
hexagon_fill_sprite := load_sprite ("./sprite/ui/hexagon_fill_tile.png", 1, 1);
end configure;
------------------------------------------------------------------------------------------

View File

@ -18,12 +18,7 @@ package body resource is
begin
for index in codex
loop
declare
folder : constant string := core.lowercase (ui.style'image (ui.active));
file : constant string := core.lowercase (codex'image (index));
begin
icon (index) := core.load_sprite ("./sprite/menu/" & folder & "/resource/" & file & ".png", 1, 1);
end;
icon (index) := core.load_sprite ("./sprite/resource/" & core.lowercase (codex'image (index)) & ".png", 1, 1);
end loop;
end configure;

View File

@ -18,12 +18,7 @@ package body skill is
begin
for index in codex
loop
declare
folder : constant string := core.lowercase (ui.style'image (ui.active));
file : constant string := core.lowercase (codex'image (index));
begin
icon (index) := core.load_sprite ("./sprite/menu/" & folder & "/skill/" & file & ".png", 1, 1);
end;
icon (index) := core.load_sprite ("./sprite/skill/" & core.lowercase (codex'image (index)) & ".png", 1, 1);
end loop;
end configure;

View File

@ -20,16 +20,13 @@ package body ui is
begin
for this in codex
loop
sprite (index, this) := core.load_sprite ("./sprite/menu/" & folder_path & "ui/" & core.lowercase (codex'image (this)) & ".png", 1, 1);
sprite (index, this) := core.load_sprite ("./sprite/ui/" & folder_path & core.lowercase (codex'image (this)) & ".png", 1, 1);
end loop;
end load_ui;
begin
load_ui (default, "default/");
--~load_ui (gothic, "heroes/");
--~load_ui (gothic, "gothic/");
--~load_ui (yd, "yd/");
load_ui (yd, "yd/");
load_ui (steam, "steam/");
--~load_ui (gothic, "diablo/");
--
active := default;
end configure;

View File

@ -5,7 +5,7 @@ package ui is
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
type style is (
default, gothic, yd, steam
default, yd, steam
);
type codex is (