DICE PACKS BUNDLE
Page 1 of 2 12 Last
  1. #1

    corerpg interface graphics questions

    .
    hi. not sure if this is the correct forum; plz move to appropriate one if necessary.

    i have gone under the hood and replaced a good amount of graphics to create a themed interface.

    i am running into a few things that are puzzling and i can't figure them out. in the attached pic (below):

    - the graphics in the magenta areas -- they are displaying as dark and not see-able; the original graphics are white. what is going on here?
    - the icons in the yellow area -- where are these (overlaying icons?) files, as i am not able to locate them in the 'graphics' directory?

    thx for any insight.


    Attached Images Attached Images
    -----
    roll dice. it builds character.

  2. #2
    The two buttons in yellow are:
    windowmenubar_close.png
    windowmenubar_help.png

    located in the graphics\icons\ directory
    Last edited by mattekure; December 16th, 2023 at 20:04.
    For support with any of my extensions, visit my #mattekure-stuff channel on Rob2e's discord https://discord.gg/rob2e

  3. #3
    I believe the icons colors are set using the ColorManager functions like:

    ColorManager.resetUIColors();

    ColorManager.setSidebarCategoryIconColor("A3A29D") ;
    ColorManager.setSidebarCategoryTextColor("A3A29D") ;
    ColorManager.setSidebarRecordIconColor("272727");
    ColorManager.setSidebarRecordTextColor("272727");
    ColorManager.setButtonContentColor("FFFFFF");
    ColorManager.setWindowMenuIconColor("31352E");
    Last edited by mattekure; December 16th, 2023 at 20:05.
    For support with any of my extensions, visit my #mattekure-stuff channel on Rob2e's discord https://discord.gg/rob2e

  4. #4
    In addition to what @mattekurre provided, you'll need to define:

    framedef name="windowmenubar_button"
    framedef name="windowmenubar_button_down"

    Regards,
    JPG

  5. #5
    .
    i appreciate the info... but it's kinda outside of my experience to know where /how to apply codes.

    i was hoping it was a matter of swapping out graphics. thx anyway.
    -----
    roll dice. it builds character.

  6. #6
    Quote Originally Posted by tahl_liadon View Post
    .
    i appreciate the info... but it's kinda outside of my experience to know where /how to apply codes.

    i was hoping it was a matter of swapping out graphics. thx anyway.
    A good example would be to unzip up one of the provided themes and see how its done. for exmaple, the FG leather theme can be unzipped and take a look at the extension.xml file. it contains a perfect example of how to use the functions I listed. you can also look inside the graphics_frames.xml file for an example of the framedef definitions. they are not terribly complex.

    Code:
    <root version="3.0">
    	<announcement text="SmiteWorks Leather Theme for Fantasy Grounds\rCopyright 2019 Smiteworks USA, LLC." font="emotefont" icon="rulesetlogo_CoreRPG" />
    
    	<properties>
    		<name>Theme: FG Leather</name>
    		<author>SmiteWorks</author>
    		<loadorder>50</loadorder>
    		<ruleset>Any</ruleset>	
    	</properties>
    	
    	<base>
    		<script name="DesktopThemeLeather">
    			function onInit()
    				ColorManager.resetUIColors();
    
    				ColorManager.setSidebarCategoryIconColor("A3A29D");
    				ColorManager.setSidebarCategoryTextColor("A3A29D");
    				ColorManager.setSidebarRecordIconColor("332A25");
    				ColorManager.setSidebarRecordTextColor("332A25");
    				ColorManager.setButtonContentColor("FFFFFF");
    				ColorManager.setWindowMenuIconColor("332A25");
    			end
    		</script>
    For support with any of my extensions, visit my #mattekure-stuff channel on Rob2e's discord https://discord.gg/rob2e

  7. #7
    .
    thx much @mattekure for pointing me in the right direction.

    with a little trial-and-error, i managed to apply desired colors / graphics (texts / icons green is currently a bit intense, but i know where to adjust now).

    cheers!


    Attached Images Attached Images
    -----
    roll dice. it builds character.

  8. #8
    As a suggestion, I might simplify the buttonup/buttondown frames in your theme too. They are a bit noisy and make the font harder to read on the button.

    Regards,
    JPG

  9. #9
    Quote Originally Posted by mattekure View Post
    A good example would be to unzip up one of the provided themes and see how its done. for exmaple, the FG leather theme can be unzipped and take a look at the extension.xml file. it contains a perfect example of how to use the functions I listed. you can also look inside the graphics_frames.xml file for an example of the framedef definitions. they are not terribly complex.

    Code:
    <root version="3.0">
    	<announcement text="SmiteWorks Leather Theme for Fantasy Grounds\rCopyright 2019 Smiteworks USA, LLC." font="emotefont" icon="rulesetlogo_CoreRPG" />
    
    	<properties>
    		<name>Theme: FG Leather</name>
    		<author>SmiteWorks</author>
    		<loadorder>50</loadorder>
    		<ruleset>Any</ruleset>	
    	</properties>
    	
    	<base>
    		<script name="DesktopThemeLeather">
    			function onInit()
    				ColorManager.resetUIColors();
    
    				ColorManager.setSidebarCategoryIconColor("A3A29D");
    				ColorManager.setSidebarCategoryTextColor("A3A29D");
    				ColorManager.setSidebarRecordIconColor("332A25");
    				ColorManager.setSidebarRecordTextColor("332A25");
    				ColorManager.setButtonContentColor("FFFFFF");
    				ColorManager.setWindowMenuIconColor("332A25");
    			end
    		</script>

    can this bit be put somewhere in, or as, a file within the graphics directory of corerpg.pak, as opposed to creating a theme?
    -----
    roll dice. it builds character.

  10. #10
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,985
    Quote Originally Posted by tahl_liadon View Post

    can this bit be put somewhere in, or as, a file within the graphics directory of corerpg.pak, as opposed to creating a theme?
    The ColorManager functions are in CoreRPG to allow devs to change the default values in their own code. The code you show doesn't need to be in CoreRPG - if a dev wants to change the defaults, they use these functions in their own code.

    Refer to scripts\manager_color.lua in the CoreRPG ruleset for the defaults and the functions to change those defaults.
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

Page 1 of 2 12 Last

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
  •  
5E Product Walkthrough Playlist

Log in

Log in