private void btnapply_Click(object sender, EventArgs e) { SkinEngine.LoadedSkin.AppIcons = Icons; SkinEngine.SaveSkin(); SkinEngine.LoadSkin(); Infobox.Show("Icons applied!", "The new icons have been applied to ShiftOS successfully!"); }
private void btnapply_Click(object sender, EventArgs e) { //Apply the skin. Utils.WriteAllText(Paths.GetPath("skin.json"), JsonConvert.SerializeObject(LoadedSkin)); SkinEngine.LoadSkin(); CodepointValue = CodepointValue / 4; Infobox.Show("{SHIFTER_SKIN_APPLIED}", "{YOU_HAVE_EARNED} " + CodepointValue.ToString() + " {CODEPOINTS}."); ShiftOS.Engine.Shiftorium.Silent = true; SaveSystem.CurrentSave.Codepoints += CodepointValue; SaveSystem.SaveGame(); ShiftOS.Engine.Shiftorium.Silent = false; CodepointValue = 0; }
private void btnapply_Click(object sender, EventArgs e) { //Apply the skin. Utils.WriteAllText(Paths.GetPath("skin.json"), JsonConvert.SerializeObject(LoadedSkin)); SkinEngine.LoadSkin(); CodepointValue = CodepointValue / 4; Infobox.Show("{TITLE_SKINAPPLIED}", Localization.Parse("{PROMPT_SKINAPPLIED}", new Dictionary <string, string> { ["%cp"] = CodepointValue.ToString() })); ShiftOS.Engine.Shiftorium.Silent = true; SaveSystem.CurrentSave.Codepoints += CodepointValue; SaveSystem.SaveGame(); ShiftOS.Engine.Shiftorium.Silent = false; CodepointValue = 0; }
private void apply_Click(object sender, RoutedEventArgs e) { Utils.WriteAllText(Paths.GetPath("skin.json"), JsonConvert.SerializeObject(_mySkin)); SkinEngine.LoadSkin(); }
private void btnapply_Click(object sender, EventArgs e) { SkinEngine.LoadedSkin.AppNames = names; Utils.WriteAllText(Paths.GetPath("skin.json"), SkinEngine.LoadedSkin.ToString()); SkinEngine.LoadSkin(); }
private void btnapply_Click(object sender, EventArgs e) { ShiftOS.Objects.ShiftFS.Utils.WriteAllText(Paths.GetPath("skin.json"), JsonConvert.SerializeObject(LoadedSkin)); SkinEngine.LoadSkin(); }
public void showDefaultElements(bool val) { ShowDefaultElements = val; SkinEngine.LoadSkin(); }
public static bool ResetSkin() { Utils.WriteAllText(Paths.GetPath("skin.json"), JsonConvert.SerializeObject(new Skin())); SkinEngine.LoadSkin(); return(true); }