GI JOE RPG Launch
  1. #1

    Join Date
    Mar 2009
    Location
    Lidingö, Sweden, Europe
    Posts
    407

    Name the label_frametop in campaign/record_char_inventory.xml?

    Would it be possible to set a name to the label_frametop in campaign/record_char_inventory.xml?

    Without a name it's not possible to override the label using merge. This is the current setup:
    Code:
    <root>
        <windowclass name="charsheet_inventory" merge="join">
            <sheetdata>
                <label_frametop>
                    <anchored to="encumbranceframe" offset="0,55" />
                    <static>Armor</static>
                </label_frametop>
            </sheetdata>
        </windowclass>
        </root>
    It would be good if it could be changed to something like this:
    Code:
    <root>
        <windowclass name="charsheet_inventory" merge="join">
            <sheetdata>
                <label_frametop name="encumbrance_frame_label">
                    <anchored to="encumbranceframe" offset="0,55" />
                    <static>Armor</static>
               </label_frametop>
            </sheetdata>
        </windowclass>
        </root>
    Then I can do like this in an extension:
    Code:
    <windowclass name="charsheet_inventory" merge="join">
            <script file="campaign/scripts/encumberance_penalty.lua" />
    		<sheetdata>
                           <label_frametop name="encumbrance_frame_label" merge="delete">
    				<anchored to="encumbranceframe" offset="0,55" />
                                    <static>Armor</static>
    		       </label_frametop>
                           <label_frametop name="encumbrance_frame_label_new">
    				<anchored to="encumbranceframe" />
                                    <static>Encumberance</static>
    		      </label_frametop>
    ...
    TIA.

  2. #2
    I have no idea why that control is even there (i.e. label with no matching data); so I'm removing that particular override from the ruleset in the next update.

    Regards,
    JPG

  3. #3

    Join Date
    Mar 2009
    Location
    Lidingö, Sweden, Europe
    Posts
    407
    OK. Thanks.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Cosmere RPG Beta Launch

Log in

Log in