Пример #1
0
 public FlashingTextCommand(string text, Vector2 localPosition, Color labelColour, bool shouldPauseGame = false, float lifeTime = float.MaxValue) :
     base(shouldPauseGame, lifeTime)
 {
     // Create and add to our parent screen here
     Label        = ParentScreen.AddScreenUIObject(new FlashingLabel(text, localPosition), true, true);
     Label.Colour = labelColour;
 }
        public TextDialogBoxCommand(string[] strings, bool shouldPauseGame = true, float lifeTime = float.MaxValue) :
            base(shouldPauseGame, lifeTime)
        {
            Debug.Assert(strings.Length > 0);

            TextBox = ParentScreen.AddScreenUIObject(new TextDialogBox(strings, "", ScreenManager.Instance.ScreenCentre), true, true);
            TextBox.Hide();
        }
Пример #3
0
        public CharacterDialogBoxCommand(string characterPortraitTextureAsset, string[] strings, bool shouldPauseGame = true, float lifeTime = float.MaxValue) :
            base(shouldPauseGame, lifeTime)
        {
            Debug.Assert(strings.Length > 0);

            DialogBox = ParentScreen.AddScreenUIObject(new CharacterDialogBox(characterPortraitTextureAsset, strings, "", ScreenManager.Instance.ScreenCentre), true, true);
            DialogBox.Hide();
        }