-
December 16th, 2023, 19:06 #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.
-----
roll dice. it builds character.
-
December 16th, 2023, 19:57 #2
The two buttons in yellow are:
windowmenubar_close.png
windowmenubar_help.png
located in the graphics\icons\ directoryLast 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
-
December 16th, 2023, 20:02 #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
-
December 16th, 2023, 23:13 #4
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 21,072
In addition to what @mattekurre provided, you'll need to define:
framedef name="windowmenubar_button"
framedef name="windowmenubar_button_down"
Regards,
JPG
-
December 17th, 2023, 23:30 #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.
-
December 17th, 2023, 23:48 #6
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
-
December 18th, 2023, 21:29 #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!
-----
roll dice. it builds character.
-
December 18th, 2023, 23:11 #8
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 21,072
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
-
August 5th, 2024, 15:11 #9
-
August 5th, 2024, 15:58 #10
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!
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks