¿ªÔÆÌåÓý

Locked Changing the Signal Mast icons


 

I am using Layout Editor and I now have a fully operational panel thanks to the help and support I have received on here and from others.? Thank you all.

I am not very happy with the BR2003 signal icons - the "Aspects" icons are a bit insipid (I'd like a heavier outline in black and a bit larger) and the "Large" ones are so huge as to be as big as the height of my panel.

I have changed sensor icons by manipulating the USS gifs into various sizes - indeed I bulk edited some of my changes direct into the xml file.? I would like to just chop off the bottom of the "Large" signals (maybe re-scale too?) and use just the heads of the relevant ones instead.

I am used to using the "Edit Sensor Icon" approach on Layout Editor, which works simply.? There does not seem to be something similar for Signal Mast Icons.? I have looked through the xml file but there does not seem to be an address string for the icon anywhere (like there is with Sensors).? I am loathe to try altering the JMRI definition files in the program resources directory. Is there another way?


 

Iain,

The signal mast icon locations are specified in the appearance xml file for each signal mast type.

The appearance xml files are located at "program:xml/signals/<signal system>/" where ¡°program:" is a keyword for the JMRI install location.

For example, BR-2003/appearance-2-h-d-sema.xml is the appearance file for "Semephore Home + Distant Signal¡±.

A typical appearance entry:

? ? <appearance>
? ? ? <aspectname>Proceed</aspectname>
? ? ? <show>green</show>
? ? ? <show>green</show>
? ? ? <delay>1500</delay>
? ? ? <imagelink type="large">../../../resources/icons/BritishRailSignals/Large/semaHomeDistantClear.gif</imagelink>
? ? ? <imagelink type="aspects">../../../resources/icons/BritishRailSignals/Aspects/Proceed-sema-h-d.gif</imagelink>
? ? </appearance>

The image links are relative with the triple ../ moving up the directory tree. ?The icons are in the resources directory tree.

To use custom icons, copy the appearance xml file to "preference:resources/signals/<signal system>/¡°. ?The "preference:" keyword refers to the user files location as shown in Help >> Locations...

Create your custom icons at the exact same path and name within the user files location: ?preference:resources/icons/BritishRailSignals...

When JMRI starts, the signal system data is loaded. ?If the uses files location contains alternate appearance files, those are loaded instead of the standard ones.


Dave Sand



On Dec 10, 2018, at 9:35 AM, Iain <iain@...> wrote:

I am using Layout Editor and I now have a fully operational panel thanks to the help and support I have received on here and from others. ?Thank you?all.

I am not very happy with the BR2003 signal icons - the "Aspects" icons are a bit insipid (I'd like a heavier outline in black and a bit larger) and the?"Large" ones are so huge as to be as big as the height of my panel.

I have changed sensor icons by manipulating the USS gifs into various sizes - indeed I bulk edited some of my changes direct into the xml file. ?I would?like to just chop off the bottom of the "Large" signals (maybe re-scale too?) and use just the heads of the relevant ones instead.

I am used to using the "Edit Sensor Icon" approach on Layout Editor, which works simply. ?There does not seem to be something similar for Signal Mast?Icons. ?I have looked through the xml file but there does not seem to be an address string for the icon anywhere (like there is with Sensors). ?I am loathe?to try altering the JMRI definition files in the program resources directory. Is there another way?


 

Thanks very much.? That was all clear and straightforward - so I'll set about doing it!

I'll move the standard files from the JMRI location to the user location first just to make sure I have it right - then I'll replace the icons with my changed ones.


 

Thanks Dave - worked a treat.? Got just what I wanted.? Since I use Win10 I find that Paint 3D does everything needed including maintaining a transparent background.


 

Iain,

Thanks for the confirmation of the process.

Dave Sand

On Dec 10, 2018, at 1:06 PM, Iain <iain@...> wrote:

Thanks Dave - worked a treat. Got just what I wanted. Since I use Win10 I find that Paint 3D does everything needed including maintaining a transparent background.


 

My pleasure.? You have been so helpful throughout this journey - and now I am enjoying myself with JMRI!

Do you accept virtual beer?? I doubt whether I will ever meet you to buy you a real one!


 

Hi Dave and Iain,

thanks both for this, been having a fantastic exchange of info with Iain and look forward to making these changes as well.

regards

Doug