5E Character Create Playlist
  1. #1

    How do I get dumb text in a charsheet subwindow that can be turned off and on?

    I thought first I could just use something like:

    Code:
    	<windowclass name="charsheet" merge="join">
    ...
    		<sheetdata>
    			<subwindow name="sub_mystuff">
    ...
    				<class>char_mystuff</class>
    				<activate />
    				<fastinit />
    				<invisible />
    				<disabled />
    			</subwindow>
    		</sheetdata>
    	</windowclass>
    
    	<windowclass  name="char_mystuff" >
    ...
    		<sheetdata>
    			<label_charframetop name="theAstuff">
    ...
    				<static textres="my_text_A" />
    				<invisible />
    			</label_charframetop>
    			<label_charframetop name="theBstuff">
    ...
    				<static textres="my_text_B" />
    				<invisible />
    			</label_charframetop>
    			<label_charframetop name="theCstuff">
    ...
    				<static textres="my_text_C" />
    				<invisible />
    			</label_charframetop>
    
    ...
    		</sheetdata>
    	</windowclass>
    and then turn them on and off at various times with

    Code:
    			window.theAstuff.setVisible(true);
    .etc
    At this point I figured this failed because they are not a control or something. So tried to wrap them in genericcontrol(s) but no luck there either.

    So my question is - in a sub window full of controls - how do I place and control DUMB text? It seems to be there. But it is never ever displayed. Unless I'm not in the sub window - then labels work fine.

    What do you do here?
    Free(Forums/Forge) Extension(FGU 5E):
    Paid (Forge) Extension(FGU 5E):

  2. #2
    Ampersandrew's Avatar
    Join Date
    Nov 2017
    Location
    Belfast, Northern Ireland
    Posts
    249
    What size is it? how have you positioned it in the window?

  3. #3
    Quote Originally Posted by Ampersandrew View Post
    What size is it? how have you positioned it in the window?
    I defined no width or height in the label - just an anchor point off another control. This EXACT subwindow above applied to the NPC sheet works for the label. Applied to the charsheet it does not.
    Free(Forums/Forge) Extension(FGU 5E):
    Paid (Forge) Extension(FGU 5E):

  4. #4
    Guess I'll have to trial and error on my own to figure this out.
    Free(Forums/Forge) Extension(FGU 5E):
    Paid (Forge) Extension(FGU 5E):

  5. #5
    Ampersandrew's Avatar
    Join Date
    Nov 2017
    Location
    Belfast, Northern Ireland
    Posts
    249
    Quote Originally Posted by SilentRuin View Post
    I defined no width or height in the label - just an anchor point off another control. This EXACT subwindow above applied to the NPC sheet works for the label. Applied to the charsheet it does not.
    Try defining a width and see if it shows up.

  6. #6
    Quote Originally Posted by Ampersandrew View Post
    Try defining a width and see if it shows up.
    I don't know what I was doing wrong - but starting from scratch on these labels and everything is now working. My own stupidity at doing something bizarre I guess - then when starting at it fresh - worked. Not sure what I was doing wrong first time but I'm betting you were right and it had something to do with not giving height and width. Lesson learned, labels get a height and width always from now on.
    Free(Forums/Forge) Extension(FGU 5E):
    Paid (Forge) Extension(FGU 5E):

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
  •  
DICE PACKS BUNDLE

Log in

Log in