public override void gaxb_loadattrs() { base.gaxb_loadattrs(); string attr; attr = raw_contentSize; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr == null) { attr = "0,0"; } if (attr != null) { contentSize = new Vector2().PUParse(attr); } attr = raw_mode; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr == null) { attr = "FitInParent"; } if (attr != null) { mode = (PlanetUnity2.AspectFitMode)Enum.Parse(typeof(PlanetUnity2.AspectFitMode), attr); } }
public override void gaxb_loadattrs() { base.gaxb_loadattrs(); string attr; attr = raw_onTouchUp; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr != null) { onTouchUp = unescape(attr); } attr = raw_pressedColor; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr != null) { pressedColor = new Color().PUParse(attr); } }
public override void gaxb_loadattrs() { base.gaxb_loadattrs(); string attr; attr = raw_key; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr != null) { key = unescape(attr); } attr = raw_value; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr != null) { value = unescape(attr); } }
public override void gaxb_loadattrs() { base.gaxb_loadattrs(); string attr; attr = raw_heuristic; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr == null) { attr = "RectBottomLeftRule"; } if (attr != null) { heuristic = (PlanetUnity2.GridTableHeuristic)Enum.Parse(typeof(PlanetUnity2.GridTableHeuristic), attr); } attr = raw_expandToFill; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr == null) { attr = "true"; } if (attr != null) { expandToFill = bool.Parse(attr); } }
public override void gaxb_load(XmlReader reader, object _parent, Hashtable args) { base.gaxb_load(reader, _parent, args); if (reader == null && _parent == null) { return; } parent = _parent; if (this.GetType() == typeof(PUNotification)) { gaxb_addToParent(); } //xmlns = reader.GetAttribute("xmlns"); string attr; attr = reader.GetAttribute("name"); if (attr != null) { attr = PlanetUnityOverride.processString(_parent, attr); } if (attr != null) { name = unescape(attr); } }
public override void gaxb_loadattrs() { base.gaxb_loadattrs(); string attr; attr = raw__class; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr != null) { _class = unescape(attr); } attr = raw_singleton; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr == null) { attr = "false"; } if (attr != null) { singleton = bool.Parse(attr); } }
public override void gaxb_load(TBXMLElement element, object _parent, Hashtable args) { base.gaxb_load(element, _parent, args); if (element == null && _parent == null) { return; } parent = _parent; if (this.GetType() == typeof(PUSwitcher)) { gaxb_addToParent(); } //xmlns = element.GetAttribute("xmlns"); string attr; attr = element.GetAttribute("currentIndex"); if (attr != null) { attr = PlanetUnityOverride.processString(_parent, attr); } if (attr == null) { attr = "0"; } if (attr != null) { currentIndex = (int)float.Parse(attr); } }
public override void gaxb_load(XmlReader reader, object _parent, Hashtable args) { base.gaxb_load(reader, _parent, args); if (reader == null && _parent == null) { return; } parent = _parent; if (this.GetType() == typeof(PUColor)) { gaxb_addToParent(); } //xmlns = reader.GetAttribute("xmlns"); string attr; attr = reader.GetAttribute("color"); if (attr != null) { attr = PlanetUnityOverride.processString(_parent, attr); } if (attr != null) { color = new Color().PUParse(attr); } }
public override void gaxb_final(TB.TBXMLElement element, object _parent, Hashtable args) { base.gaxb_final(element, _parent, args); if (element != null) { style = element.GetAttribute("style"); string s = element.GetAttribute("value"); if (s != null) { value = PlanetUnityStyle.ReplaceStyleTags(PlanetUnityOverride.processString(this, s)); } s = element.GetAttribute("autoreload"); if (s != null) { autoreload = bool.Parse(s); } } if (style != null) { string classString = "MarkdownStyle" + style; Type entityClass = Type.GetType(classString, true); mdStyle = (Activator.CreateInstance(entityClass)) as MarkdownStyle; } else { mdStyle = new MarkdownStyleGeneric(); } mdStyle.markdownEntity = this; }
public override void gaxb_load(TBXMLElement element, object _parent, Hashtable args) { base.gaxb_load(element, _parent, args); if (element == null && _parent == null) { return; } parent = _parent; if (this.GetType() == typeof(PUPrefab)) { gaxb_addToParent(); } //xmlns = element.GetAttribute("xmlns"); string attr; attr = element.GetAttribute("name"); if (attr != null) { attr = PlanetUnityOverride.processString(_parent, attr); } if (attr != null) { name = unescape(attr); } }
public override void gaxb_load(TBXMLElement element, object _parent, Hashtable args) { base.gaxb_load(element, _parent, args); if (element == null && _parent == null) { return; } parent = _parent; if (this.GetType() == typeof(PUVerticalLayoutGroup)) { gaxb_addToParent(); } //xmlns = element.GetAttribute("xmlns"); string attr; attr = element.GetAttribute("spacing"); if (attr != null) { attr = PlanetUnityOverride.processString(_parent, attr); } if (attr == null) { attr = "0"; } if (attr != null) { spacing = float.Parse(attr); } attr = element.GetAttribute("padding"); if (attr != null) { attr = PlanetUnityOverride.processString(_parent, attr); } if (attr == null) { attr = "0,0,0,0"; } if (attr != null) { padding = new Vector4().PUParse(attr); } attr = element.GetAttribute("childAlignment"); if (attr != null) { attr = PlanetUnityOverride.processString(_parent, attr); } if (attr != null) { childAlignment = (PlanetUnity2.GridLayoutChildAlignment)Enum.Parse(typeof(PlanetUnity2.GridLayoutChildAlignment), attr); } }
public override void gaxb_load(XmlReader reader, object _parent, Hashtable args) { base.gaxb_load(reader, _parent, args); if (reader == null && _parent == null) { return; } parent = _parent; if (this.GetType() == typeof(PUSimpleTable)) { gaxb_addToParent(); } //xmlns = reader.GetAttribute("xmlns"); string attr; attr = reader.GetAttribute("cellSize"); if (attr != null) { attr = PlanetUnityOverride.processString(_parent, attr); } if (attr != null) { cellSize = new Vector2().PUParse(attr); } attr = reader.GetAttribute("headerSize"); if (attr != null) { attr = PlanetUnityOverride.processString(_parent, attr); } if (attr == null) { attr = "0,0"; } if (attr != null) { headerSize = new Vector2().PUParse(attr); } attr = reader.GetAttribute("asynchronous"); if (attr != null) { attr = PlanetUnityOverride.processString(_parent, attr); } if (attr == null) { attr = "true"; } if (attr != null) { asynchronous = bool.Parse(attr); } }
public override void gaxb_loadattrs() { base.gaxb_loadattrs(); string attr; attr = raw_cellSize; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr != null) { cellSize = new Vector2().PUParse(attr); } attr = raw_headerSize; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr == null) { attr = "0,0"; } if (attr != null) { headerSize = new Vector2().PUParse(attr); } attr = raw_asynchronous; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr == null) { attr = "true"; } if (attr != null) { asynchronous = bool.Parse(attr); } attr = raw_expandCellWidth; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr == null) { attr = "true"; } if (attr != null) { expandCellWidth = bool.Parse(attr); } }
public override void gaxb_loadattrs() { base.gaxb_loadattrs(); string attr; attr = raw_pressedResourcePath; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr != null) { pressedResourcePath = unescape(attr); } attr = raw_highlightedResourcePath; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr != null) { highlightedResourcePath = unescape(attr); } attr = raw_disabledResourcePath; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr != null) { disabledResourcePath = unescape(attr); } attr = raw_onTouchUp; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr != null) { onTouchUp = unescape(attr); } attr = raw_onTouchDown; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr != null) { onTouchDown = unescape(attr); } }
public override void gaxb_load(TBXMLElement element, object _parent, Hashtable args) { base.gaxb_load(element, _parent, args); if (element == null && _parent == null) { return; } parent = _parent; if (this.GetType() == typeof(PURawImage)) { gaxb_addToParent(); } //xmlns = element.GetAttribute("xmlns"); string attr; attr = element.GetAttribute("resourcePath"); if (attr != null) { attr = PlanetUnityOverride.processString(_parent, attr); } if (attr != null) { resourcePath = unescape(attr); } attr = element.GetAttribute("color"); if (attr != null) { attr = PlanetUnityOverride.processString(_parent, attr); } if (attr != null) { color = new Color().PUParse(attr); } attr = element.GetAttribute("uvRect"); if (attr != null) { attr = PlanetUnityOverride.processString(_parent, attr); } if (attr != null) { uvRect = new Vector4().PUParse(attr); } }
public override void gaxb_load(XmlReader reader, object _parent, Hashtable args) { base.gaxb_load(reader, _parent, args); if(reader == null && _parent == null) return; parent = _parent; if(this.GetType() == typeof( PUGridLayoutGroup )) { gaxb_addToParent(); } //xmlns = reader.GetAttribute("xmlns"); string attr; attr = reader.GetAttribute("cellSize"); if(attr != null) { attr = PlanetUnityOverride.processString(_parent, attr); } if(attr == null) { attr = "100,100"; } if(attr != null) { cellSize = new Vector2().PUParse(attr); } attr = reader.GetAttribute("spacing"); if(attr != null) { attr = PlanetUnityOverride.processString(_parent, attr); } if(attr == null) { attr = "0,0"; } if(attr != null) { spacing = new Vector2().PUParse(attr); } attr = reader.GetAttribute("startCorner"); if(attr != null) { attr = PlanetUnityOverride.processString(_parent, attr); } if(attr != null) { startCorner = (PlanetUnity2.GridLayoutStartCorner)Enum.Parse(typeof(PlanetUnity2.GridLayoutStartCorner), attr); } attr = reader.GetAttribute("startAxis"); if(attr != null) { attr = PlanetUnityOverride.processString(_parent, attr); } if(attr != null) { startAxis = (PlanetUnity2.GridLayoutStartAxis)Enum.Parse(typeof(PlanetUnity2.GridLayoutStartAxis), attr); } attr = reader.GetAttribute("childAlignment"); if(attr != null) { attr = PlanetUnityOverride.processString(_parent, attr); } if(attr != null) { childAlignment = (PlanetUnity2.GridLayoutChildAlignment)Enum.Parse(typeof(PlanetUnity2.GridLayoutChildAlignment), attr); } attr = reader.GetAttribute("fixedRows"); if(attr != null) { attr = PlanetUnityOverride.processString(_parent, attr); } if(attr != null) { fixedRows = (int)float.Parse(attr); } attr = reader.GetAttribute("fixedColumns"); if(attr != null) { attr = PlanetUnityOverride.processString(_parent, attr); } if(attr != null) { fixedColumns = (int)float.Parse(attr); } }
public override void gaxb_load(TBXMLElement element, object _parent, Hashtable args) { base.gaxb_load(element, _parent, args); if (element == null && _parent == null) { return; } parent = _parent; if (this.GetType() == typeof(PUAspectFit)) { gaxb_addToParent(); } //xmlns = element.GetAttribute("xmlns"); string attr; attr = element.GetAttribute("contentSize"); if (attr != null) { attr = PlanetUnityOverride.processString(_parent, attr); } if (attr == null) { attr = "0,0"; } if (attr != null) { contentSize = new Vector2().PUParse(attr); } attr = element.GetAttribute("mode"); if (attr != null) { attr = PlanetUnityOverride.processString(_parent, attr); } if (attr == null) { attr = "FitInParent"; } if (attr != null) { mode = (PlanetUnity2.AspectFitMode)Enum.Parse(typeof(PlanetUnity2.AspectFitMode), attr); } }
public override void gaxb_load(TBXMLElement element, object _parent, Hashtable args) { base.gaxb_load(element, _parent, args); if (element == null && _parent == null) { return; } parent = _parent; if (this.GetType() == typeof(PUGridTable)) { gaxb_addToParent(); } //xmlns = element.GetAttribute("xmlns"); string attr; attr = element.GetAttribute("heuristic"); if (attr != null) { attr = PlanetUnityOverride.processString(_parent, attr); } if (attr == null) { attr = "RectBottomLeftRule"; } if (attr != null) { heuristic = (PlanetUnity2.GridTableHeuristic)Enum.Parse(typeof(PlanetUnity2.GridTableHeuristic), attr); } attr = element.GetAttribute("expandToFill"); if (attr != null) { attr = PlanetUnityOverride.processString(_parent, attr); } if (attr == null) { attr = "true"; } if (attr != null) { expandToFill = bool.Parse(attr); } }
public override void gaxb_loadattrs() { base.gaxb_loadattrs(); string attr; attr = raw_renderMode; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr == null) { attr = "ScreenSpaceOverlay"; } if (attr != null) { renderMode = (PlanetUnity2.CanvasRenderMode)Enum.Parse(typeof(PlanetUnity2.CanvasRenderMode), attr); } attr = raw_pixelPerfect; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr == null) { attr = "false"; } if (attr != null) { pixelPerfect = bool.Parse(attr); } attr = raw_planeDistance; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr == null) { attr = "100"; } if (attr != null) { planeDistance = float.Parse(attr); } }
public override void gaxb_loadattrs() { base.gaxb_loadattrs(); string attr; attr = raw_hasAlpha; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr != null) { hasAlpha = bool.Parse(attr); } attr = raw_looping; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr != null) { looping = bool.Parse(attr); } attr = raw_resourcePath; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr != null) { resourcePath = unescape(attr); } attr = raw_color; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr != null) { color = new Color().PUParse(attr); } }
public override void gaxb_loadattrs() { base.gaxb_loadattrs(); string attr; attr = raw_color; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr != null) { color = new Color().PUParse(attr); } }
public override void gaxb_load(TBXMLElement element, object _parent, Hashtable args) { base.gaxb_load(element, _parent, args); if (element == null && _parent == null) { return; } parent = _parent; if (this.GetType() == typeof(PUCode)) { gaxb_addToParent(); } //xmlns = element.GetAttribute("xmlns"); string attr; attr = element.GetAttribute("class"); if (attr != null) { attr = PlanetUnityOverride.processString(_parent, attr); } if (attr != null) { _class = unescape(attr); } attr = element.GetAttribute("singleton"); if (attr != null) { attr = PlanetUnityOverride.processString(_parent, attr); } if (attr == null) { attr = "false"; } if (attr != null) { singleton = bool.Parse(attr); } }
public override void gaxb_loadattrs() { base.gaxb_loadattrs(); string attr; attr = raw_spacing; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr == null) { attr = "0"; } if (attr != null) { spacing = float.Parse(attr); } attr = raw_padding; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr == null) { attr = "0,0,0,0"; } if (attr != null) { padding = new Vector4().PUParse(attr); } attr = raw_childAlignment; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr != null) { childAlignment = (PlanetUnity2.GridLayoutChildAlignment)Enum.Parse(typeof(PlanetUnity2.GridLayoutChildAlignment), attr); } }
public override void gaxb_load(TBXMLElement element, object _parent, Hashtable args) { base.gaxb_load(element, _parent, args); if (element == null && _parent == null) { return; } parent = _parent; if (this.GetType() == typeof(PUColorButton)) { gaxb_addToParent(); } //xmlns = element.GetAttribute("xmlns"); string attr; attr = element.GetAttribute("onTouchUp"); if (attr != null) { attr = PlanetUnityOverride.processString(_parent, attr); } if (attr != null) { onTouchUp = unescape(attr); } attr = element.GetAttribute("pressedColor"); if (attr != null) { attr = PlanetUnityOverride.processString(_parent, attr); } if (attr != null) { pressedColor = new Color().PUParse(attr); } }
public override void gaxb_loadattrs() { base.gaxb_loadattrs(); string attr; attr = raw_currentIndex; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr == null) { attr = "0"; } if (attr != null) { currentIndex = (int)float.Parse(attr); } }
public override void gaxb_loadattrs() { base.gaxb_loadattrs(); string attr; attr = raw_resourcePath; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr != null) { resourcePath = unescape(attr); } attr = raw_color; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr != null) { color = new Color().PUParse(attr); } attr = raw_uvRect; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr != null) { uvRect = new Vector4().PUParse(attr); } }
public override void gaxb_loadattrs() { base.gaxb_loadattrs(); string attr; attr = raw_resourcePath; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr != null) { resourcePath = unescape(attr); } attr = raw_color; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr != null) { color = new Color().PUParse(attr); } attr = raw_type; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr != null) { type = (PlanetUnity2.ImageType)Enum.Parse(typeof(PlanetUnity2.ImageType), attr); } }
public override void gaxb_loadattrs() { base.gaxb_loadattrs(); string attr; attr = raw_onValueChanged; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr != null) { onValueChanged = unescape(attr); } attr = raw_placeholder; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr != null) { placeholder = unescape(attr); } attr = raw_limit; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr != null) { limit = (int)float.Parse(attr); } attr = raw_contentType; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr != null) { contentType = (PlanetUnity2.InputFieldContentType)Enum.Parse(typeof(PlanetUnity2.InputFieldContentType), attr); } attr = raw_lineType; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr != null) { lineType = (PlanetUnity2.InputFieldLineType)Enum.Parse(typeof(PlanetUnity2.InputFieldLineType), attr); } attr = raw_selectionColor; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr != null) { selectionColor = new Color().PUParse(attr); } }
public override void gaxb_load(TBXMLElement element, object _parent, Hashtable args) { base.gaxb_load(element, _parent, args); if (element == null && _parent == null) { return; } parent = _parent; if (this.GetType() == typeof(PUInputField)) { gaxb_addToParent(); } //xmlns = element.GetAttribute("xmlns"); string attr; attr = element.GetAttribute("onValueChanged"); if (attr != null) { attr = PlanetUnityOverride.processString(_parent, attr); } if (attr != null) { onValueChanged = unescape(attr); } attr = element.GetAttribute("placeholder"); if (attr != null) { attr = PlanetUnityOverride.processString(_parent, attr); } if (attr != null) { placeholder = unescape(attr); } attr = element.GetAttribute("limit"); if (attr != null) { attr = PlanetUnityOverride.processString(_parent, attr); } if (attr != null) { limit = (int)float.Parse(attr); } attr = element.GetAttribute("contentType"); if (attr != null) { attr = PlanetUnityOverride.processString(_parent, attr); } if (attr != null) { contentType = (PlanetUnity2.InputFieldContentType)Enum.Parse(typeof(PlanetUnity2.InputFieldContentType), attr); } attr = element.GetAttribute("lineType"); if (attr != null) { attr = PlanetUnityOverride.processString(_parent, attr); } if (attr != null) { lineType = (PlanetUnity2.InputFieldLineType)Enum.Parse(typeof(PlanetUnity2.InputFieldLineType), attr); } attr = element.GetAttribute("selectionColor"); if (attr != null) { attr = PlanetUnityOverride.processString(_parent, attr); } if (attr != null) { selectionColor = new Color().PUParse(attr); } }
public override void gaxb_loadattrs() { base.gaxb_loadattrs(); string attr; attr = raw_cellSize; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr == null) { attr = "100,100"; } if (attr != null) { cellSize = new Vector2().PUParse(attr); } attr = raw_spacing; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr == null) { attr = "0,0"; } if (attr != null) { spacing = new Vector2().PUParse(attr); } attr = raw_startCorner; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr != null) { startCorner = (PlanetUnity2.GridLayoutStartCorner)Enum.Parse(typeof(PlanetUnity2.GridLayoutStartCorner), attr); } attr = raw_startAxis; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr != null) { startAxis = (PlanetUnity2.GridLayoutStartAxis)Enum.Parse(typeof(PlanetUnity2.GridLayoutStartAxis), attr); } attr = raw_childAlignment; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr != null) { childAlignment = (PlanetUnity2.GridLayoutChildAlignment)Enum.Parse(typeof(PlanetUnity2.GridLayoutChildAlignment), attr); } attr = raw_fixedRows; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr != null) { fixedRows = (int)float.Parse(attr); } attr = raw_fixedColumns; if (attr != null) { attr = PlanetUnityOverride.processString(this, parent, attr); } if (attr != null) { fixedColumns = (int)float.Parse(attr); } }