public void OnSelecType(string typeName) { config.selectedType = typeName; selectedType = ReflectUtils.GetTypeByName(typeName); selectedProperties = selectedType.GetUIManProperties(); baseTypePopup = new EditablePopup(arrSupportType, selectedType.BaseType.Name, OnChangeBaseType); currentScriptPath = CodeGenerationHelper.GetScriptPathByType(selectedType); handlerScriptPath = CodeGenerationHelper.GeneratPathWithSubfix(currentScriptPath, ".Handler.cs"); CachePropertiesDrawer(); }
public void OnSelecType(string typeName) { _config.selectedType = typeName; _selectedType = UIManEditorReflection.GetTypeByName(typeName); _selectedTypeIsSealed = _selectedType.IsSealed; _selectedProperties = _selectedType.GetUIManProperties(true); this.namespaceField = new TextFieldHelper(_selectedType.Namespace); this.baseTypePopup = new EditablePopup(_arrSupportType, _selectedType.BaseType.Name, OnChangeBaseType); _currentScriptPath = UIManCodeGenerator.GetScriptPathByType(_selectedType); _handlerScriptPath = UIManCodeGenerator.GeneratPathWithSubfix(_currentScriptPath, ".Handler.cs"); CachePropertiesDrawer(); }
void Init() { if (!inited) { if (baseTypePopup == null) { baseTypePopup = new EditablePopup(arrSupportType, "UIManDialog", null); } minSize = new Vector2(300, 80); maxSize = minSize; inited = true; } }
private void Initialize() { if (!this.inited) { if (this.baseTypePopup == null) { var config = EditorHelper.GetOrCreateScriptableObject <UIManConfig>(); this.namespaceField = new TextFieldHelper(config.classNamespace); this.baseTypePopup = new EditablePopup(this.arrSupportType, config.name, null); } this.minSize = new Vector2(300, 160); this.maxSize = this.minSize; this.inited = true; } }