Log in

View Full Version : Icon aliases



phantomwhale
March 23rd, 2014, 22:15
Is these anyway to have aliases for icons ? Such as:

<icon name="button_openlink" file="graphics/buttons/button_openwindow.png"/>
<icon name="button_openwindow" alias="button_openlink" />

As I look at moving SavageWorlds onto CoreRPG, it occurs to me that I can do some nice tricks with templates to keep old extension code working, and some clever data migrations to keep old DB structures working, but there is a definite break point when icon name change. And to ensure SavageWorlds isn't overriding almost every window asset, I WILL need to change quite a few icons names.

This is most likely an FG wishlist request, but wanted to ask here in case anyone has any ideas around this ?

Regards,
Ben

Moon Wizard
March 24th, 2014, 05:57
There's nothing in FG currently that does that.

Could you just redefine the icons with the older icon names and using the newer files?

JPG

Ikael
March 29th, 2014, 13:28
I second this feature. Actually this would be extremely helpful for windowclasses as well, ie. <windowclass name="mundaneitem" alias="item"/> especially in doing migration work from old ruleset -> CoreRPG layered.
I have been doing SW 3.5 migration to CoreRPG and most annoying compatibility issues are the different windowclass names:



SW windowclass storylist ---> CoreRPG name: encounterlist
SW windowclass combatlist ---> CoreRPG name: battlelist
SWwindowclass mundaneitem ---> CoreRPG name: item
SWwindowclass modifierlist ---> CoreRPG name: modifiers
SWwindowclass modifier ---> CoreRPG name: modifiersmall
SW windowclass effect ---> CoreRPG name: effectsmall


Now all these windowclasses could be replaced with CoreRPG and actually utilize the layering feature, BUT without which alias/ref feature I have to copy-paste full CoreRPG's windowclass codes to SW. It would be much more super approach to utilize CoreRPG implementation with simple windowclass alias.

The same applies to graphics. I have had to define several framedefs multiple times with different names to make them override CoreRPG ones. Ackward again, but doable, thou alias approach would be pure gold.

sciencephile
March 29th, 2014, 15:34
If there are features you want added, add it to the FG Wish List (link in Moon Wizard's signature).

Ikael
March 29th, 2014, 19:28
Feature request is now created: https://fg2app.idea.informer.com/proj/?ia=82564
with insignificant vote of mine :D