コード例 #1
0
        private void SetToolTip(object[] data)
        {
            var info = new SuperTooltipInfo();

            info.HeaderText = $"{TextValueConverter.TextFromValue(Conversions.ToLong(data[0]))}: {data[1]}";
            info.BodyText   = $"<u>Description:</u>{data[2]}<br/><br/><u>Notes:</u>{data[3]}";
            SuperTooltip1.SetSuperTooltip(ComboBox_ColType, info);
        }
コード例 #2
0
        private void TextBoxX1_TextChanged(object sender, EventArgs e)
        {
            byte id = Conversions.ToByte(TextValueConverter.ValueFromText(TextBoxX1.Text));

            SetParamTipp(id);
            SuperTooltip1.SetSuperTooltip(ComboBox_ColType, null);
            if (!LoadingColItemSettings)
            {
                UpdateTextureListItemSettings(id);
            }
        }
コード例 #3
0
        private void LoadTweak(PatchProfile patch)
        {
            LabelX_PatchName.Text = patch.Name;
            labelX_Version.Text   = $"Version {patch.Version}";

            if (!string.IsNullOrEmpty(LabelX_Description.Text))
            {
                LabelX_Description.Text = patch.Description;
                SuperTooltip1.SetSuperTooltip(LabelX_Description, new SuperTooltipInfo("", "", patch.Description, null, null, eTooltipColor.Default, false, false, default));
            }
            else
            {
                LabelX_Description.Text = "(No description available.)";
                SuperTooltip1.SetSuperTooltip(LabelX_Description, null);
            }

            LoadScriptsList(patch);
        }
コード例 #4
0
        public Form_Settings()
        {
            base.Load        += Form_Settings_Load;
            base.FormClosing += Form_Settings_FormClosing;
            this.FormClosed  += Form_Settings_FormClosed;
            InitializeComponent();
            base.UpdateAmbientColors();
            SuperTooltip1.SetSuperTooltip(PictureBox_Warning, new SuperTooltipInfo("Warning", "", "Some changes will completly affect only after a restart of the programm.", null, null, eTooltipColor.System, true, false, default));
            foreach (var lm in Publics.Publics.GetAllLoaderModules())
            {
                var item = new ComboItem()
                {
                    Text = lm.Name,
                    Tag  = lm
                };
                ComboBoxEx_LoaderModule.Items.Add(item);
            }

            foreach (var lm in Publics.Publics.GetAllExporterModules())
            {
                var item = new ComboItem()
                {
                    Text = lm.Name,
                    Tag  = lm
                };
                ComboBoxEx_ExporterModule.Items.Add(item);
            }

            foreach (string f in Directory.GetDirectories(Publics.General.MyDataPath + @"\Lang"))
            {
                string name = Path.GetFileName(f);
                var    cult = new CultureInfo(name);
                if (cult is object)
                {
                    ComboBoxEx_Language.Items.Add(new ComboItem()
                    {
                        Text = cult.NativeName, Tag = cult
                    });
                }
            }
        }
コード例 #5
0
 private void LabelX_Description_MouseEnter(object sender, EventArgs e)
 {
     SuperTooltip1.SetSuperTooltip((System.ComponentModel.IComponent)sender, new SuperTooltipInfo(string.Empty, string.Empty, Conversions.ToString(((Control)sender).Text), null, null, eTooltipColor.System, false, false, default));
 }
コード例 #6
0
 private void LoadScript(PatchScript script)
 {
     SuperTooltip1.SetSuperTooltip(new ComboItem(), new SuperTooltipInfo(script.Name, "", script.Description, null, null, eTooltipColor.Default, false, false, default));
 }