Object Map editor – rules order

Object Map editor – rules order

Issue

The Crash Magic object map editor has changed the order in which it displays the rules for generating crash symbols. The rules are now displayed in the order that they will be rendered rather than alphabetically.

Explanation

Crash Magic uses an “ObjectMap” to determine the graphics to display for a given crash. It is a list of rules associated with a graphic that will be displayed if that rule is true.

In version v 4.1.209 and earlier, the editor for the Object Map displayed the rules in alphabetical order on the Admin Object Map page. However, the rendering process used the order that the rules were added. (and that they are stored in the XML data) This discrepancy could be confusing to a configuration author.

Normally, with the unfilled stick – figures, the rendering order doesn’t matter. But in some cases, like when a solid-filled red circle is used for a fatality, the symbol may be rendered after the arrows, the ped symbols, fixed objects, etc. In that case the red circle will obscure the other graphics. The desired behavior is to have the red circle rendered “behind” the other symbols.  Still visible, but not obscuring the arrow and other lines.  Note the two renderings below:

Graphic obscured by fatalitiy symbol Graphic not obscured by fatalitiy symbol

 

Solution

In the Object Map below, the “Attribute – Fatality” rule appears prior to all of the vehicle arrow symbols. But as the preview shows, it is being rendered close to last and is thus appearing on top of the other symbols.

Sorted object map

With the new ordering, it is more obvious why the symbol is being display on top. (it is last in the rules list)

Unsorted object map

In this final image, the Attribute – Fatality is show at the top of the list, rendering first. All the other symbols render later, on top of the red-filled circle.

Unsorted object map with fatality rule at top

Important: The change to this non-alphabetical list showing the rules in render order, does not change any existing configuration output.  It is only different when viewing the list in Object Map editor on the admin page.

 

 

Was this article helpful?
3.5 out Of 5 Stars

2 ratings

5 Stars 0%
4 Stars 0%
3 Stars 100%
2 Stars 0%
1 Stars 0%
How can we improve this article?
How Can We Improve This Article?