STAR TREK 2d20
  1. #1
    Doswelk's Avatar
    Join Date
    Jul 2005
    Location
    Surrey, UK
    Posts
    2,680

    Change size of NPC box...

    How do you change the size of the NPC box, once open I can re-size without problem but I want to enlarge the default size..

    Code:
    <windowclass name="npc_combat">
    		<datasource name="npc" />
    		<frame name="npcbox_combat" />
    		<defaultsize width="270" height="400" />
    This entry in d20_adventure seems to control the NPC box (at least all the changes I have made in there are displayed when I select an NPC)

    But when I change the
    Code:
    defaultsize width="270" height="400"
    entry nothing happens.

  2. #2
    Look further down in the d20_adventure.xml, you'll find an entry that defines the different pages:

    Code:
    	<windowclass name="npc">
    		<datasource name="npc" />
    		<dynamic r-esize="vertical" />
    		<defaultsize width="270" height="400" />
    		<minimumsize width="270" height="400" />
    		<minimize icon="minimized_npc" />
    		<tooltip field="name" />
    		<sheetdata>
    			<subwindow name="1description">
    				<class name="npc_description" />
    				<activate />
    			</subwindow>
    			<subwindow name="2combat">
    				<class name="npc_combat" />
    			</subwindow>
    			<subwindow name="3other">
    				<class name="npc_other" />
    			</subwindow>
    			...
    Changing the size here will do the trick.

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
  •  
FG Spreadshirt Swag

Log in

Log in