Community

SCI Programming => Mega Tokyo SCI Archive => Topic started by: Joe on July 25, 2002, 01:44:11 PM

Title: DCIcon
Post 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.
Title: Re:DCIcon
Post by: Joe on July 25, 2002, 01:45:10 PM
I meant to put 'speed' between 'game' and 'to'.
Title: Re:DCIcon
Post by: Brian Provinciano on July 25, 2002, 06:35:28 PM
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:

Code: [Select]

      (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:

Code: [Select]

      (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)
      )
Title: Re:DCIcon
Post by: Pikachu14 on July 26, 2002, 03:12:06 AM
For short, just add a Wait(1).