Пример #1
0
 public static void ShowTextInput(this Popups popups, IOkStringCancelCallback callback, string loadedDeckName, string problems, string popupType, string header, string description, string okText)
 {
     popups.ShowSaveDeck(callback, loadedDeckName, problems);
     typeof(Popups).GetField("popupType", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(popups, popupType);
     typeof(Popups).GetField("header", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(popups, header);
     typeof(Popups).GetField("description", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(popups, description);
     typeof(Popups).GetField("okText", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(popups, okText);
 }
 public static void ShowTextInput(this Popups popups, IOkStringCancelCallback callback, string loadedDeckName, string problems, string popupType, string header, string description, string okText)
 {
     popups.ShowSaveDeck (callback, loadedDeckName, problems);
     typeof(Popups).GetField ("popupType", BindingFlags.Instance | BindingFlags.NonPublic).SetValue (popups, popupType);
     typeof(Popups).GetField ("header", BindingFlags.Instance | BindingFlags.NonPublic).SetValue (popups, header);
     typeof(Popups).GetField ("description", BindingFlags.Instance | BindingFlags.NonPublic).SetValue (popups, description);
     typeof(Popups).GetField ("okText", BindingFlags.Instance | BindingFlags.NonPublic).SetValue (popups, okText);
 }
Пример #3
0
        public void ShowReplayScrollPopup(IOkStringCancelCallback callback, String popupType, String header, String description, List<ConfigOption> configOptions)
        {
            this.ShowPopup(PopupType.REPLAY_SCROLL);

            this.popupType = popupType;
            this.optionScroll = Vector2.zero;

            this.okStringCallback = callback;
            this.cancelCallback = callback;

            this.configOptions = configOptions;

            this.header = header;
            this.description = description;
            this.cancelText = "Done";
            this.okText = "Play";
        }
Пример #4
0
        public void ShowMultiScrollPopup(IOkStringCancelCallback callback, String popupType, String header, String description, List<ConfigOption> configOptions)
        {
            this.ShowPopup(PopupType.MULTI_SCROLL);

            this.popupType = popupType;
            this.optionScroll = Vector2.zero;

            this.okStringCallback = callback;
            this.cancelCallback = callback;

            this.configOptions = configOptions;

            this.header = header;
            this.description = description;
            this.cancelText = "Done";
            this.okText = popupType.Equals("main") ? null : "Back";
        }