5E Character Create Playlist
  1. #1
    Varsuuk's Avatar
    Join Date
    Dec 2015
    Location
    New York
    Posts
    2,075

    skipping a row with relation="current" ?

    I need to edit an existing screen where there used to be 3 label+datafield on leftedge and 3 label+datafields on right edge.

    After my edits, I only have 2 on the left (using label_column and number_column pairs) and I'd like the next control to pick up where it would have - had I not deleted the bottom left control. Right now, I created a blank label and left a dummy number with 0 in it to be placeholder for the rest temporarily.

    Code:
    Label []                  Label []
    Label []                  Label []
    Label []                  Label []
    Label [             ]
    
    becomes:
    
    Label []                  Label []
    Label []                  Label []
                                 Label []   --> This one SHOULD line up but I am not gonna kill myself in this post to make it right - imagine it is ;)
    Label [             ]
    or so I'd like to do in the easiest way changing the least.


    Leftmost label is "label_column"
    Field to right of it is "number_column"

    Label to right is "label_column_right" anchored to the rumber_column on the same row to the left.
    Field to right of this label is "number_column_right" which is anchored to the rumber_column on the same row to the left.

    The elements in question:
    Code:
    [From MoreCore]
    	<template name="label_column">
    		<label>
    			<anchored>
    				<top parent="columnanchor" anchor="bottom" relation="current" offset="7" />
    				<left offset="0" />
    				<right offset="0" />
    			</anchored>
    		</label>
    	</template>
    
    
    	<template name="label_column_right">
    		<label>
    			<anchored>
    				<top />
    				<right parent="" offset="-60" />
    			</anchored>
    		</label>
    	</template>
    
    
    [From CoreRPG]
    	<template name="number_column_right">
    		<basicnumber>
    			<anchored width="40" height="20">
    				<top />
    				<right parent="" offset="-5" />
    			</anchored>
    		</basicnumber>
    	</template>
    
    	<template name="number_column">
    		<basicnumber>
    			<anchored width="40" height="20">
    				<top parent="columnanchor" anchor="bottom" relation="relative" offset="7" />
    				<left offset="97" />
    			</anchored>
    		</basicnumber>
    	</template>

    I have a lot of big-brain-hurt when I play with anchoring...
    Last edited by Varsuuk; July 27th, 2020 at 03:36.

  2. #2
    If you're using the _column field templates in CoreRPG; I don't think there's a standalone template for a right field without a left field being defined. If you're needing to do that, you'll probably have to define a genericcontrol with similar height and relative anchors as the _column controls to force the skip.

    Regards,
    JPG

  3. #3
    Varsuuk's Avatar
    Join Date
    Dec 2015
    Location
    New York
    Posts
    2,075
    Yuppers I came here to post what I did.

    Basically, created another genericcontrol named columnanchorX -> aligned it off the thaco field (it's a right edge field but used its bottom for my top on the generic size0 control.

    From there, I added brute force template copies of every template as I need them appending "X" to their names which would work off "columnanchorX" instead of "columnanchor" but otherwise identical. Got all the way down to "saving throws" now am in middle of reworking that since this uses a different system - but DID get through rest without hardcoding one added the second anchor.

    Thanks Moon.

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
  •  
Starfinder Playlist

Log in

Log in