public override void Load(jGuiStage stage, jGuiWindow win, jGuiControl parent, jxE g, jxE overrideAttribute) { ///Debug.Log("load : jGuiScrollView : " + g.GetTagName()); base.Load(stage, win, parent, g, overrideAttribute); jxA a; if (!m_isLayouted) { a = g.AttrVar("ViewRect"); if (a == null) { throw new System.Exception(this.ToString() + " must has ViewRect attribute"); } if (a.IsEType(nXML.EDataType.e_Rect) == false) { throw new System.Exception(this.ToString() + " is not e_Rect type"); } m_ViewRect = a.GetRect(); } a = g.AttrVar("AutoScroll"); if (a != null) { m_isAutoScroll = a.Get_bool(); } }
public override void Load(jGuiStage stage, jGuiWindow win, jGuiControl parent, jxE g, jxE overrideAttribute) { m_isLayouted = true; base.loadDefaultParam(stage, win, parent, g, overrideAttribute); base.loadChild(stage, parent, g); }
public override void Load(jGuiStage stage, jGuiWindow win, jGuiControl parent, jxE g, jxE overrideAttribute) { base.Load(stage, win, parent, g, overrideAttribute); m_ToggleValue = g.AttrVar("ToggleValue"); if (m_ToggleValue == null) { throw new System.Exception("jGuiToggle : attribute b_ToggleValue is null"); } }
public override void Load(jGuiStage stage, jGuiWindow win, jGuiControl parent, jxE g, jxE overrideAttribute) { m_isLayouted = true; // only GUILayout mode ! base.Load(stage, win, parent, g, overrideAttribute); if (g.AttrVar("Rect") == null) { throw new System.Exception(g.GetTagName() + " : need r_Rect=..."); } }
//#-------------------------------------------------------------------------- // protectec member function //#-------------------------------------------------------------------------- //#-------------------------------------------------------------------------- // private member function //#-------------------------------------------------------------------------- //#-------------------------------------------------------------------------- // jGuiControl Event function //#-------------------------------------------------------------------------- public override void Load(jGuiStage stage, jGuiWindow win, jGuiControl parent, jxE g, jxE overrideAttribute) { base.Load(stage, win, parent, g, overrideAttribute); m_vColumn = g.AttrVar("Column"); if (m_vColumn == null) { throw new System.Exception(ToString() + " has not i_Column attribute"); } ReloadGridString(); }
public override void Load(jGuiStage stage, jGuiWindow win, jGuiControl parent, jxE g, jxE overrideAttribute) { base.Load(stage, win, parent, g, overrideAttribute); m_listText = new string[g.size()]; int i = 0; foreach (jxE e in g) { m_listText[i++] = e.Get_string(); } }
virtual public void Load(jGuiStage stage, jGuiWindow win, jGuiControl parent, jxE g, jxE overrideAttribute) { //////Debug.Log("load : jGuiControl : " + g.GetTagName()); loadDefaultParam(stage, win, parent, g, overrideAttribute); if (m_isLayouted == false) { m_Rect = stage.GetGuiRect(m_jxE); } else { m_jLayoutParam = new jGUILayoutOption(m_jxE, this); } }
public override void Load(jGuiStage stage, jGuiWindow win, jGuiControl parent, jxE g, jxE overrideAttribute) { base.Load(stage, win, parent, g, overrideAttribute); m_vMask = g.AttrVar("Mask"); if (m_vMask == null) { throw new System.Exception(ToString() + " has not Mask attribute"); } m_vMaxLength = g.AttrVar("MaxLength"); if (m_vMaxLength == null) { throw new System.Exception(ToString() + " has not i_MaxLength attribute"); } }
protected void loadChild(jGuiStage stage, jGuiControl parent, jxE g) { jGuiControl ctrl; foreach (jxE e in m_jxE) { ctrl = m_jGuiStage.CreateRTTI(e); if (ctrl == null) { continue; } ctrl.m_isLayouted = this.m_isLayouted; ctrl.Load(stage, this.m_jGuiWindow, this, e, this.m_OverrideAttribute); } }
//#-------------------------------------------------------------------------- // prototected //#-------------------------------------------------------------------------- protected void Set_jGuiWindow(jGuiWindow win) { m_jGuiStage = win.GetStage(); m_jGuiWindow = win; if (m_jGuiStage == null || m_jGuiWindow == null) { throw new System.Exception("m_jGuiStage==null || m_jGuiWindow == null"); } m_GUI = gameObject.GetComponent <GuiEventManager>(); m_CMD = m_GUI.m_CMD; if (m_CMD == null) { throw new System.Exception("m_CMD==null"); } }
//#-------------------------------------------------------------------------- public override void Load(jGuiStage stage, jGuiWindow win, jGuiControl parent, jxE g, jxE overrideAttribute) //#-------------------------------------------------------------------------- { base.Load(stage, this, parent, g, overrideAttribute); m_vDragWindow = g.AttrVar("DragWindow"); jxV v = g.AttrVar("IsScalable"); if (v != null && v.Get_bool()) { m_EScaleState = EScaleState.eREADY; m_rectScaleBox.x = m_Rect.x + m_Rect.width - fTOGGLEBOX_OFFSET; m_rectScaleBox.y = m_Rect.y + m_Rect.height; m_rectScaleBox.width = fSCALE_BOX_WIDTH; m_rectScaleBox.height = fSCALE_BOX_HEIGT; } m_jGuiStage.CallEventHandler_jGuiWindow("OnLoadedGUI_" + GetName(), this); }
protected void loadDefaultParam(jGuiStage stage, jGuiWindow win, jGuiControl parent, jxE g, jxE overrideAttribute) { m_OverrideAttribute = g.Find("OverrideAttribute", 1); if (m_OverrideAttribute == null) { m_OverrideAttribute = overrideAttribute; } m_TextAnchor.t1 = false; m_jxE = g; m_jGuiStage = stage; m_jGuiParent = parent; m_Enable = m_jxE.AttrVar("Enable"); m_Text = AttrOverride("Text"); m_Name = m_jxE.Attr("Name"); if (m_Text == null) { m_Text = m_Name; } load_GUIStyle(); }
public override void Load(jGuiStage stage, jGuiWindow win, jGuiControl parent, jxE g, jxE overrideAttribute) { base.Load(stage, win, parent, g, overrideAttribute); jxV v = g.AttrVar("MaxLength"); if (v != null) { m_iMaxLength = v.Get_int(); } if (m_Text == null) { throw new System.Exception(g.GetTagName() + "' Text is not found "); } v = g.AttrVar("ReadOnly"); if (v != null) { m_bReadOnly = v.Get_bool(); } }
public override void Load(jGuiStage stage, jGuiWindow win, jGuiControl parent, jxE g, jxE overrideAttribute) { base.Load(stage, win, parent, g, overrideAttribute); }
protected void OnLoadStageGUI_asdf(jGuiStage stage) { }
public override void Load(jGuiStage stage, jGuiWindow win, jGuiControl parent, jxE g, jxE overrideAttribute) { m_isLayouted = parent.IsLayouted(); base.Load(stage, win, parent, g, overrideAttribute); }
void _load(string name, string xml, GUISkin skin, GameObject eventHandler, string GuiEventPrifix = "GuiEvent_") { m_jGuiStage = new jGuiStage(); m_jGuiStage.Load(name, xml, skin, eventHandler, GuiEventPrifix); }
protected void OnLoadStageGUI_rps(jGuiStage stage) { }
public override void Load(jGuiStage stage, jGuiWindow win, jGuiControl parent, jxE g, jxE overrideAttribute) { ///Debug.Log("load : jGuiControlGroup : " + g.GetTagName()); base.Load(stage, win, parent, g, overrideAttribute); loadChild(stage, parent, g); }
protected void OnLoadStageGUI_baseball(jGuiStage stage) { }
public override void Load(jGuiStage stage, jGuiWindow win, jGuiControl parent, jxE g, jxE overrideAttribute) { m_isLayouted = true; // only GUILayout mode ! base.Load(stage, win, parent, g, overrideAttribute); }
// "dummy_client"라는 jGuiStage xml파일의 jGuiControl에 대한 초기화가 완료되었을때 호출됨. protected void OnLoadStageGUI_dummy_client(jGuiStage stage) { StartCoroutine(_show_ServerListWindow()); }