Custom UI Information
Posted By: Sanya Thomas2006-06-27 17:16:07
This is what I got from the client programmer, whose clever code name shall for the present time be "Ben":

Custom UI Support Information

The following template was added to styles.xml to support the new quest window:

- reward_frame_template: an ImageTemplate which serves as a modified version of icon_socket_large

The Atlantis version as written in styles.xml is as follows:

<ImageAreaTemplate>

<Name>reward_frame_template</Name>

<Parent>none</Parent>

<Size>

<X>33</X>

<Y>33</Y>

</Size>

<TopLeft>

<X>111</X>

<Y>78</Y>

</TopLeft>

<TextureName>page2</TextureName>

</ImageAreaTemplate>

 

In addition, the IconDef control now supports the following tags:

- LabelAdapterName which takes a TextAdapter and updates the label on the icon

- StateAdapterName which takes a ScalarAdapter and offsets the position of the icon down and to the right by the scalar

- OnClickEvent which allows icons to handle click events

- HideLabel which, if set to 1, will hide any label data

IconDef can now take ToolTipID 38, which will create a tool tip containing the Icon's label information.

All custom UIs should also copy over the following files into the custom directory: new_quest_journal_window.xml new_quest_finish_window.xml new_quest_window.xml