Beispiel #1
0
        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");
        }
Beispiel #2
0
        private void initializeToolTip()
        {
            dgvTooltip = new common.FormatedToolTip();

            dgvTooltip.AutoPopDelay = 20000;

            dgvTooltip.InitialDelay = 0;

            dgvTooltip.ReshowDelay = 0;

            dgvTooltip.ShowAlways = true;

            dgvTooltip.StripAmpersands = false;

            htmlDic = common.COH_htmlToolTips.getToolTipsDic(@"assetEditor/objectTrick/FxToolTips.html");
        }
Beispiel #3
0
        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");
        }
Beispiel #4
0
        public static void intilizeToolTips(ArrayList comboControlsList, string htmlFile)
        {
            common.FormatedToolTip toolTip1 = new common.FormatedToolTip();

            toolTip1.AutoPopDelay = 20000;

            toolTip1.InitialDelay = 0;

            toolTip1.ReshowDelay = 0;

            toolTip1.ShowAlways = true;

            toolTip1.StripAmpersands = false;

            Dictionary <string, string> flagsDic = buildDictionary(htmlFile);

            // Set up the ToolTip text for the Button and Checkbox.
            foreach (CheckBox_SpinCombo cbsc in comboControlsList)
            {
                Control ctl = cbsc.checkBoxControl;

                toolTip1.SetToolTip(ctl, getText(cbsc.controlName, flagsDic));
            }
        }