mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-17 13:01:41 +00:00
Avoid per-frame 'set' action handler in config.xml for blending day and night color
This commit is contained in:
parent
b09e28e9e0
commit
bf0e0b1d56
1 changed files with 6 additions and 9 deletions
|
@ -2882,15 +2882,12 @@ This MUST follow the Enum MISSION_DESC::TIconId
|
|||
type="bool"
|
||||
value="true" />
|
||||
<!-- Blend between day and night (lightLevel = 0 day) (lightLevel = 1 night) -->
|
||||
<link expr="depends(@UI:VARIABLES:CURRENT_TIME)"
|
||||
action="set"
|
||||
params="dblink=UI:SAVE:COLOR:R|value=ilinear(getLightLevel(), getRed(intToColor(@UI:SAVE:DAY_COLOR)), getRed(intToColor(@UI:SAVE:NIGHT_COLOR)))" />
|
||||
<link expr="depends(@UI:VARIABLES:CURRENT_TIME)"
|
||||
action="set"
|
||||
params="dblink=UI:SAVE:COLOR:G|value=ilinear(getLightLevel(), getGreen(intToColor(@UI:SAVE:DAY_COLOR)), getGreen(intToColor(@UI:SAVE:NIGHT_COLOR)))" />
|
||||
<link expr="depends(@UI:VARIABLES:CURRENT_TIME)"
|
||||
action="set"
|
||||
params="dblink=UI:SAVE:COLOR:B|value=ilinear(getLightLevel(), getBlue(intToColor(@UI:SAVE:DAY_COLOR)), getBlue(intToColor(@UI:SAVE:NIGHT_COLOR)))" />
|
||||
<link expr="identity(ilinear(getLightLevel(), getRed(intToColor(@UI:SAVE:DAY_COLOR)), getRed(intToColor(@UI:SAVE:NIGHT_COLOR))), @UI:VARIABLES:CURRENT_TIME)"
|
||||
target="@UI:SAVE:COLOR:R" />
|
||||
<link expr="identity(ilinear(getLightLevel(), getGreen(intToColor(@UI:SAVE:DAY_COLOR)), getGreen(intToColor(@UI:SAVE:NIGHT_COLOR))), @UI:VARIABLES:CURRENT_TIME)"
|
||||
target="@UI:SAVE:COLOR:G" />
|
||||
<link expr="identity(ilinear(getLightLevel(), getBlue(intToColor(@UI:SAVE:DAY_COLOR)), getBlue(intToColor(@UI:SAVE:NIGHT_COLOR))), @UI:VARIABLES:CURRENT_TIME)"
|
||||
target="@UI:SAVE:COLOR:B" />
|
||||
<!--<link expr="depends(@UI:VARIABLES:CURRENT_TIME)" action="set"
|
||||
params="dblink=UI:SAVE:COLOR:A|value=ilinear(getLightLevel(), @UI:SAVE:DAY_COLOR:A, @UI:SAVE:NIGHT_COLOR:A)" />-->
|
||||
<!-- The User Target Slot and UID -->
|
||||
|
|
Loading…
Reference in a new issue