I took it a little farther and made it easy to see which areas are los-only, and radar-only.

Moderator: Moderators
Code: Select all
jamColor[3]
losColor[3]
radarColor[3]
alwaysColor[3]
color[x] =
alwaysColor[x] +
(jamValue * jamColor[x]) +
(losValue * losColor[x]) +
(radarValue * radarColor[x])
Code: Select all
Spring.SetLosViewColors(
-- always los radar jammer
{ 0.25, 0.15, 0.05, 0.25}, -- red
{ 0.25, 0.05, 0.15, 0.0}, -- green
{ 0.25, 0.40, -0.20, 0.0} -- blue
)
Excellent. Now people who complain it look ghey can go stfu andtrepan wrote:I've added (locally) the following LuaUI call-out (and associated support code):
Spring.SetLosViewColor({ Ra, Rl, Rr, Rj }, { Ga, Gl, Gr, Gj }, {Ba, Bl, Br, Bj })
R / G / B: red / green / blue.
a / l / r / j: always / los / radar / jammer.
For example, the default settings are:
Code: Select all
Spring.SetLosViewColors( -- always los radar jammer { 0.25, 0.15, 0.05, 0.25}, -- red { 0.25, 0.05, 0.15, 0.0}, -- green { 0.25, 0.40, -0.20, 0.0} -- blue )