Jump to content
Korean Random
CarlitosMelis

Change color damage Markers

Recommended Posts

Hello, I would like to change the color of the writing with the damage inflicted on the enemy on the markers, how can I do?

 

p.s.:

Sorry for my english! :blush:

Share this post


Link to post

Short link
Share on other sites

File markersAliveNormal.xc  "def"->"damageText"->"textFormat"->"color".

For example:

  "def": {
    // Floating damage values.
    // Всплывающий урон.
    "damageText": {
      // false - disable / не отображать.
      "enabled": true,
      // Axis field coordinates
      // Положение поля по осям
      "x": 0,
      "y": -67,
      // Opacity (dynamic transparency allowed, see macros.txt).
      // Прозрачность (допускается использование динамической прозрачности, см. macros.txt)
      "alpha": 100,
      "align": "center",
      // Font options.
      // Параметры шрифта.
      "textFormat": {
        "font": "$FieldFont",           // Font name      / Название
        "size": 18,                     // Font size      / Размер
        // Color (dynamic colors allowed, see macros.txt).
        // Цвет (допускается использование динамического цвета, см. macros.txt)
        "color": "0xFF0000", // red
        "bold": false,                  // True - bold    / Жирный.
        "italic": false                 // True - italic  / Курсив.
      },

 

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites
6 hours ago, ktulho said:

File markersAliveNormal.xc  "def"->"damageText"->"textFormat"->"color".

For example:


  "def": {
    // Floating damage values.
    // Всплывающий урон.
    "damageText": {
      // false - disable / не отображать.
      "enabled": true,
      // Axis field coordinates
      // Положение поля по осям
      "x": 0,
      "y": -67,
      // Opacity (dynamic transparency allowed, see macros.txt).
      // Прозрачность (допускается использование динамической прозрачности, см. macros.txt)
      "alpha": 100,
      "align": "center",
      // Font options.
      // Параметры шрифта.
      "textFormat": {
        "font": "$FieldFont",           // Font name      / Название
        "size": 18,                     // Font size      / Размер
        // Color (dynamic colors allowed, see macros.txt).
        // Цвет (допускается использование динамического цвета, см. macros.txt)
        "color": "0xFF0000", // red
        "bold": false,                  // True - bold    / Жирный.
        "italic": false                 // True - italic  / Курсив.
      },

 

Ok, but I want to change the color of when I do damage on the enemies, now it's yellow and I want to differentiate it from the color of the shots of the platoon friends.

 

In my config i have:

Quote

"def": {
    // Floating damage values.
    // Всплывающий урон.
    "damageText": {
      // false - disable / не отображать.
      "enabled": true,
      // Axis field coordinates
      // Положение поля по осям
      "x": 0,
      "y": -90,
      // Opacity (dynamic transparency allowed, see macros.txt).
      // Прозрачность (допускается использование динамической прозрачности, см. macros.txt)
      "alpha": 100,
      "align": "center",
      // Font options.
      // Параметры шрифта.
      "textFormat": {
        "font": "$FieldFont",           // Font name      / Название
        "size": 18,                     // Font size      / Размер
        // Color (dynamic colors allowed, see macros.txt).
        // Цвет (допускается использование динамического цвета, см. macros.txt)
        "color": null,
        "bold": true,                  // True - bold    / Жирный.
        "italic": false                 // True - italic  / Курсив.
      },

 

Edited by CarlitosMelis

Share this post


Link to post

Short link
Share on other sites

@CarlitosMelis add definition:

"damageTextSquad": {
  "$ref": { "path":"def.damageText" },
  "textFormat": {
    "color": "0x00FF00", // green
  }
},

and change "enemy"->"damageTextSquadman":

    "damageTextSquadman": {
      "$ref": { "path":"def.damageTextSquad" }
    },

 

Share this post


Link to post

Short link
Share on other sites

this is what you are Looking for. and can be found in Colors.xc

 

      "squadman_enemy_hit":         ${"def.sq"},
      "squadman_enemy_kill":        ${"def.sq"},
      "squadman_enemy_blowup":      ${"def.sq"},

example:

"squadman_enemy_hit":         "0x0d77ca",

 

Edited by Golfer

Share this post


Link to post

Short link
Share on other sites
57 minutes ago, ktulho said:

@CarlitosMelis add definition:


"damageTextSquad": {
  "$ref": { "path":"def.damageText" },
  "textFormat": {
    "color": "0x00FF00", // green
  }
},

and change "enemy"->"damageTextSquadman":


    "damageTextSquadman": {
      "$ref": { "path":"def.damageTextSquad" }
    },

 

I tried as you told me, but now all the pop-up damage on the markers you see green, I would like only when I hit come out green, if he shoots a red ally, and if he shoots a platoon mate in yellow.
is it possible to differentiate the color for the three different situations?

Share this post


Link to post

Short link
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...