Example #1
0
        /// <summary>
        /// 渲染控件
        /// </summary>
        /// <param name="drawArgs"></param>
        public override void Render(DrawArgs drawArgs)
        {
            if (IsPushed())
            {
                if (lmm == null)
                {
                    lmm = new LayerManagerMenu(m_parentWorld, this);
                }

                lmm.Render(drawArgs);
            }
        }
Example #2
0
 /// <summary>
 /// 初始化一个LayerMenuItem2实例
 /// </summary>
 /// <param name="parent">当前菜单项所属到父图层菜单管理对象</param>
 /// <param name="renderableObject">与当前菜单项相关联到可渲染对象</param>
 public LayerMenuItem(LayerManagerMenu parent, RenderableObject renderableObject)
 {
     m_renderableObject = renderableObject;
     m_parent           = parent;
 }