public void OnLoad() { MakeWidget(rtbterm); if (SaveSystem.CurrentSave != null) { if (!ShiftoriumFrontend.UpgradeInstalled("window_manager")) { rtbterm.Text = AppearanceManager.LastTerminalText; rtbterm.Select(rtbterm.TextLength, 0); } Console.Write($"{SaveSystem.CurrentSave.Username}@{SaveSystem.CurrentSave.SystemName}:~$ "); } }
public void OnLoad() { tbguess.Visible = false; comboBox1.Items.Add("ShiftOS"); if (ShiftoriumFrontend.UpgradeInstalled("sl_contributors_wordlist")) { comboBox1.Items.Add("Contributors"); } if (Shiftorium.UpgradeInstalled("sl_operating_systems_wordlist")) { comboBox1.Items.Add("Operating Systems"); } btnrestart.Visible = true; lblword.Left = (this.Width - lblword.Width) / 2; comboBox1.SelectedIndex = 0; tmrcenter.Tick += (o, a) => { this.tbguess.CenterParent(); this.tbguess.Parent.CenterParent(); }; tmrcenter.Interval = 50; tmrcenter.Start(); }
public void OnUpgrade() { btnAddOptionalText.Visible = ShiftoriumFrontend.UpgradeInstalled("format_editor_optional_text"); btnAddRegexText.Visible = ShiftoriumFrontend.UpgradeInstalled("format_editor_regex"); btnAddColor.Visible = ShiftoriumFrontend.UpgradeInstalled("format_editor_syntax_highlighting"); }