5E Product Walkthrough Playlist

Thread: Close button

  1. #1
    Xarxus's Avatar
    Join Date
    Mar 2019
    Location
    Rome (Italy)
    Posts
    244

    Close button

    I can't understand the differences between the two buttons. It seems both derive from close, buth they are different, so what am I missing (coordinates aside)?
    Code:
    	<template name="close_charselect">
    		<close>
    			<anchored>
    				<top offset="1" />
    				<right offset="-1" />
    			</anchored>
    		</close>
    	</template>
    
    	<template name="close_recordsheet">
    		<close>
    			<anchored>
    				<top offset="0" />
    				<right offset="0" />
    			</anchored>
    		</close>
    	</template>
    
    	<template name="close_utilitybox">
    		<close>
    			<anchored>
    				<top offset="0" />
    				<right offset="0" />
    			</anchored>
    		</close>
    	</template>
    Attached Images Attached Images
    Last edited by Xarxus; December 15th, 2023 at 16:35.
    FGU ULTIMATE License
    Click here for RPG Music or here for Dwarves songs on Spotify

  2. #2
    close_charselect and close_utilitybox are both deprecated with the latest release; so setting those templates will not change anything.

    There are two new templates (windowmenubar_utilitybox, windowmenubar_charselect) for laying out the new window menu buttons. The recordsheet top-level window frames have not been migrated yet, but that's in the pipeline.

    Regards,
    JPG

  3. #3
    Xarxus's Avatar
    Join Date
    Mar 2019
    Location
    Rome (Italy)
    Posts
    244
    I still do not understand the differences (see the image).


    Code:
    	<template name="windowmenubar">
    		<subwindow>
    			<anchored position="insidetop" />
    			<class>windowmenubar</class>
    			<activate />
    		</subwindow>
    	</template>
    
    	<template name="windowmenubar_charselect">
    		<windowmenubar>
    			<anchored offset="-1,1" />
    		</windowmenubar>
    	</template>
    
    	<template name="windowtitlebar_utilitybox">
    		<windowtitlebar>
    			<anchored offset="0,0" />
    		</windowtitlebar>
    	</template>
    Immagine.png
    Last edited by Xarxus; December 16th, 2023 at 14:03. Reason: errors
    FGU ULTIMATE License
    Click here for RPG Music or here for Dwarves songs on Spotify

  4. #4
    That's the difference between the old templates/graphics with the new templates/graphics.
    We are transitioning from the old composited fixed button graphics to a dynamically generated window menu bar that can be more easily themed and added to.

    In order to minimize chaos across rulesets/extensions, I am slowly converting top-level window types to the new layout and features in stages. Thus, you are seeing both right now, depending on the window you are looking at.

    Regards,
    JPG

  5. #5
    Xarxus's Avatar
    Join Date
    Mar 2019
    Location
    Rome (Italy)
    Posts
    244
    Ok, it's dynamic, but where's the code? How can I decide which type my windows should show?
    FGU ULTIMATE License
    Click here for RPG Music or here for Dwarves songs on Spotify

  6. #6
    The menu bar you should use is tied to the top-level window frame used. Basically, you adjust the menu bar positioning to match the graphic you are using for the frame definition, so that everything appears to line up.

    Here's a summary of the suggested top-level window frames; and how they should be used:
    https://fantasygroundsunity.atlassia...-Level-Windows

    Regards,
    JPG

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