xhads/source/menu.ads

49 lines
1.5 KiB
Ada
Raw Normal View History

2024-02-15 21:03:09 -05:00
with core;
package menu is
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2024-02-16 09:59:19 -05:00
type format is (
separator, button, text_box, data_box, check_box, title_bar, scroll_bar, fill_bar
);
2024-02-15 21:03:09 -05:00
type codex is (
2024-02-16 09:59:19 -05:00
none, attribute_information, skill_information, resource_information
2024-02-15 21:03:09 -05:00
);
------------------------------------------------------------------------------------------
2024-02-16 09:59:19 -05:00
type element is
record
kind : format;
data : integer;
text : core.short_string;
icon : core.sprite;
end record;
type element_array is array (natural range <>) of element;
type information is
record
title : core.short_string;
length : integer;
elements : access element_array;
end record;
type trait_array is array (codex) of information;
------------------------------------------------------------------------------------------
trait : trait_array;
------------------------------------------------------------------------------------------
2024-02-15 21:03:09 -05:00
procedure configure;
2024-02-16 09:59:19 -05:00
procedure draw (index : in codex; x, y : in integer);
2024-02-15 21:03:09 -05:00
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
end menu;