public BehaviorWin(ImageList imgList, string file_name) { fileName = file_name; width = 580; isLocked = true; isDirty = false; bhvrPanels = new ArrayList(); InitializeComponent(); BhvrTag = null; bpcfPanel = new BhvrNPartCommonFunctionPanel(this, "Behavior", imgList); bpcfPanel.PartOrBhvrComboBoxChanged -= new EventHandler(bpcfPanel_partOrBhvrComboBoxChanged); bpcfPanel.PartOrBhvrComboBoxChanged += new EventHandler(bpcfPanel_partOrBhvrComboBoxChanged); buildKeyPanel(); this.Controls.Add(bpcfPanel); bpcfPanel.Dock = DockStyle.Top; ArrayList ctlList = buildToolTipsObjList(); fToolTip = common.COH_htmlToolTips.intilizeToolTips(ctlList, @"assetEditor/objectTrick/BhvrToolTips.html"); }
private void initPartWin(string root_path, ref Dictionary <string, string> tgaDic, ImageList imgList) { rootPath = root_path; isLocked = true; isDirty = false; partPanels = new ArrayList(); InitializeComponent(); Tag = null; bpcfPanel = new BhvrNPartCommonFunctionPanel(this, "Part", imgList); bpcfPanel.PartOrBhvrComboBoxChanged -= new EventHandler(bpcfPanel_partOrBhvrComboBoxChanged); bpcfPanel.PartOrBhvrComboBoxChanged += new EventHandler(bpcfPanel_partOrBhvrComboBoxChanged); buildKeyPanel(); this.Controls.Add(bpcfPanel); bpcfPanel.Dock = DockStyle.Top; if (tgaDic != null) { tgaFilesDictionary = tgaDic.ToDictionary(k => k.Key, k => k.Value); } else { MessageBox.Show("Building TGA texture Dictionary...\r\nThis may take few seconds!"); tgaFilesDictionary = common.COH_IO.getFilesDictionary(rootPath.Replace(@"\data", "") + @"src\Texture_Library", "*.tga"); tgaDic = tgaFilesDictionary.ToDictionary(k => k.Key, k => k.Value); } ArrayList ctlList = buildToolTipsObjList(); fToolTip = common.COH_htmlToolTips.intilizeToolTips(ctlList, @"assetEditor/objectTrick/PartToolTips.html"); }