About weapon tags color

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

xyq565861
Posts: 3
Joined: Sat, 1. Dec 18, 03:41
x4

About weapon tags color

Post by xyq565861 »

I have created a special weapon for a new ship. I already know how to restrict weapons using weapon tags. I want the weapon tags to be displayed as 'highpower' and appear pink in the weapon slot. I tried adding highpower tags to the ship's slot tags, but that allowed this slot to equip all highpower weapons.

How can I customize a tag with color?
User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13485
Joined: Sun, 15. Feb 04, 20:12
x4

Re: About weapon tags color

Post by euclid »

I'm not that much into UI modding but you should check the helper.lua file in ui\addons\ego_detailmonitorhelper where line 9475 reads: [4] = { tag = "highpower", color = { r = 214, g = 129, b = 187, a = 100 } }

Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786

Return to “X4: Foundations - Scripts and Modding”