void Generate(string currentText, int caretIndex) { var result = CommandGenerator.GenerateCommands(currentText, caretIndex); var commands = CommandPredictor.ReorderCommands(result.Commands).ToList(); var coll = new ReadOnlyCollection <CommandExecutor>(commands); _dispatcher.BeginInvoke(() => SetCommands(currentText, coll)); }
public override void GenerateCommands(Action <Action, OsbSprite> action, double?startTime, double?endTime, double timeOffset, bool loopable) { GeneratorBody.GenerateCommands(spriteBody, action, startTime, endTime, timeOffset, loopable); if (SpritePathEdge != null) { GeneratorTopEdge.GenerateCommands(spriteTopEdge, action, startTime, endTime, timeOffset, loopable); GeneratorBottomEdge.GenerateCommands(spriteBottomEdge, action, startTime, endTime, timeOffset, loopable); } if (SpritePathCap != null) { if (EnableStartCap) { GeneratorStartCap.GenerateCommands(spriteStartCap, action, startTime, endTime, timeOffset, loopable); } if (EnableEndCap) { GeneratorEndCap.GenerateCommands(spriteEndCapEnd, action, startTime, endTime, timeOffset, loopable); } } }
public override void GenerateCommands(Action <Action, OsbSprite> action, double?startTime, double?endTime, double timeOffset, bool loopable) { Generator.GenerateCommands(sprite, action, startTime, endTime, timeOffset, loopable); }