Its a fairly simple function. Anyways, everything above the loop seems to work, and anything below it does not.
Here the destroy part works( i dont even want to destroy, but it was the easiest way to make sure everything was working).
and here the destroy and color red do not work.
Anyone know why?
Here the destroy part works( i dont even want to destroy, but it was the easiest way to make sure everything was working).
JASS:
function UpdateSelector takes nothing returns nothing
local integer i =0
local integer imax=g_ftext_num
local location point = GetRectCenter(gg_rct_Setting_Spawn)
local location point2 = OffsetLocation(point, 200, 0)
call SetUnitY(g_selector,GetLocationY(point2)+(-200*g_setting))
call DestroyTextTag(g_ftext[g_setting])
loop
exitwhen i>imax
call SetTextTagColorBJ(g_ftext<i>,100,100,100,1)
endloop
call SetTextTagColorBJ(g_ftext[g_setting],100,0,0,1)
endfunction</i>
and here the destroy and color red do not work.
JASS:
function UpdateSelector takes nothing returns nothing
local integer i =0
local integer imax=g_ftext_num
local location point = GetRectCenter(gg_rct_Setting_Spawn)
local location point2 = OffsetLocation(point, 200, 0)
call SetUnitY(g_selector,GetLocationY(point2)+(-200*g_setting))
loop
exitwhen i>imax
call SetTextTagColorBJ(g_ftext<i>,100,100,100,1)
endloop
call DestroyTextTag(g_ftext[g_setting])
call SetTextTagColorBJ(g_ftext[g_setting],100,0,0,1)
endfunction</i>
Anyone know why?