PDA

View Full Version : Theme Extension not overriding the Radial Background



MadBeardMan
March 2nd, 2021, 23:43
Hi,

Has anyone got a theme working where they override the Rulesets radial background graphic?

I've got a Call of Cthulhu theme for the new Masks book, it's based on 7E, yet the theme can't change the radial background, in fact when trying to override it, the radial background doesn't display.

SuperTeddy has tried this for me on CoreRPG and it's the same issue.

graphics/graphics_radial.xml

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Copyright SmiteWorks USA, LLC., 2011 -->

<root>
<!-- Radial -->
<icon name="menubackground" file="graphics/radial/menubackground.png" />
<icon name="menuhub" file="graphics/radial/menuhub.png" />
<icon name="menuback" file="graphics/radial/menuback.png" />
</root>

gameelements_mon.xml

<?xml version="1.0" encoding="iso-8859-1"?>

<!--
Please see the license.html file included with this distribution for
attribution and copyright information.
-->

<root>
<menusettings>
<radial>
<hubcolor></hubcolor>
<backgroundcolor></backgroundcolor>
<iconcolor></iconcolor>
</radial>
</menusettings>
</root>

extension.xml

<includefile source="gameelements_mon.xml" />
<includefile source="graphics/graphics_radial.xml" />

The three graphic files in the graphics/radial folder:

menubackground.png
menuhub.png
menuback.png

Note: the menuhub and menuback display correctly. Also if I edit the hubcolor etc, those change correctly.

Anyone got any thoughts? Feels like a bug.

Cheers,
MBM

Moon Wizard
March 3rd, 2021, 04:33
The problem is that the menusettings are not defined, because the CoC 7E ruleset uses full replacement images for the radial menu.

If you want to override, you have to redefine the radial menu objects again, just like in CoreRPG:


<menusettings>
<radial>
<hubicon>menuhub</hubicon>
<backicon>menuback</backicon>
<background>menubackground</background>
<hubcolor>A08080</hubcolor>
<backgroundcolor>A08080</backgroundcolor>
<iconcolor>FFFFFF</iconcolor>
</radial>
</menusettings>

except replacing the hubcolor and backgroundcolor to what you want.

Regards,
JPG