2024-02-16 06:24:49 -05:00
|
|
|
with core, ui, resource;
|
2024-02-15 21:03:09 -05:00
|
|
|
|
|
|
|
use resource;
|
|
|
|
|
|
|
|
package body resource is
|
|
|
|
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
2024-02-16 06:24:49 -05:00
|
|
|
procedure configure is
|
|
|
|
begin
|
|
|
|
for index in codex
|
|
|
|
loop
|
2024-02-16 06:34:45 -05:00
|
|
|
icon (index) := core.load_sprite ("./sprite/resource/" & core.lowercase (codex'image (index)) & ".png", 1, 1);
|
2024-02-16 06:24:49 -05:00
|
|
|
end loop;
|
|
|
|
end configure;
|
|
|
|
|
|
|
|
------------------------------------------------------------------------------------------
|
|
|
|
|
2024-02-15 21:03:09 -05:00
|
|
|
procedure draw (index : in codex; x, y : in integer) is
|
|
|
|
begin
|
2024-02-16 06:24:49 -05:00
|
|
|
core.draw (icon (index), x, y);
|
2024-02-15 21:03:09 -05:00
|
|
|
end draw;
|
|
|
|
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
end resource;
|