Community
SCI Programming => Mega Tokyo SCI Archive => Topic started by: Joe on July 25, 2002, 01:44:11 PM
-
Pardon all my questions, but:
Is there a way to slow down the animation of a DCIcon? They seem to set the games to the highest and then animate. The cycleSpeed property doesn't seem to do much.
-
I meant to put 'speed' between 'game' and 'to'.
-
Good question. To give a smoother interface, I removed the delay in the dialogs. Simply open up controls.sc, scroll down to the class Dialog of List, then go to the doit method. Replace the code from:
(while(not isClaimed)
(self:eachElementDo(#cycle))
= hEvent (Event:new())
(send hEvent:localize())
= isClaimed (self:handleEvent(hEvent))
(send hEvent:dispose())
(self:check)
(if( (== isClaimed -1) or (not busy) )
= isClaimed FALSE
EditControl(theItem 0)
break
)
)
to this:
(while(not isClaimed)
(self:eachElementDo(#cycle))
= hEvent (Event:new())
(send hEvent:localize())
= isClaimed (self:handleEvent(hEvent))
(send hEvent:dispose())
(self:check)
(if( (== isClaimed -1) or (not busy) )
= isClaimed FALSE
EditControl(theItem 0)
break
)
Wait(1)
)
-
For short, just add a Wait(1).