Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MissionPassedScreen"/> class.
 /// </summary>
 /// <param name="title">The title, the big yellow text.</param>
 /// <param name="subtitle">The subtitle, the text below the <see cref="Title"/>.</param>
 /// <param name="completionPercentage">The value that will be displayed as the completion percentage.</param>
 /// <param name="medal">The medal type displayed next to the completion percentage.</param>
 public MissionPassedScreen(string title, string subtitle, int completionPercentage, MedalType medal)
 {
     Title                = title;
     Subtitle             = subtitle;
     CompletionPercentage = completionPercentage;
     Medal                = medal;
     Items                = new MissionPassedScreenItemsCollection();
     InstructionalButtons = new InstructionalButtons();
     continueControlInstructionalButton = new InstructionalButton(ContinueControl, "Continue");
     InstructionalButtons.Buttons.Add(continueControlInstructionalButton);
 }
Esempio n. 2
0
        public void Update()
        {
            Scaleform.CallFunction("CLEAR_ALL");
            Scaleform.CallFunction("TOGGLE_MOUSE_BUTTONS", 0);
            Scaleform.CallFunction("CREATE_CONTAINER");

            int dateSlotIndex = 0;

            for (int i = 0; i < Buttons.Count; i++)
            {
                InstructionalButton b = Buttons[i];
                if (b.CanBeDisplayed == null || b.CanBeDisplayed.Invoke(b))
                {
                    Scaleform.CallFunction("SET_DATA_SLOT", dateSlotIndex++, b.GetButtonId(), b.Text ?? "");
                }
            }
            Scaleform.CallFunction("DRAW_INSTRUCTIONAL_BUTTONS", -1);
        }