diff options
| author | Michael <[email protected]> | 2017-07-26 09:59:48 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-07-26 09:59:48 -0400 |
| commit | 74d0790ab3b91d0a46db526f2599d6bf26172377 (patch) | |
| tree | 9dc783b84a8b677c5c7020e0e584964ff9995f83 /ShiftOS.Frontend/Apps | |
| parent | c9b183a0e00720905a0da75a7d20770070a4f61d (diff) | |
| download | shiftos_thereturn-74d0790ab3b91d0a46db526f2599d6bf26172377.tar.gz shiftos_thereturn-74d0790ab3b91d0a46db526f2599d6bf26172377.tar.bz2 shiftos_thereturn-74d0790ab3b91d0a46db526f2599d6bf26172377.zip | |
skin loading and fullscreen toggle in options
Diffstat (limited to 'ShiftOS.Frontend/Apps')
| -rw-r--r-- | ShiftOS.Frontend/Apps/SkinLoader.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ShiftOS.Frontend/Apps/SkinLoader.cs b/ShiftOS.Frontend/Apps/SkinLoader.cs new file mode 100644 index 0000000..42f7a47 --- /dev/null +++ b/ShiftOS.Frontend/Apps/SkinLoader.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using ShiftOS.Engine; +using ShiftOS.Objects.ShiftFS; + +namespace ShiftOS.Frontend.Apps +{ + [FileHandler("Skin Loader", ".skn", "")] + public class SkinLoader : IFileHandler + { + public void OpenFile(string file) + { + string skn = Utils.ReadAllText(file); + Utils.WriteAllText(Paths.GetPath("skin.json"), skn); + SkinEngine.LoadSkin(); + + } + } +} |
