Exemplo n.º 1
0
 protected virtual void OnTweak()
 {
     InputPromptPanel.Create(
         new InputPromptPanel.OnSubmit(OnSubmit),
         new InputPromptPanel.OnPop(OnCancel),
         Title,
         DefaultValue()
         );
 }
        public void EditHexClick()
        {
            IsEditing = true;

            EnableMenu(false);

            Color color = Menu.colorPicker_.Color_;

            InputPromptPanel.Create(OnSubmit, () => Mod.Instance.StartCoroutine(CloseInput()), "HEX COLOR", $"#{ColorEx.ColorToHexUnity(color).ToUpper()}");
        }