/// <summary> /// Shows a text box and pauses the world. /// </summary> /// <param name="world">The world to pause and show the text box in.</param> /// <param name="textBoxContent">Content of the text box.</param> public static IEnumerator <ICoroutineOperation> Show(WorldState world, TextBoxContent textBoxContent, OnTextBoxCompleted completeEvent = null) { TextBox box = new TextBox(world, textBoxContent); box._completedEvent = completeEvent; return(world.Coroutine.Start(box.ShowCoroutine)); }
private TextBox(WorldState world, TextBoxContent content) { _world = world; _content = content; _offsetY = new TweenedDouble(world.Game, 1.0); }