Example #1
0
 public CreateFunctionDialogEx()
 {
     InitializeComponent();
     FunctionItems = new ObservableCollection <FunctionItem>();
     FunctionStructure.Background  = new SolidColorBrush(EditorColors.Get <FunctionDeclaration>());
     FunctionStructure.ItemsSource = FunctionItems;
     FunctionNameText.Focus();
     FunctionNameText.SelectAll();
 }
Example #2
0
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            if (value == null)
            {
                return(new SolidColorBrush(Colors.Green));
            }
            Type type = value.GetType();

            return(new SolidColorBrush(EditorColors.Get(type)));
        }
Example #3
0
 public CreateFunctionDlg()
 {
     InitializeComponent();
     FunctionItems = new ObservableCollection <FunctionItem>();
     FunctionItems.Add(new TextFunctionItem()
     {
         Value = "text"
     });
     FunctionStructure.Background  = new SolidColorBrush(EditorColors.Get <FunctionDeclaration>());
     FunctionStructure.ItemsSource = FunctionItems;
 }
Example #4
0
 public static Color Get <T>(this GraphicScriptEditor editor)
 {
     return(EditorColors.Get <T>());
 }
Example #5
0
 public static Color Get(this GraphicScriptEditor editor, Type t)
 {
     return(EditorColors.Get(t));
 }