예제 #1
0
        private void propertiesItem_Click(object sender, EventArgs e)
        {
            var tag = (NodeData)m_selectedNode.Tag;

            switch (tag.type)
            {
            case Node.BodyType.Detail:
                BrowseTexturesWindow bw = new BrowseTexturesWindow(this);
                if (bw.ShowDialog() == DialogResult.OK)
                {
                    setPanelTexture(ref m_selectedNode);
                }
                break;

            case Node.BodyType.Light:
                if (m_selectedNode != null)
                {
                    LightPropertiesWindow ld = new LightPropertiesWindow(ref m_selectedNode);
                    ld.ShowDialog();
                }
                break;

            default: break;
            }
        }
예제 #2
0
 private void propertiesItem_Click(object sender, EventArgs e)
 {
     var tag = (NodeData)m_selectedNode.Tag;
     switch (tag.type)
     {
         case Node.BodyType.Detail:
             BrowseTexturesWindow bw = new BrowseTexturesWindow(this);
             if(bw.ShowDialog() == DialogResult.OK)
             {
                 setPanelTexture(ref m_selectedNode);
             }
             break;
         case Node.BodyType.Light:
             if (m_selectedNode != null)
             {
                 LightPropertiesWindow ld = new LightPropertiesWindow(ref m_selectedNode);
                 ld.ShowDialog();
             }
             break;
         default: break;
     }
 }