Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Overview

    • Review all subsections below.

    • Note specific ruleset changes identified and called out in following three sections.

    • All themes should pay special attention to the Top Level Windows section in the guidelines linked below.

  • Frame Usage Guidance (Continuing)

  • Updates To Be Made (General)

    • Frame Migration: charsheet, charsheethelper

      • Migrate windows to use top-level window usage guidelines for these frames.

      • If these frames are used for windows not related to character sheets, migrate those windows to the correct top-level frame based on the guidelines.

      • Search for any windows using those frames; and specify the new top-level templates and rebuild using the new layout templates.

      • See specific implementation below for Character Sheet (and Mini Character Sheet)

    • Frame Layout Templates

      • Use CoreRPG definitions as starting point

      • Add or update the following templates (only if charsheet frame overriden)

        • windowmenubar_charsheet, anchor_content_charsheet_top, anchor_content_charsheet_tabbed_top, anchor_content_charsheet_bottom,

      • Add or update the following templates (only if charsheethelper frame overriden)

        • windowtitlebar_charsheethelper, windowmenubar_charsheethelper, anchor_content_charsheethelper_top, anchor_content_charsheethelper_bottom,

      • Remove old templates (see below)

    • Misc Cleanup

      • Remove assets no longer used. (see below)

      • Remove direct “power_action_editor” references; use button_poweractioneditor. [Shadowdark]

      • Remove direct color setting for errors/overages: [RMC, Shadowdark, HASE20, ]

        • Ex: setColor("FF0000"), setColor("#FF0000")

        • Use setColor(ColorManager.getUIColor("field_error")), setColor(nil)

  • Character Sheet Specific

    • Redefined “charsheet” window class, using copy=”charsheet_base” and define tabs/scripts.

      Code Block
      	<windowclass name="charsheet" copy="charsheet_base">
      		<tab>
      			<name>main</name>
      			<resource>tab_main</resource>
      			<class>charsheet_main</class>
      		</tab>
      		<tab merge="add">
      			<name>abilities</name>
      			<resource>tab_abilities</resource>
      			<class>charsheet_abilities</class>
      		</tab>
      		<tab merge="add">
      			<name>inventory</name>
      			<resource>tab_inventory</resource>
      			<class>charsheet_inventory</class>
      		</tab>
      		<tab merge="add">
      			<name>notes</name>
      			<resource>tab_notes</resource>
      			<class>charsheet_notes</class>
      		</tab>
      	</windowclass>
      	<windowclass name="charsheet_overview" copy="charsheet_overview_base" />
    • If onInit override in window class script, then add super.onInit; or WindowTabManager.populate(self).

    • Fix internal sub-sheets (Ex: charsheet_main, charsheet_notes, etc.) to remove extra space required from previous layouts that is now automatically handled.

  • Mini Character Sheet Specific

    • Add following script call to a global script, such as CharManager or GameSystem.

      • WindowMenuManager.initCharMinisheetSupport();

    • Define “charsheetmini” window class, and use copy=”charsheet_base” and define tabs/scripts

      Code Block
      	<windowclass name="charsheetmini" copy="charsheet_base">
      		<sizelimits>
      			<minimum width="450" height="495" />
      		</sizelimits>
      		<tab>
      			<name>main</name>
      			<resource>tab_main</resource>
      			<class>charsheetmini_main</class>
      		</tab>
      		<tab merge="add">
      			<name>abilities</name>
      			<resource>tab_abilities</resource>
      			<class>charsheetmini_abilities</class>
      		</tab>
      		<tab merge="add">
      			<name>inventory</name>
      			<resource>tab_inventory</resource>
      			<class>charsheetmini_inventory</class>
      		</tab>
      		<tab merge="add">
      			<name>actions</name>
      			<resource>tab_actions</resource>
      			<class>charsheetmini_actions</class>
      		</tab>
      		<minisheet />
      		<script file="campaign/scripts/char.lua" />
      		<sheetdata>
      			<sub_content_top name="overview">
      				<class>charsheetmini_overview</class>
      			</sub_content_top>
      		</sheetdata>
      	</windowclass>
      	<windowclass name="charsheetmini_overview" copy="charsheet_overview_base" />
      
    • If onInit override in window class script, then add super.onInit; or WindowTabManager.populate(self).

    • Fix internal sub-sheets (Ex: charsheet_main, charsheet_notes, etc.) to remove extra space required from previous layouts that is now automatically handled.

  • Assets Removed

    • Templates

      • button_charactivate, sub_charsheet, sub_charsheet_overview,

      • close_charsheet, close_charsheethelper, anchor_title_charsheethelper,

      • button_charmini, button_charfull,

    • Strings

      • char_label_minisheet, char_label_fullsheet,

...