Esempio n. 1
0
        public void transparentCheck(GuiControl ctrl, string colorName)
        {
            bool transparent = ctrl.transparentControlCheck();

            if (transparent)
            {
                return;
            }

            if (colorName == "fillColor")
            {
                ColorPickerDlg.GetColorI(ctrl.controlFillColor.AsString(), ctrl + ".setControlFillColor", ctrl.getRoot(), ctrl + ".setControlFillColor", ctrl + ".setControlFillColor");
            }
            else if (colorName == "backColor")
            {
                ColorPickerDlg.GetColorI(ctrl.backgroundColor.AsString(), ctrl + ".setControlBackgroundColor", ctrl.getRoot(), ctrl + ".setControlBackgroundColor", ctrl + ".setControlBackgroundColor");
            }
        }
Esempio n. 2
0
            public override void onClick(string SelectedidString)
            {
                string colorfloattoint = ColorPickerDlg.ColorFloatToInt(this["color"]);

                ColorPickerDlg.GetColorI(colorfloattoint, getId() + ".apply", getRoot(), "", "");
            }