PDA

View Full Version : Need Help. Changing the font color on an extension.



TalonKaine
December 22nd, 2015, 17:03
Greetings all. Can anyone out there help me with the following problem. I'm modifying the GURPS_valahn extension. The font on the hotkey bar is a bright orange color. I would like to change the font color from orange to 323d12. Can someone tell me the sting of code needed to do such a thing, and also which file name and where to insert it. Thanks to any who can help.

From some research I noticed someone said to add the following block of text to the extension.xml file, and just replace the color with the one I want.

<!-- Fonts -->
<font name="hotkey">
<fgffile name="fonts/verdana_regular_8.fgf" />
<color value="#eae6e3" />
</font>

I've tried entering this in multiple places in the body of text and it won't work. Can anyone confirm this is correct?

Below is a copy of the contents of the extension.xml file I'm working with.



<?xml version="1.0" encoding="iso-8859-1"?>
<root version="2.0" release="1">
<properties>
<name>Wild Onslaught</name>
<version>1</version>

<author>Fantasy Grounds Gurps Ruleset</author>
<description>Gurps 4e ruleset theme extension</description>

<!-- <ruleset>
<name>GURPS_4e</name>
</ruleset>
<ruleset>
<name>GURPS_4e</name>
</ruleset>-->

</properties>

<base>
<includefile source="desktop_classes.xml" />
<includefile source="graphics.xml" />
<includefile source="graphics_frames.xml" />
<includefile source="bmpfonts.xml" />

<panel name="chat" modes="host,client">
<class>chat</class>
<bounds>
<rect>15,90,390,560</rect>
</bounds>
<dynamic />
<locked />
</panel>
</base>
</root>

damned
December 23rd, 2015, 05:10
unpack the ruleset into its own folder under rulesets.
use notepad++ to do a find-in-files for hotkey
find where the font itself is defined - there will be a few hotkey entries that arent what you are looking for

once you have it changed and its working on your screen we can look at turning it into an extension.

TalonKaine
December 23rd, 2015, 13:57
Thanks damned. I was able to find it. I have it all done and taken care of now. Thanks.