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