aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-02-07 17:30:14 -0500
committerMichael <[email protected]>2017-02-07 17:30:14 -0500
commit7a29121456747651bd27d75833e28d5f7d479a1e (patch)
treed606abe06064c29b9796a9f958a3f953ec4e2c31 /ShiftOS.WinForms
parentaa45e10f4a023ba681f04bde72872c7e8a7aa122 (diff)
downloadshiftos_thereturn-7a29121456747651bd27d75833e28d5f7d479a1e.tar.gz
shiftos_thereturn-7a29121456747651bd27d75833e28d5f7d479a1e.tar.bz2
shiftos_thereturn-7a29121456747651bd27d75833e28d5f7d479a1e.zip
Added defaulticonattribute.
Diffstat (limited to 'ShiftOS.WinForms')
-rw-r--r--ShiftOS.WinForms/Program.cs21
-rw-r--r--ShiftOS.WinForms/Properties/Resources.Designer.cs10
-rw-r--r--ShiftOS.WinForms/Properties/Resources.resx3
-rw-r--r--ShiftOS.WinForms/Resources/IconTerminal.bmpbin0 -> 1334 bytes
-rw-r--r--ShiftOS.WinForms/Resources/Shiftorium.txt5
-rw-r--r--ShiftOS.WinForms/ShiftOS.WinForms.csproj1
-rw-r--r--ShiftOS.WinForms/SystemIcons/iconArtpad.pngbin0 -> 47778 bytes
-rw-r--r--ShiftOS.WinForms/SystemIcons/iconAudioPlayer.pngbin0 -> 50565 bytes
-rw-r--r--ShiftOS.WinForms/SystemIcons/iconBitnoteDigger.pngbin0 -> 49878 bytes
-rw-r--r--ShiftOS.WinForms/SystemIcons/iconBitnoteWallet.pngbin0 -> 48562 bytes
-rw-r--r--ShiftOS.WinForms/SystemIcons/iconCalculator.pngbin0 -> 50783 bytes
-rw-r--r--ShiftOS.WinForms/SystemIcons/iconClock.pngbin0 -> 49533 bytes
-rw-r--r--ShiftOS.WinForms/SystemIcons/iconColourPicker.fw.pngbin0 -> 47246 bytes
-rw-r--r--ShiftOS.WinForms/SystemIcons/iconDodge.pngbin0 -> 237 bytes
-rw-r--r--ShiftOS.WinForms/SystemIcons/iconDownloader.pngbin0 -> 51292 bytes
-rw-r--r--ShiftOS.WinForms/SystemIcons/iconFileOpener.fw.pngbin0 -> 47956 bytes
-rw-r--r--ShiftOS.WinForms/SystemIcons/iconFileSaver.fw.pngbin0 -> 47385 bytes
-rw-r--r--ShiftOS.WinForms/SystemIcons/iconFileSkimmer.pngbin0 -> 47436 bytes
-rw-r--r--ShiftOS.WinForms/SystemIcons/iconIconManager.pngbin0 -> 77559 bytes
-rw-r--r--ShiftOS.WinForms/SystemIcons/iconInfoBox.fw.pngbin0 -> 47233 bytes
-rw-r--r--ShiftOS.WinForms/SystemIcons/iconKnowledgeInput.pngbin0 -> 47435 bytes
-rw-r--r--ShiftOS.WinForms/SystemIcons/iconNameChanger.pngbin0 -> 48858 bytes
-rw-r--r--ShiftOS.WinForms/SystemIcons/iconPong.pngbin0 -> 47990 bytes
-rw-r--r--ShiftOS.WinForms/SystemIcons/iconShifter.pngbin0 -> 47443 bytes
-rw-r--r--ShiftOS.WinForms/SystemIcons/iconShiftnet.pngbin0 -> 49354 bytes
-rw-r--r--ShiftOS.WinForms/SystemIcons/iconShiftorium.pngbin0 -> 64263 bytes
-rw-r--r--ShiftOS.WinForms/SystemIcons/iconSkinLoader.pngbin0 -> 48047 bytes
-rw-r--r--ShiftOS.WinForms/SystemIcons/iconSkinShifter.pngbin0 -> 51630 bytes
-rw-r--r--ShiftOS.WinForms/SystemIcons/iconSnakey.pngbin0 -> 249 bytes
-rw-r--r--ShiftOS.WinForms/SystemIcons/iconSysinfo.pngbin0 -> 318 bytes
-rw-r--r--ShiftOS.WinForms/SystemIcons/iconTerminal.pngbin0 -> 48451 bytes
-rw-r--r--ShiftOS.WinForms/SystemIcons/iconTextPad.pngbin0 -> 47563 bytes
-rw-r--r--ShiftOS.WinForms/SystemIcons/iconVideoPlayer.pngbin0 -> 47879 bytes
-rw-r--r--ShiftOS.WinForms/SystemIcons/iconWebBrowser.pngbin0 -> 50634 bytes
-rw-r--r--ShiftOS.WinForms/SystemIcons/iconfloodgate.pngbin0 -> 260 bytes
-rw-r--r--ShiftOS.WinForms/SystemIcons/icongraphicpicker.pngbin0 -> 47862 bytes
-rw-r--r--ShiftOS.WinForms/SystemIcons/iconmaze.pngbin0 -> 256 bytes
-rw-r--r--ShiftOS.WinForms/SystemIcons/iconoctocat.bmpbin0 -> 1270 bytes
-rw-r--r--ShiftOS.WinForms/SystemIcons/iconorcwrite.pngbin0 -> 377 bytes
-rw-r--r--ShiftOS.WinForms/SystemIcons/iconshutdown.pngbin0 -> 47390 bytes
-rw-r--r--ShiftOS.WinForms/SystemIcons/iconunitytoggle.pngbin0 -> 259 bytes
-rw-r--r--ShiftOS.WinForms/SystemIcons/iconvirusscanner.pngbin0 -> 292 bytes
42 files changed, 40 insertions, 0 deletions
diff --git a/ShiftOS.WinForms/Program.cs b/ShiftOS.WinForms/Program.cs
index 0ed5b02..06f495f 100644
--- a/ShiftOS.WinForms/Program.cs
+++ b/ShiftOS.WinForms/Program.cs
@@ -33,6 +33,7 @@ using Newtonsoft.Json;
using static ShiftOS.Objects.ShiftFS.Utils;
using ShiftOS.WinForms.Applications;
using ShiftOS.WinForms.Tools;
+using System.Reflection;
namespace ShiftOS.WinForms
{
@@ -71,6 +72,26 @@ namespace ShiftOS.WinForms
}
}
+ internal class ShiftOSIconProvider : IIconProber
+ {
+ public Image GetIcon(DefaultIconAttribute attr)
+ {
+
+ var res = typeof(Properties.Resources);
+ foreach(var prop in res.GetProperties(BindingFlags.NonPublic | BindingFlags.Static))
+ {
+ if(prop.PropertyType.BaseType == typeof(Image))
+ {
+ if(prop.Name == attr.ID)
+ {
+ return prop.GetValue(null) as Image;
+ }
+ }
+ }
+ return new Bitmap(16, 16);
+ }
+ }
+
internal class WinformsShiftoriumProvider : IShiftoriumProvider
{
public List<ShiftoriumUpgrade> GetDefaults()
diff --git a/ShiftOS.WinForms/Properties/Resources.Designer.cs b/ShiftOS.WinForms/Properties/Resources.Designer.cs
index 7fc4cd7..f0a5e03 100644
--- a/ShiftOS.WinForms/Properties/Resources.Designer.cs
+++ b/ShiftOS.WinForms/Properties/Resources.Designer.cs
@@ -490,6 +490,16 @@ namespace ShiftOS.WinForms.Properties {
}
/// <summary>
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ /// </summary>
+ internal static System.Drawing.Bitmap IconTerminal {
+ get {
+ object obj = ResourceManager.GetObject("IconTerminal", resourceCulture);
+ return ((System.Drawing.Bitmap)(obj));
+ }
+ }
+
+ /// <summary>
/// Looks up a localized string similar to [
/// &quot;english&quot;
/// &quot;deutsch - in beta&quot;
diff --git a/ShiftOS.WinForms/Properties/Resources.resx b/ShiftOS.WinForms/Properties/Resources.resx
index 8efe1d1..604a466 100644
--- a/ShiftOS.WinForms/Properties/Resources.resx
+++ b/ShiftOS.WinForms/Properties/Resources.resx
@@ -268,4 +268,7 @@
<data name="DefaultMouse" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\DefaultMouse.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
+ <data name="IconTerminal" type="System.Resources.ResXFileRef, System.Windows.Forms">
+ <value>..\Resources\IconTerminal.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
+ </data>
</root> \ No newline at end of file
diff --git a/ShiftOS.WinForms/Resources/IconTerminal.bmp b/ShiftOS.WinForms/Resources/IconTerminal.bmp
new file mode 100644
index 0000000..9a5d373
--- /dev/null
+++ b/ShiftOS.WinForms/Resources/IconTerminal.bmp
Binary files differ
diff --git a/ShiftOS.WinForms/Resources/Shiftorium.txt b/ShiftOS.WinForms/Resources/Shiftorium.txt
index cf637f4..af30613 100644
--- a/ShiftOS.WinForms/Resources/Shiftorium.txt
+++ b/ShiftOS.WinForms/Resources/Shiftorium.txt
@@ -6,6 +6,11 @@
Dependencies: null
},
{
+ Name: "Audio Volume",
+ Cost: 50,
+ Description: "Want to adjust the volume of ShiftOS's audio? This upgrade will let you."
+ },
+ {
Name: "Color Depth Dithering",
Cost: 1000,
Description: "Right now, if you try to display images on the screen, with a low color depth like we have, the image will be totally unrecognizable! With this upgrade, we can adapt a simple 1-dimensional dithering algorithm into the video driver to hopefully smooth out the transition between colors.",
diff --git a/ShiftOS.WinForms/ShiftOS.WinForms.csproj b/ShiftOS.WinForms/ShiftOS.WinForms.csproj
index d86e502..f2a65ac 100644
--- a/ShiftOS.WinForms/ShiftOS.WinForms.csproj
+++ b/ShiftOS.WinForms/ShiftOS.WinForms.csproj
@@ -463,6 +463,7 @@
<None Include="Resources\strings_en.txt" />
</ItemGroup>
<ItemGroup>
+ <None Include="Resources\IconTerminal.bmp" />
<None Include="Resources\sys_shiftoriumstory.txt" />
<None Include="Resources\DefaultMouse.bmp" />
<Content Include="Resources\hello.txt" />
diff --git a/ShiftOS.WinForms/SystemIcons/iconArtpad.png b/ShiftOS.WinForms/SystemIcons/iconArtpad.png
new file mode 100644
index 0000000..103eef8
--- /dev/null
+++ b/ShiftOS.WinForms/SystemIcons/iconArtpad.png
Binary files differ
diff --git a/ShiftOS.WinForms/SystemIcons/iconAudioPlayer.png b/ShiftOS.WinForms/SystemIcons/iconAudioPlayer.png
new file mode 100644
index 0000000..a445af4
--- /dev/null
+++ b/ShiftOS.WinForms/SystemIcons/iconAudioPlayer.png
Binary files differ
diff --git a/ShiftOS.WinForms/SystemIcons/iconBitnoteDigger.png b/ShiftOS.WinForms/SystemIcons/iconBitnoteDigger.png
new file mode 100644
index 0000000..42cbae3
--- /dev/null
+++ b/ShiftOS.WinForms/SystemIcons/iconBitnoteDigger.png
Binary files differ
diff --git a/ShiftOS.WinForms/SystemIcons/iconBitnoteWallet.png b/ShiftOS.WinForms/SystemIcons/iconBitnoteWallet.png
new file mode 100644
index 0000000..1f06a17
--- /dev/null
+++ b/ShiftOS.WinForms/SystemIcons/iconBitnoteWallet.png
Binary files differ
diff --git a/ShiftOS.WinForms/SystemIcons/iconCalculator.png b/ShiftOS.WinForms/SystemIcons/iconCalculator.png
new file mode 100644
index 0000000..4a15583
--- /dev/null
+++ b/ShiftOS.WinForms/SystemIcons/iconCalculator.png
Binary files differ
diff --git a/ShiftOS.WinForms/SystemIcons/iconClock.png b/ShiftOS.WinForms/SystemIcons/iconClock.png
new file mode 100644
index 0000000..2bcd19a
--- /dev/null
+++ b/ShiftOS.WinForms/SystemIcons/iconClock.png
Binary files differ
diff --git a/ShiftOS.WinForms/SystemIcons/iconColourPicker.fw.png b/ShiftOS.WinForms/SystemIcons/iconColourPicker.fw.png
new file mode 100644
index 0000000..ece25ab
--- /dev/null
+++ b/ShiftOS.WinForms/SystemIcons/iconColourPicker.fw.png
Binary files differ
diff --git a/ShiftOS.WinForms/SystemIcons/iconDodge.png b/ShiftOS.WinForms/SystemIcons/iconDodge.png
new file mode 100644
index 0000000..9a23b57
--- /dev/null
+++ b/ShiftOS.WinForms/SystemIcons/iconDodge.png
Binary files differ
diff --git a/ShiftOS.WinForms/SystemIcons/iconDownloader.png b/ShiftOS.WinForms/SystemIcons/iconDownloader.png
new file mode 100644
index 0000000..9a3ef2b
--- /dev/null
+++ b/ShiftOS.WinForms/SystemIcons/iconDownloader.png
Binary files differ
diff --git a/ShiftOS.WinForms/SystemIcons/iconFileOpener.fw.png b/ShiftOS.WinForms/SystemIcons/iconFileOpener.fw.png
new file mode 100644
index 0000000..578d499
--- /dev/null
+++ b/ShiftOS.WinForms/SystemIcons/iconFileOpener.fw.png
Binary files differ
diff --git a/ShiftOS.WinForms/SystemIcons/iconFileSaver.fw.png b/ShiftOS.WinForms/SystemIcons/iconFileSaver.fw.png
new file mode 100644
index 0000000..351b5d4
--- /dev/null
+++ b/ShiftOS.WinForms/SystemIcons/iconFileSaver.fw.png
Binary files differ
diff --git a/ShiftOS.WinForms/SystemIcons/iconFileSkimmer.png b/ShiftOS.WinForms/SystemIcons/iconFileSkimmer.png
new file mode 100644
index 0000000..cb4262b
--- /dev/null
+++ b/ShiftOS.WinForms/SystemIcons/iconFileSkimmer.png
Binary files differ
diff --git a/ShiftOS.WinForms/SystemIcons/iconIconManager.png b/ShiftOS.WinForms/SystemIcons/iconIconManager.png
new file mode 100644
index 0000000..99246e9
--- /dev/null
+++ b/ShiftOS.WinForms/SystemIcons/iconIconManager.png
Binary files differ
diff --git a/ShiftOS.WinForms/SystemIcons/iconInfoBox.fw.png b/ShiftOS.WinForms/SystemIcons/iconInfoBox.fw.png
new file mode 100644
index 0000000..0c9ebbd
--- /dev/null
+++ b/ShiftOS.WinForms/SystemIcons/iconInfoBox.fw.png
Binary files differ
diff --git a/ShiftOS.WinForms/SystemIcons/iconKnowledgeInput.png b/ShiftOS.WinForms/SystemIcons/iconKnowledgeInput.png
new file mode 100644
index 0000000..b5e513f
--- /dev/null
+++ b/ShiftOS.WinForms/SystemIcons/iconKnowledgeInput.png
Binary files differ
diff --git a/ShiftOS.WinForms/SystemIcons/iconNameChanger.png b/ShiftOS.WinForms/SystemIcons/iconNameChanger.png
new file mode 100644
index 0000000..7d94b21
--- /dev/null
+++ b/ShiftOS.WinForms/SystemIcons/iconNameChanger.png
Binary files differ
diff --git a/ShiftOS.WinForms/SystemIcons/iconPong.png b/ShiftOS.WinForms/SystemIcons/iconPong.png
new file mode 100644
index 0000000..c96cd58
--- /dev/null
+++ b/ShiftOS.WinForms/SystemIcons/iconPong.png
Binary files differ
diff --git a/ShiftOS.WinForms/SystemIcons/iconShifter.png b/ShiftOS.WinForms/SystemIcons/iconShifter.png
new file mode 100644
index 0000000..07344bf
--- /dev/null
+++ b/ShiftOS.WinForms/SystemIcons/iconShifter.png
Binary files differ
diff --git a/ShiftOS.WinForms/SystemIcons/iconShiftnet.png b/ShiftOS.WinForms/SystemIcons/iconShiftnet.png
new file mode 100644
index 0000000..405662d
--- /dev/null
+++ b/ShiftOS.WinForms/SystemIcons/iconShiftnet.png
Binary files differ
diff --git a/ShiftOS.WinForms/SystemIcons/iconShiftorium.png b/ShiftOS.WinForms/SystemIcons/iconShiftorium.png
new file mode 100644
index 0000000..a72239e
--- /dev/null
+++ b/ShiftOS.WinForms/SystemIcons/iconShiftorium.png
Binary files differ
diff --git a/ShiftOS.WinForms/SystemIcons/iconSkinLoader.png b/ShiftOS.WinForms/SystemIcons/iconSkinLoader.png
new file mode 100644
index 0000000..1df8f53
--- /dev/null
+++ b/ShiftOS.WinForms/SystemIcons/iconSkinLoader.png
Binary files differ
diff --git a/ShiftOS.WinForms/SystemIcons/iconSkinShifter.png b/ShiftOS.WinForms/SystemIcons/iconSkinShifter.png
new file mode 100644
index 0000000..cccc0d1
--- /dev/null
+++ b/ShiftOS.WinForms/SystemIcons/iconSkinShifter.png
Binary files differ
diff --git a/ShiftOS.WinForms/SystemIcons/iconSnakey.png b/ShiftOS.WinForms/SystemIcons/iconSnakey.png
new file mode 100644
index 0000000..469367c
--- /dev/null
+++ b/ShiftOS.WinForms/SystemIcons/iconSnakey.png
Binary files differ
diff --git a/ShiftOS.WinForms/SystemIcons/iconSysinfo.png b/ShiftOS.WinForms/SystemIcons/iconSysinfo.png
new file mode 100644
index 0000000..0d1146b
--- /dev/null
+++ b/ShiftOS.WinForms/SystemIcons/iconSysinfo.png
Binary files differ
diff --git a/ShiftOS.WinForms/SystemIcons/iconTerminal.png b/ShiftOS.WinForms/SystemIcons/iconTerminal.png
new file mode 100644
index 0000000..df5e779
--- /dev/null
+++ b/ShiftOS.WinForms/SystemIcons/iconTerminal.png
Binary files differ
diff --git a/ShiftOS.WinForms/SystemIcons/iconTextPad.png b/ShiftOS.WinForms/SystemIcons/iconTextPad.png
new file mode 100644
index 0000000..0d536ce
--- /dev/null
+++ b/ShiftOS.WinForms/SystemIcons/iconTextPad.png
Binary files differ
diff --git a/ShiftOS.WinForms/SystemIcons/iconVideoPlayer.png b/ShiftOS.WinForms/SystemIcons/iconVideoPlayer.png
new file mode 100644
index 0000000..17a9043
--- /dev/null
+++ b/ShiftOS.WinForms/SystemIcons/iconVideoPlayer.png
Binary files differ
diff --git a/ShiftOS.WinForms/SystemIcons/iconWebBrowser.png b/ShiftOS.WinForms/SystemIcons/iconWebBrowser.png
new file mode 100644
index 0000000..e22117f
--- /dev/null
+++ b/ShiftOS.WinForms/SystemIcons/iconWebBrowser.png
Binary files differ
diff --git a/ShiftOS.WinForms/SystemIcons/iconfloodgate.png b/ShiftOS.WinForms/SystemIcons/iconfloodgate.png
new file mode 100644
index 0000000..2a7c483
--- /dev/null
+++ b/ShiftOS.WinForms/SystemIcons/iconfloodgate.png
Binary files differ
diff --git a/ShiftOS.WinForms/SystemIcons/icongraphicpicker.png b/ShiftOS.WinForms/SystemIcons/icongraphicpicker.png
new file mode 100644
index 0000000..59ded9f
--- /dev/null
+++ b/ShiftOS.WinForms/SystemIcons/icongraphicpicker.png
Binary files differ
diff --git a/ShiftOS.WinForms/SystemIcons/iconmaze.png b/ShiftOS.WinForms/SystemIcons/iconmaze.png
new file mode 100644
index 0000000..18c3c3f
--- /dev/null
+++ b/ShiftOS.WinForms/SystemIcons/iconmaze.png
Binary files differ
diff --git a/ShiftOS.WinForms/SystemIcons/iconoctocat.bmp b/ShiftOS.WinForms/SystemIcons/iconoctocat.bmp
new file mode 100644
index 0000000..b1addaa
--- /dev/null
+++ b/ShiftOS.WinForms/SystemIcons/iconoctocat.bmp
Binary files differ
diff --git a/ShiftOS.WinForms/SystemIcons/iconorcwrite.png b/ShiftOS.WinForms/SystemIcons/iconorcwrite.png
new file mode 100644
index 0000000..e1c2862
--- /dev/null
+++ b/ShiftOS.WinForms/SystemIcons/iconorcwrite.png
Binary files differ
diff --git a/ShiftOS.WinForms/SystemIcons/iconshutdown.png b/ShiftOS.WinForms/SystemIcons/iconshutdown.png
new file mode 100644
index 0000000..d4959c2
--- /dev/null
+++ b/ShiftOS.WinForms/SystemIcons/iconshutdown.png
Binary files differ
diff --git a/ShiftOS.WinForms/SystemIcons/iconunitytoggle.png b/ShiftOS.WinForms/SystemIcons/iconunitytoggle.png
new file mode 100644
index 0000000..450b092
--- /dev/null
+++ b/ShiftOS.WinForms/SystemIcons/iconunitytoggle.png
Binary files differ
diff --git a/ShiftOS.WinForms/SystemIcons/iconvirusscanner.png b/ShiftOS.WinForms/SystemIcons/iconvirusscanner.png
new file mode 100644
index 0000000..5fcb50c
--- /dev/null
+++ b/ShiftOS.WinForms/SystemIcons/iconvirusscanner.png
Binary files differ