sonata31
November 16th, 2007, 06:08 AM
In my lua file I have the code :
function AnimeWaitProgressBar (waitTimer)
local waitProgress = NetRemote.GetVariable('NR.waitProgressBar');
if (waitProgress == "10") then
NetRemote.SetVariable('NR.waitProgressBar', 0);
waitTimer:KillTimer();
else
NetRemote.SetVariable('NR.waitProgressBar', waitProgress + 1);
end;
end;
I have a button Component
NRBasic:Image Progress Bar Compnent
- DIRECTION : Right
- VAR : NR.waitProgressBar
- MIN : 0
- MAX : 10
I have a button 'wait' with action :
NRBasic:Set variable to value (NR.waitProgressBar, 0)
NRBasic:Execute lua code (OnRelease) (waitTimer = NetRemote.SetTimer(500, AnimeWaitProgressBar);
I have a frame with {NR.waitProgressBar} in Element Name
When I clic on button 'wait' in the frame 0,1,2, ..., 10 is displayed, but the progress bar no
Help
function AnimeWaitProgressBar (waitTimer)
local waitProgress = NetRemote.GetVariable('NR.waitProgressBar');
if (waitProgress == "10") then
NetRemote.SetVariable('NR.waitProgressBar', 0);
waitTimer:KillTimer();
else
NetRemote.SetVariable('NR.waitProgressBar', waitProgress + 1);
end;
end;
I have a button Component
NRBasic:Image Progress Bar Compnent
- DIRECTION : Right
- VAR : NR.waitProgressBar
- MIN : 0
- MAX : 10
I have a button 'wait' with action :
NRBasic:Set variable to value (NR.waitProgressBar, 0)
NRBasic:Execute lua code (OnRelease) (waitTimer = NetRemote.SetTimer(500, AnimeWaitProgressBar);
I have a frame with {NR.waitProgressBar} in Element Name
When I clic on button 'wait' in the frame 0,1,2, ..., 10 is displayed, but the progress bar no
Help