Refactored menu creation...
This commit is contained in:
parent
2172a630b1
commit
c67091299f
@ -8,17 +8,9 @@ package body menu is
|
||||
|
||||
procedure configure is
|
||||
begin
|
||||
trait (attribute_information).title := "Attribute Information ";
|
||||
trait (skill_information).title := "Skill Information ";
|
||||
trait (resource_information).title := "Resource Information ";
|
||||
--
|
||||
trait (attribute_information).elements := new element_array (0 .. attribute.count - 1);
|
||||
trait (skill_information).elements := new element_array (0 .. skill.count - 1);
|
||||
trait (resource_information).elements := new element_array (0 .. resource.count - 1);
|
||||
--
|
||||
trait (attribute_information).length := attribute.count;
|
||||
trait (skill_information).length := skill.count;
|
||||
trait (resource_information).length := resource.count;
|
||||
trait (attribute_information) := ("Attribute Information ", attribute.count, 10, new element_array (0 .. attribute.count - 1));
|
||||
trait (skill_information) := ("Skill Information ", skill.count, 10, new element_array (0 .. skill.count - 1));
|
||||
trait (resource_information) := ("Resource Information ", resource.count, 10, new element_array (0 .. resource.count - 1));
|
||||
--
|
||||
for index in attribute.codex
|
||||
loop
|
||||
|
@ -28,6 +28,7 @@ package menu is
|
||||
record
|
||||
title : core.short_string;
|
||||
length : integer;
|
||||
height : integer;
|
||||
elements : access element_array;
|
||||
end record;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user