Esempio n. 1
0
        public SelImage(IAttrRow iRowImage)
        {
            s_pW = this;
            m_iRowImage = iRowImage;
            m_mapLocalRes = new Dictionary<string, TreeViewItem>();
            m_mapOtherRes = new Dictionary<string, TreeViewItem>();
            m_mapPngItem = new Dictionary<string, TreeViewItem>();
            InitializeComponent();
            this.Owner = MainWindow.s_pW;

            m_curTgaCtrl = null;
            m_curImg = null;
            ImageIndex.refreshImageIndex();
            refreshResMap();
            refreshResTree();
        }
Esempio n. 2
0
        private void mx_sel_Click(object sender, RoutedEventArgs e)
        {
            if (m_parent.m_basic != null && m_parent.m_basic is Basic)
            {
                switch(m_name)
                {
                    case "skin":
                        {
                            BoloUI.SelSkin winSkin = new BoloUI.SelSkin(m_parent.m_xmlCtrl.m_openedFile.m_path, m_parent.m_basic.m_xe.OuterXml, this);

                            winSkin.ShowDialog();

                            if (!BoloUI.SelSkin.s_pW.m_msgMng.m_GLHost.m_process.HasExited)
                            {
                                BoloUI.SelSkin.s_pW.m_msgMng.m_GLHost.m_process.Kill();
                                BoloUI.SelSkin.s_pW = null;
                            }
                        }
                        break;
                    default:
                        break;
                }
            }
            if (m_parent.m_basic != null && m_parent.m_basic is ResBasic)
            {
                switch (m_name)
                {
                    case "image":
                        {
                            BoloUI.SelImage winImage = new BoloUI.SelImage(this);

                            winImage.ShowDialog();
                        }
                        break;
                    case "ImageName":
                        {
                            BoloUI.SelImage winImage = new BoloUI.SelImage(this);

                            winImage.ShowDialog();
                        }
                        break;
                    case "particleName":
                        {
                            BoloUI.SelParticle winParticle = new BoloUI.SelParticle(this);

                            winParticle.ShowDialog();
                        }
                        break;
                    default:
                        break;
                }
            }
        }
Esempio n. 3
0
 private void mx_root_Unloaded(object sender, RoutedEventArgs e)
 {
     s_pW = null;
 }