Beispiel #1
0
        public void ApplyConfig(DatePicker_Button button)
        {
            if (!OverrideTemplate)
            {
                return;
            }

            button.Text.color          = TextColor;
            button.Button.colors       = BackgroundColors;
            button.Button.image.sprite = BackgroundImage;
        }
Beispiel #2
0
        void SetupHoldButtons()
        {
            if (!Application.isPlaying)
            {
                return;
            }

            var buttons = new DatePicker_Button[] { Ref_Header.NextMonthButton, Ref_Header.PreviousMonthButton, Ref_Header.NextYearButton, Ref_Header.PreviousYearButton };

            foreach (var button in buttons)
            {
                button.gameObject.AddComponent <DatePicker_HoldButton>();
            }
        }
Beispiel #3
0
 public void ApplyConfig(DatePicker_Button button)
 {
     button.Button.colors       = Colors;
     button.Button.image.sprite = Image;
 }