1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 |
--Particle
return obj
end
self . parameters = { }
end
return self . key
end
self . key = key
end
end
local parameters = self . parameters
local durationS = parameters [ "DurationS" ]
if durationS then
self . endTimeS = self . startTimeS + durationS
end
local blendMode = parameters [ "BlendMode" ]
local size = parameters [ "Size" ]
self . hasScaleInterpolation , self . scale = self : InitializeEasedLerpParameter ( "StartScale" , "EndScale" , 1 )
self . hasOffsetXInterpolation , self . offsetX = self : InitializeEasedLerpParameter ( "StartOffsetX" , "EndOffsetX" , 0 )
self . hasOffsetYInterpolation , self . offsetY = self : InitializeEasedLerpParameter ( "StartOffsetY" , "EndOffsetY" , 0 )
self . hasOffsetZInterpolation , self . offsetZ = self : InitializeEasedLerpParameter ( "StartOffsetZ" , "EndOffsetZ" , 0 )
local alpha
self . hasColorRInterpolation , self . colorR = self : InitializeEasedLerpParameter ( "StartColorR" , "EndColorR" , 1 )
self . hasColorGInterpolation , self . colorG = self : InitializeEasedLerpParameter ( "StartColorG" , "EndColorG" , 1 )
self . hasColorBInterpolation , self . colorB = self : InitializeEasedLerpParameter ( "StartColorB" , "EndColorB" , 1 )
end
self . textureControl = nil
end
end
end
return timeS > self . endTimeS
end
local parameters = self . parameters
local hasInterpolation = false
local initialValue = defaultValue
if parameters [ startName ] ~= nil then
initialValue = parameters [ startName ]
if parameters [ endName ] ~= nil then
hasInterpolation = true
end
end
return hasInterpolation , initialValue
end
function ZO_Particle : ComputedEasedLerpParameter ( startName , endName , easingName , defaultValue , progress )
local parameters = self . parameters
local startValue = parameters [ startName ]
local endValue = parameters [ endName ]
if startValue and endValue then
end
end
end
if self . hasScaleInterpolation then
local parameters = self . parameters
local size = parameters [ "Size" ]
end
if self . hasOffsetXInterpolation then
self . offsetX = self : ComputedEasedLerpParameter ( "StartOffsetX" , "EndOffsetX" , "OffsetXEasing" , 0 , progress )
end
if self . hasOffsetYInterpolation then
self . offsetY = self : ComputedEasedLerpParameter ( "StartOffsetY" , "EndOffsetY" , "OffsetYEasing" , 0 , progress )
end
if self . hasOffsetZInterpolation then
self . offsetZ = self : ComputedEasedLerpParameter ( "StartOffsetZ" , "EndOffsetZ" , "OffsetZEasing" , 0 , progress )
end
if self . hasColorRInterpolation then
end
if self . hasColorGInterpolation then
end
if self . hasColorBInterpolation then
end
if self . hasAlphaInterpolation then
end
end
--Scene Graph Particle
end
end
self . parentNode = parentNode
end
end
end
if z == nil then
z = 0
end
self . parentNode : SetControlPosition ( self . textureControl , x + self . offsetX , - ( y + self . offsetY ) , z + self . offsetZ )
end |