Public classes


Scripts/

   SDController
   SegmentDisplay
   SegmentDisplayImage
   SegmentDisplaySprite
   SingleDigit
   SingleSegment

Scripts/Commands/

      AddTextCommand
      CallbackCommand
      ClearCommand
      FillCommand
      PauseCommand
      ScrollTextCommand
      SetTextCommand


Introduction page

SDController


Class that runs given commands which then change content on the segment display. Commands added to controller are executed one by one in queue.

This class doesn't have public constructor. You can get the instance of this class from SegmentDisplay, using GetSDController() method.

Note that you do not necessarily need this controller. If you just want to set text on display, you can use SetText() methods in SegmentDisplay. This controller is useful if you want to do something that requires changes to display over longer period of time.


Methods

public void AddCommand (AbsSDCommand command)Add new command to this controller queue.
public void AddRepeatingCommand (AbsSDCommand command)Add new command to this controller queue.
public void ClearCommands ()Clear the controller commmand queue.
public void ClearCommandsAndStop ()Clear the controller commmand queue and stop any possible currently executing command.
public bool IsIdle ()Check whatever controller is idle.

Methods

public void AddCommand (AbsSDCommand command)

Add new command to this controller queue. If queue is empty, execution of this command will start instantly on this or next Update loop. Controller will run this command just once and then moving to next command in queue if any.

ParameterscommandCommand to add to queue.


public void AddRepeatingCommand (AbsSDCommand command)

Add new command to this controller queue. If queue is empty, execution of this command will start instantly on this or next update loop. Controller will repeat this command forever. If there are multiple repeating commands, they are all looping in order they were added.

ParameterscommandCommand to add to queue and repeat.


public void ClearCommands ()

Clear the controller commmand queue. Command that is currently being executed, if any, will finish normally. After finishing current command, controller will be idle unless new commands are added.


public void ClearCommandsAndStop ()

Clear the controller commmand queue and stop any possible currently executing command. Controller will be idle immediately after this. Display is not cleared so whatever is on display when calling this will remain there.


public bool IsIdle ()

Check whatever controller is idle.

ReturnsTrue if controller isn't currently executing any command and there is nothing in queue. False otherwise.