View Single Post
Old 06-07-13, 05:22 PM   #10327
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by divingbluefrog View Post
I know from the first post of the Generic Patcher thread, that it is "easy" to have different colors for different tools, but what about different colors for a given tool?
Well I added the code to allow the colors to be changed on the fly for the map tools but it didn't work as expected. The game updates all instances of the map tool with the new color WHEN a new instance of the tool is placed on the map. I'd have to rewrite all the map tools code in order to be able to use different colors for each instance of the tool. Maybe someday I'll do this.

In the meantime here's the new feature:

mousing over any map tool (compass, ruler, marker, or protractor) you will see this:


Right clicking the map tool will cause this to appear:


scrolling into each entry of Red, Green, Blue, and Alpha and using the mousewheel will allow you to change the values. The color box will be updated in real time to show you the new color. Once you have the new color wanted mouse over the color box:


Clicking the color box will set the new color for the map tool. The new color DOES NOT take affect until you place a new instance of the tool on the map. Doing so will cause all instances of this tool on the map to change to the new color.

Note: you CAN set the alpha value to make them transparent

Here I clicked the color box to set the new color and placed a new mark on the map:


Here I clicked the Restore original color button to restore the map tool's color to it's original color. NOTE: you still have to click the color box to apply the new color to the map tool! I did click the color box to set the map tools new color. Also note that the instances of the tool on the map remained their previous color. When you place a new instance of the tool on the map then all instances of the tool will change to the new color.



Here I place a new instance of the marker tool and all instances changed to the new color:


NewUIs v7.5.0 test version 6 available here: http://www.mediafire.com/?kags81b36bs6jss

NOTE: Your anti-virus software will probably really complain about TDWDestroyedMarks.dll because of the code I have in their for updating colors in real-time
TheDarkWraith is offline   Reply With Quote