1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

Custom Colors for Dotmap

Discussion in 'Civ4 - BTS Unaltered Gameplay (BUG, BAT and BULL)' started by Oblivionyx, Sep 17, 2018.

  1. Oblivionyx

    Oblivionyx Warlord

    Joined:
    Sep 10, 2018
    Messages:
    171
    Gender:
    Male
    Is there a way to add custom colors to the dotmap in BUG? I changed the colors of some civs with custom colors, and I wanted to do the same to the dotmap. I found the "Strategy Overlay" file that defines opacity/brightness of the dotmaps, but not where it defines the colors...
     
  2. Lemon Merchant

    Lemon Merchant Superconductor Moderator

    Joined:
    Jun 27, 2008
    Messages:
    7,779
    Gender:
    Female
    Location:
    Red Sector A
    Strategy Overlay.XML defines the colors in the <init> section of the file. Specifically this:

    Code:
    <init>
           <arg name="paletteWidth" type="int" value="3"/>
           <arg name="paletteColors" type="tuple">
               "COLOR_PLAYER_BROWN",
               "COLOR_PLAYER_PEACH",
               "COLOR_PLAYER_PEACH_TEXT",
              
               "COLOR_PLAYER_PALE_RED",
               "COLOR_RED",
               "COLOR_PLAYER_PINK",
    
               "COLOR_PLAYER_PALE_ORANGE",
               "COLOR_PLAYER_ORANGE",
               "COLOR_PLAYER_DARK_YELLOW",
              
               "COLOR_GREAT_PEOPLE_RATE",
               "COLOR_YELLOW",
               "COLOR_PLAYER_LIGHT_YELLOW",
              
               "COLOR_PLAYER_DARK_GREEN",
               "COLOR_PLAYER_GREEN",
               "COLOR_PLAYER_LIGHT_GREEN",
              
               "COLOR_PLAYER_DARK_CYAN",
               "COLOR_PLAYER_MIDDLE_CYAN",
               "COLOR_PLAYER_CYAN",
              
               "COLOR_PLAYER_DARK_BLUE",
               "COLOR_PLAYER_BLUE",
               "COLOR_PLAYER_LIGHT_BLUE",
              
               "COLOR_PLAYER_DARK_PURPLE",
               "COLOR_MAGENTA",
               "COLOR_PLAYER_PURPLE_TEXT",
              
               "COLOR_BLACK",
               "COLOR_LIGHT_GREY",
               "COLOR_WHITE"
           </arg>
       </init>
    
    Change these colors appropriately to whatever you want, as long as they conform to BTS color naming constants.
     
    Oblivionyx likes this.

Share This Page