Пример #1
0
 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!");
 }
Пример #2
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("{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;
 }
Пример #3
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;
 }
Пример #4
0
 private void apply_Click(object sender, RoutedEventArgs e)
 {
     Utils.WriteAllText(Paths.GetPath("skin.json"), JsonConvert.SerializeObject(_mySkin));
     SkinEngine.LoadSkin();
 }
Пример #5
0
 private void btnapply_Click(object sender, EventArgs e)
 {
     SkinEngine.LoadedSkin.AppNames = names;
     Utils.WriteAllText(Paths.GetPath("skin.json"), SkinEngine.LoadedSkin.ToString());
     SkinEngine.LoadSkin();
 }
Пример #6
0
 private void btnapply_Click(object sender, EventArgs e)
 {
     ShiftOS.Objects.ShiftFS.Utils.WriteAllText(Paths.GetPath("skin.json"), JsonConvert.SerializeObject(LoadedSkin));
     SkinEngine.LoadSkin();
 }
Пример #7
0
 public void showDefaultElements(bool val)
 {
     ShowDefaultElements = val;
     SkinEngine.LoadSkin();
 }
Пример #8
0
 public static bool ResetSkin()
 {
     Utils.WriteAllText(Paths.GetPath("skin.json"), JsonConvert.SerializeObject(new Skin()));
     SkinEngine.LoadSkin();
     return(true);
 }