void OnGUI_jGuiWindow(int windowID) { base.OnGUI(); if (m_vDragWindow != null && m_vDragWindow.Get_bool() == true) { GUI.DragWindow(); } }
public void UpdateList() { m_listText = new string[m_jxE.size()]; int i = 0; foreach (jxE e in m_jxE) { jxV v = e.AttrVar("Enable"); if (v != null && v.Get_bool() == false) { continue; } m_listText[i++] = e.Get_string(); } }
//#-------------------------------------------------------------------------- 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); }
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 bool GetToggleValue() { return(m_ToggleValue.Get_bool()); }
public bool IsEnabled() { return((m_Enable == null) || m_Enable.Get_bool()); }