diff --git a/DesertPaintLab.csproj b/DesertPaintLab.csproj --- a/DesertPaintLab.csproj +++ b/DesertPaintLab.csproj @@ -68,6 +68,8 @@ + + diff --git a/MainWindow.cs b/MainWindow.cs --- a/MainWindow.cs +++ b/MainWindow.cs @@ -28,14 +28,15 @@ using DesertPaintLab; public partial class MainWindow : Gtk.Window { - const int swatchHeight = 24; - const int colorBarWidth = 306; - const int redBarSpacing = 32; - const int greenBarSpacing = 42; - const int blueBarSpacing = 52; const int colorTolerance = 2; - - + + int swatchHeight = 24; + int colorBarWidth = 306; + int redBarSpacing = 32; + int greenBarSpacing = 42; + int blueBarSpacing = 52; + + bool unsavedData = false; bool shouldShutDown = false; string appDataPath; @@ -46,6 +47,7 @@ public partial class MainWindow : Gtk.Wi int screenWidth = 0; int screenHeight = 0; + int pixelMultiplier = 1; Gdk.Window rootWindow = null; Gdk.Pixbuf screenBuffer = null; @@ -55,7 +57,6 @@ public partial class MainWindow : Gtk.Wi Reagent reagent3 = null; - public bool ShouldShutDown { get @@ -94,17 +95,31 @@ public partial class MainWindow : Gtk.Wi unmodifiedSwatch.Clear(); reactionSwatch.Clear(); - // get the root window rootWindow = Gdk.Global.DefaultRootWindow; // get its width and height rootWindow.GetSize(out screenWidth, out screenHeight); - - screenBuffer = new Gdk.Pixbuf(Gdk.Colorspace.Rgb, false, 8, - screenWidth, screenHeight); + + ScreenCheckDialog screenCheckDialog = new ScreenCheckDialog(); + screenCheckDialog.ScreenWidth = screenWidth; + screenCheckDialog.ScreenHeight = screenHeight; + screenCheckDialog.GamePixelWidth = pixelMultiplier; + ResponseType resp = (ResponseType)screenCheckDialog.Run(); + screenWidth = screenCheckDialog.ScreenWidth; + screenHeight = screenCheckDialog.ScreenHeight; + pixelMultiplier = screenCheckDialog.GamePixelWidth; + screenCheckDialog.Destroy(); + + screenBuffer = new Gdk.Pixbuf(Gdk.Colorspace.Rgb, false, 8, screenWidth, screenHeight); + swatchHeight *= pixelMultiplier; + colorBarWidth *= pixelMultiplier; + redBarSpacing *= pixelMultiplier; + greenBarSpacing *= pixelMultiplier; + blueBarSpacing *= pixelMultiplier; + if (!OpenProfile()) { shouldShutDown = true; diff --git a/PaintSwatch.cs b/PaintSwatch.cs --- a/PaintSwatch.cs +++ b/PaintSwatch.cs @@ -25,7 +25,6 @@ namespace DesertPaintLab color.Blue.ToString(); colorNameLabel.Text = Palette.FindNearest(color); } - } public PaintSwatch () @@ -40,8 +39,7 @@ namespace DesertPaintLab colorBox.ModifyBg(Gtk.StateType.Normal, new Gdk.Color(color.Red, color.Green, color.Blue)); rgbLabel.Text = "???, ???, ???"; colorNameLabel.Text = "Unknown"; - } - + } } } diff --git a/ScreenCheckDialog.cs b/ScreenCheckDialog.cs new file mode 100644 --- /dev/null +++ b/ScreenCheckDialog.cs @@ -0,0 +1,71 @@ +/* + * Copyright (c) 2014, Tess Snider + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +*/ + +using System; + +namespace DesertPaintLab +{ + public partial class ScreenCheckDialog : Gtk.Dialog + { + public int ScreenWidth + { + get + { + return int.Parse(screenWidthEntry.Text); + } + set + { + screenWidthEntry.Text = value.ToString(); + } + } + + public int ScreenHeight + { + get + { + return int.Parse(screenHeightEntry.Text); + } + set + { + screenHeightEntry.Text = value.ToString(); + } + } + + public int GamePixelWidth + { + get + { + return int.Parse(gamePixelWidthEntry.Text); + } + set + { + gamePixelWidthEntry.Text = value.ToString(); + } + } + + public ScreenCheckDialog () + { + this.Build (); + } + } +} + diff --git a/bin/Debug/colors.txt b/bin/Debug/colors.txt --- a/bin/Debug/colors.txt +++ b/bin/Debug/colors.txt @@ -1,182 +1,182 @@ -#F0F8FF AliceBlue -#9966CC Amethyst -#FAEBD7 AntiqueWhite -#00FFFF Aqua -#7FFFD4 Aquamarine -#F0FFFF Azure -#FF91AF BakerMillerPink -#E3CF57 Banana -#7C0A02 BarnRed -#8E388E Beet -#F5F5DC Beige -#FFE4C4 Bisque -#010101 Black -#FFEBCD BlanchedAlmond -#FF6700 BlazeOrange -#0000FF Blue -#8A2BE2 BlueViolet -#873260 Boysenberry -#FF007F BrightPink -#A52A2A Brown -#800020 BurgundyRed -#DEB887 BurlyWood -#8A360F BurntSienna -#8A3324 BurntUmber -#5F9EA0 CadetBlue -#FF6103 CadmiumOrange -#FF9912 CadmiumYellow -#E07020 Carrot -#7FFF00 Chartreuse -#D2691E Chocolate -#3D59AB CobaltBlue -#3D9140 CobaltGreen -#FF7F50 Coral -#6495ED CornflowerBlue -#FFF8DC Cornsilk -#DC143C Crimson -#00008B DarkBlue -#008B8B DarkCyan -#B8860B DarkGoldenRod -#006400 DarkGreen -#A9A9A9 DarkGrey -#1A2421 DarkJungleGreen -#BDB76B DarkKhaki -#8B008B DarkMagenta -#556B2F DarkOliveGreen -#FF8C00 DarkOrange -#9932CC DarkOrchid -#8B0000 DarkRed -#E9967A DarkSalmon -#560319 DarkScarlet -#8FBC8F DarkSeaGreen -#3C1414 DarkSienna -#483D8B DarkSlateBlue -#2F4F4F DarkSlateGrey -#00CED1 DarkTurquoise -#9400D3 DarkViolet -#FF1493 DeepPink -#00BFFF DeepSkyBlue -#696969 DimGrey -#1E90FF DodgerBlue -#00009C DukeBlue -#FCE6C9 EggshellWhite -#00C957 EmeraldGreen -#D19275 Feldspar -#B22222 FireBrick -#FFFAF0 FloralWhite -#228B22 ForestGreen -#FF00FF Fuchsia -#DCDCDC Gainsboro -#F8F8FF GhostWhite -#FFD700 Gold -#DAA520 GoldenRod -#008000 Green -#ADFF2F GreenYellow -#808080 Grey -#F0FFF0 HoneyDew -#FF69B4 HotPink -#002395 ImperialBlue -#CD5C5C IndianRed -#4B0082 Indigo -#FFFFF0 Ivory -#F0E68C Khaki -#E6E6FA Lavender -#FFF0F5 LavenderBlush -#7CFC00 LawnGreen -#FFFACD LemonChiffon -#1A1110 Licorice -#ADD8E6 LightBlue -#F08080 LightCoral -#E0FFFF LightCyan -#FAFAD2 LightGoldenRodYellow -#90EE90 LightGreen -#D3D3D3 LightGrey -#FFB6C1 LightPink -#FFA07A LightSalmon -#20B2AA LightSeaGreen -#87CEFA LightSkyBlue -#8470FF LightSlateBlue -#778899 LightSlateGrey -#B0C4DE LightSteelBlue -#FFFFE0 LightYellow -#00FF00 Lime -#32CD32 LimeGreen -#FAF0E6 Linen -#800000 Maroon -#66CDAA MediumAquaMarine -#0000CD MediumBlue -#BA55D3 MediumOrchid -#9370DB MediumPurple -#3CB371 MediumSeaGreen -#7B68EE MediumSlateBlue -#00FA9A MediumSpringGreen -#48D1CC MediumTurquoise -#C71585 MediumVioletRed -#E3A869 Melon -#191970 MidnightBlue -#F5FFFA MintCream -#FFE4E1 MistyRose -#FFE4B5 Moccasin -#FFDEAD NavajoWhite -#000080 Navy -#FDF5E6 OldLace -#808000 Olive -#6B8E23 OliveDrab -#FFA500 Orange -#FF4500 OrangeRed -#DA70D6 Orchid -#002147 OxfordBlue -#EEE8AA PaleGoldenRod -#98FB98 PaleGreen -#AFEEEE PaleTurquoise -#DB7093 PaleVioletRed -#FFEFD5 PapayaWhip -#FFDAB9 PeachPuff -#33A1C9 Peacock -#32127A PersianIndigo -#F77FBE PersianPink -#CD853F Peru -#FFC0CB Pink -#DDA0DD Plum -#B0E0E6 PowderBlue -#003153 PrussianBlue -#800080 Purple -#C76114 RawSienna -#FF0000 Red -#860111 RedDevil -#004040 RichBlack -#BC8F8F RosyBrown -#4169E1 RoyalBlue -#9B111E RubyRed -#8B4513 SaddleBrown -#FA8072 Salmon -#F4A460 SandyBrown -#92000A Sangria -#308014 SapGreen -#2E8B57 SeaGreen -#321414 SealBrown -#FFF5EE SeaShell -#A0522D Sienna -#C0C0C0 Silver -#87CEEB SkyBlue -#6A5ACD SlateBlue -#708090 SlateGrey -#100C08 SmokeyBlack -#FFFAFA Snow -#00FF7F SpringGreen -#4682B4 SteelBlue -#CC3366 SteelPink -#D2B48C Tan -#008080 Teal -#D8BFD8 Thistle -#FF6347 Tomato -#40E0D0 Turquoise -#66023C TyrianPurple -#EE82EE Violet -#D02090 VioletRed -#F5DEB3 Wheat -#FFFFFF White -#F5F5F5 WhiteSmoke -#FFFF00 Yellow -#9ACD32 YellowGreen -#0014A8 Zaffre +#F0F8FF AliceBlue +#9966CC Amethyst +#FAEBD7 AntiqueWhite +#00FFFF Aqua +#7FFFD4 Aquamarine +#F0FFFF Azure +#FF91AF BakerMillerPink +#E3CF57 Banana +#7C0A02 BarnRed +#8E388E Beet +#F5F5DC Beige +#FFE4C4 Bisque +#010101 Black +#FFEBCD BlanchedAlmond +#FF6700 BlazeOrange +#0000FF Blue +#8A2BE2 BlueViolet +#873260 Boysenberry +#FF007F BrightPink +#A52A2A Brown +#800020 BurgundyRed +#DEB887 BurlyWood +#8A360F BurntSienna +#8A3324 BurntUmber +#5F9EA0 CadetBlue +#FF6103 CadmiumOrange +#FF9912 CadmiumYellow +#E07020 Carrot +#7FFF00 Chartreuse +#D2691E Chocolate +#3D59AB CobaltBlue +#3D9140 CobaltGreen +#FF7F50 Coral +#6495ED CornflowerBlue +#FFF8DC Cornsilk +#DC143C Crimson +#00008B DarkBlue +#008B8B DarkCyan +#B8860B DarkGoldenRod +#006400 DarkGreen +#A9A9A9 DarkGrey +#1A2421 DarkJungleGreen +#BDB76B DarkKhaki +#8B008B DarkMagenta +#556B2F DarkOliveGreen +#FF8C00 DarkOrange +#9932CC DarkOrchid +#8B0000 DarkRed +#E9967A DarkSalmon +#560319 DarkScarlet +#8FBC8F DarkSeaGreen +#3C1414 DarkSienna +#483D8B DarkSlateBlue +#2F4F4F DarkSlateGrey +#00CED1 DarkTurquoise +#9400D3 DarkViolet +#FF1493 DeepPink +#00BFFF DeepSkyBlue +#696969 DimGrey +#1E90FF DodgerBlue +#00009C DukeBlue +#FCE6C9 EggshellWhite +#00C957 EmeraldGreen +#D19275 Feldspar +#B22222 FireBrick +#FFFAF0 FloralWhite +#228B22 ForestGreen +#FF00FF Fuchsia +#DCDCDC Gainsboro +#F8F8FF GhostWhite +#FFD700 Gold +#DAA520 GoldenRod +#008000 Green +#ADFF2F GreenYellow +#808080 Grey +#F0FFF0 HoneyDew +#FF69B4 HotPink +#002395 ImperialBlue +#CD5C5C IndianRed +#4B0082 Indigo +#FFFFF0 Ivory +#F0E68C Khaki +#E6E6FA Lavender +#FFF0F5 LavenderBlush +#7CFC00 LawnGreen +#FFFACD LemonChiffon +#1A1110 Licorice +#ADD8E6 LightBlue +#F08080 LightCoral +#E0FFFF LightCyan +#FAFAD2 LightGoldenRodYellow +#90EE90 LightGreen +#D3D3D3 LightGrey +#FFB6C1 LightPink +#FFA07A LightSalmon +#20B2AA LightSeaGreen +#87CEFA LightSkyBlue +#8470FF LightSlateBlue +#778899 LightSlateGrey +#B0C4DE LightSteelBlue +#FFFFE0 LightYellow +#00FF00 Lime +#32CD32 LimeGreen +#FAF0E6 Linen +#800000 Maroon +#66CDAA MediumAquaMarine +#0000CD MediumBlue +#BA55D3 MediumOrchid +#9370DB MediumPurple +#3CB371 MediumSeaGreen +#7B68EE MediumSlateBlue +#00FA9A MediumSpringGreen +#48D1CC MediumTurquoise +#C71585 MediumVioletRed +#E3A869 Melon +#191970 MidnightBlue +#F5FFFA MintCream +#FFE4E1 MistyRose +#FFE4B5 Moccasin +#FFDEAD NavajoWhite +#000080 Navy +#FDF5E6 OldLace +#808000 Olive +#6B8E23 OliveDrab +#FFA500 Orange +#FF4500 OrangeRed +#DA70D6 Orchid +#002147 OxfordBlue +#EEE8AA PaleGoldenRod +#98FB98 PaleGreen +#AFEEEE PaleTurquoise +#DB7093 PaleVioletRed +#FFEFD5 PapayaWhip +#FFDAB9 PeachPuff +#33A1C9 Peacock +#32127A PersianIndigo +#F77FBE PersianPink +#CD853F Peru +#FFC0CB Pink +#DDA0DD Plum +#B0E0E6 PowderBlue +#003153 PrussianBlue +#800080 Purple +#C76114 RawSienna +#FF0000 Red +#860111 RedDevil +#004040 RichBlack +#BC8F8F RosyBrown +#4169E1 RoyalBlue +#9B111E RubyRed +#8B4513 SaddleBrown +#FA8072 Salmon +#F4A460 SandyBrown +#92000A Sangria +#308014 SapGreen +#2E8B57 SeaGreen +#321414 SealBrown +#FFF5EE SeaShell +#A0522D Sienna +#C0C0C0 Silver +#87CEEB SkyBlue +#6A5ACD SlateBlue +#708090 SlateGrey +#100C08 SmokeyBlack +#FFFAFA Snow +#00FF7F SpringGreen +#4682B4 SteelBlue +#CC3366 SteelPink +#D2B48C Tan +#008080 Teal +#D8BFD8 Thistle +#FF6347 Tomato +#40E0D0 Turquoise +#66023C TyrianPurple +#EE82EE Violet +#D02090 VioletRed +#F5DEB3 Wheat +#FFFFFF White +#F5F5F5 WhiteSmoke +#FFFF00 Yellow +#9ACD32 YellowGreen +#0014A8 Zaffre diff --git a/bin/Release/colors.txt b/bin/Release/colors.txt --- a/bin/Release/colors.txt +++ b/bin/Release/colors.txt @@ -1,182 +1,182 @@ -#F0F8FF AliceBlue -#9966CC Amethyst -#FAEBD7 AntiqueWhite -#00FFFF Aqua -#7FFFD4 Aquamarine -#F0FFFF Azure -#FF91AF BakerMillerPink -#E3CF57 Banana -#7C0A02 BarnRed -#8E388E Beet -#F5F5DC Beige -#FFE4C4 Bisque -#010101 Black -#FFEBCD BlanchedAlmond -#FF6700 BlazeOrange -#0000FF Blue -#8A2BE2 BlueViolet -#873260 Boysenberry -#FF007F BrightPink -#A52A2A Brown -#800020 BurgundyRed -#DEB887 BurlyWood -#8A360F BurntSienna -#8A3324 BurntUmber -#5F9EA0 CadetBlue -#FF6103 CadmiumOrange -#FF9912 CadmiumYellow -#E07020 Carrot -#7FFF00 Chartreuse -#D2691E Chocolate -#3D59AB CobaltBlue -#3D9140 CobaltGreen -#FF7F50 Coral -#6495ED CornflowerBlue -#FFF8DC Cornsilk -#DC143C Crimson -#00008B DarkBlue -#008B8B DarkCyan -#B8860B DarkGoldenRod -#006400 DarkGreen -#A9A9A9 DarkGrey -#1A2421 DarkJungleGreen -#BDB76B DarkKhaki -#8B008B DarkMagenta -#556B2F DarkOliveGreen -#FF8C00 DarkOrange -#9932CC DarkOrchid -#8B0000 DarkRed -#E9967A DarkSalmon -#560319 DarkScarlet -#8FBC8F DarkSeaGreen -#3C1414 DarkSienna -#483D8B DarkSlateBlue -#2F4F4F DarkSlateGrey -#00CED1 DarkTurquoise -#9400D3 DarkViolet -#FF1493 DeepPink -#00BFFF DeepSkyBlue -#696969 DimGrey -#1E90FF DodgerBlue -#00009C DukeBlue -#FCE6C9 EggshellWhite -#00C957 EmeraldGreen -#D19275 Feldspar -#B22222 FireBrick -#FFFAF0 FloralWhite -#228B22 ForestGreen -#FF00FF Fuchsia -#DCDCDC Gainsboro -#F8F8FF GhostWhite -#FFD700 Gold -#DAA520 GoldenRod -#008000 Green -#ADFF2F GreenYellow -#808080 Grey -#F0FFF0 HoneyDew -#FF69B4 HotPink -#002395 ImperialBlue -#CD5C5C IndianRed -#4B0082 Indigo -#FFFFF0 Ivory -#F0E68C Khaki -#E6E6FA Lavender -#FFF0F5 LavenderBlush -#7CFC00 LawnGreen -#FFFACD LemonChiffon -#1A1110 Licorice -#ADD8E6 LightBlue -#F08080 LightCoral -#E0FFFF LightCyan -#FAFAD2 LightGoldenRodYellow -#90EE90 LightGreen -#D3D3D3 LightGrey -#FFB6C1 LightPink -#FFA07A LightSalmon -#20B2AA LightSeaGreen -#87CEFA LightSkyBlue -#8470FF LightSlateBlue -#778899 LightSlateGrey -#B0C4DE LightSteelBlue -#FFFFE0 LightYellow -#00FF00 Lime -#32CD32 LimeGreen -#FAF0E6 Linen -#800000 Maroon -#66CDAA MediumAquaMarine -#0000CD MediumBlue -#BA55D3 MediumOrchid -#9370DB MediumPurple -#3CB371 MediumSeaGreen -#7B68EE MediumSlateBlue -#00FA9A MediumSpringGreen -#48D1CC MediumTurquoise -#C71585 MediumVioletRed -#E3A869 Melon -#191970 MidnightBlue -#F5FFFA MintCream -#FFE4E1 MistyRose -#FFE4B5 Moccasin -#FFDEAD NavajoWhite -#000080 Navy -#FDF5E6 OldLace -#808000 Olive -#6B8E23 OliveDrab -#FFA500 Orange -#FF4500 OrangeRed -#DA70D6 Orchid -#002147 OxfordBlue -#EEE8AA PaleGoldenRod -#98FB98 PaleGreen -#AFEEEE PaleTurquoise -#DB7093 PaleVioletRed -#FFEFD5 PapayaWhip -#FFDAB9 PeachPuff -#33A1C9 Peacock -#32127A PersianIndigo -#F77FBE PersianPink -#CD853F Peru -#FFC0CB Pink -#DDA0DD Plum -#B0E0E6 PowderBlue -#003153 PrussianBlue -#800080 Purple -#C76114 RawSienna -#FF0000 Red -#860111 RedDevil -#004040 RichBlack -#BC8F8F RosyBrown -#4169E1 RoyalBlue -#9B111E RubyRed -#8B4513 SaddleBrown -#FA8072 Salmon -#F4A460 SandyBrown -#92000A Sangria -#308014 SapGreen -#2E8B57 SeaGreen -#321414 SealBrown -#FFF5EE SeaShell -#A0522D Sienna -#C0C0C0 Silver -#87CEEB SkyBlue -#6A5ACD SlateBlue -#708090 SlateGrey -#100C08 SmokeyBlack -#FFFAFA Snow -#00FF7F SpringGreen -#4682B4 SteelBlue -#CC3366 SteelPink -#D2B48C Tan -#008080 Teal -#D8BFD8 Thistle -#FF6347 Tomato -#40E0D0 Turquoise -#66023C TyrianPurple -#EE82EE Violet -#D02090 VioletRed -#F5DEB3 Wheat -#FFFFFF White -#F5F5F5 WhiteSmoke -#FFFF00 Yellow -#9ACD32 YellowGreen -#0014A8 Zaffre +#F0F8FF AliceBlue +#9966CC Amethyst +#FAEBD7 AntiqueWhite +#00FFFF Aqua +#7FFFD4 Aquamarine +#F0FFFF Azure +#FF91AF BakerMillerPink +#E3CF57 Banana +#7C0A02 BarnRed +#8E388E Beet +#F5F5DC Beige +#FFE4C4 Bisque +#010101 Black +#FFEBCD BlanchedAlmond +#FF6700 BlazeOrange +#0000FF Blue +#8A2BE2 BlueViolet +#873260 Boysenberry +#FF007F BrightPink +#A52A2A Brown +#800020 BurgundyRed +#DEB887 BurlyWood +#8A360F BurntSienna +#8A3324 BurntUmber +#5F9EA0 CadetBlue +#FF6103 CadmiumOrange +#FF9912 CadmiumYellow +#E07020 Carrot +#7FFF00 Chartreuse +#D2691E Chocolate +#3D59AB CobaltBlue +#3D9140 CobaltGreen +#FF7F50 Coral +#6495ED CornflowerBlue +#FFF8DC Cornsilk +#DC143C Crimson +#00008B DarkBlue +#008B8B DarkCyan +#B8860B DarkGoldenRod +#006400 DarkGreen +#A9A9A9 DarkGrey +#1A2421 DarkJungleGreen +#BDB76B DarkKhaki +#8B008B DarkMagenta +#556B2F DarkOliveGreen +#FF8C00 DarkOrange +#9932CC DarkOrchid +#8B0000 DarkRed +#E9967A DarkSalmon +#560319 DarkScarlet +#8FBC8F DarkSeaGreen +#3C1414 DarkSienna +#483D8B DarkSlateBlue +#2F4F4F DarkSlateGrey +#00CED1 DarkTurquoise +#9400D3 DarkViolet +#FF1493 DeepPink +#00BFFF DeepSkyBlue +#696969 DimGrey +#1E90FF DodgerBlue +#00009C DukeBlue +#FCE6C9 EggshellWhite +#00C957 EmeraldGreen +#D19275 Feldspar +#B22222 FireBrick +#FFFAF0 FloralWhite +#228B22 ForestGreen +#FF00FF Fuchsia +#DCDCDC Gainsboro +#F8F8FF GhostWhite +#FFD700 Gold +#DAA520 GoldenRod +#008000 Green +#ADFF2F GreenYellow +#808080 Grey +#F0FFF0 HoneyDew +#FF69B4 HotPink +#002395 ImperialBlue +#CD5C5C IndianRed +#4B0082 Indigo +#FFFFF0 Ivory +#F0E68C Khaki +#E6E6FA Lavender +#FFF0F5 LavenderBlush +#7CFC00 LawnGreen +#FFFACD LemonChiffon +#1A1110 Licorice +#ADD8E6 LightBlue +#F08080 LightCoral +#E0FFFF LightCyan +#FAFAD2 LightGoldenRodYellow +#90EE90 LightGreen +#D3D3D3 LightGrey +#FFB6C1 LightPink +#FFA07A LightSalmon +#20B2AA LightSeaGreen +#87CEFA LightSkyBlue +#8470FF LightSlateBlue +#778899 LightSlateGrey +#B0C4DE LightSteelBlue +#FFFFE0 LightYellow +#00FF00 Lime +#32CD32 LimeGreen +#FAF0E6 Linen +#800000 Maroon +#66CDAA MediumAquaMarine +#0000CD MediumBlue +#BA55D3 MediumOrchid +#9370DB MediumPurple +#3CB371 MediumSeaGreen +#7B68EE MediumSlateBlue +#00FA9A MediumSpringGreen +#48D1CC MediumTurquoise +#C71585 MediumVioletRed +#E3A869 Melon +#191970 MidnightBlue +#F5FFFA MintCream +#FFE4E1 MistyRose +#FFE4B5 Moccasin +#FFDEAD NavajoWhite +#000080 Navy +#FDF5E6 OldLace +#808000 Olive +#6B8E23 OliveDrab +#FFA500 Orange +#FF4500 OrangeRed +#DA70D6 Orchid +#002147 OxfordBlue +#EEE8AA PaleGoldenRod +#98FB98 PaleGreen +#AFEEEE PaleTurquoise +#DB7093 PaleVioletRed +#FFEFD5 PapayaWhip +#FFDAB9 PeachPuff +#33A1C9 Peacock +#32127A PersianIndigo +#F77FBE PersianPink +#CD853F Peru +#FFC0CB Pink +#DDA0DD Plum +#B0E0E6 PowderBlue +#003153 PrussianBlue +#800080 Purple +#C76114 RawSienna +#FF0000 Red +#860111 RedDevil +#004040 RichBlack +#BC8F8F RosyBrown +#4169E1 RoyalBlue +#9B111E RubyRed +#8B4513 SaddleBrown +#FA8072 Salmon +#F4A460 SandyBrown +#92000A Sangria +#308014 SapGreen +#2E8B57 SeaGreen +#321414 SealBrown +#FFF5EE SeaShell +#A0522D Sienna +#C0C0C0 Silver +#87CEEB SkyBlue +#6A5ACD SlateBlue +#708090 SlateGrey +#100C08 SmokeyBlack +#FFFAFA Snow +#00FF7F SpringGreen +#4682B4 SteelBlue +#CC3366 SteelPink +#D2B48C Tan +#008080 Teal +#D8BFD8 Thistle +#FF6347 Tomato +#40E0D0 Turquoise +#66023C TyrianPurple +#EE82EE Violet +#D02090 VioletRed +#F5DEB3 Wheat +#FFFFFF White +#F5F5F5 WhiteSmoke +#FFFF00 Yellow +#9ACD32 YellowGreen +#0014A8 Zaffre diff --git a/gtk-gui/DesertPaintLab.ScreenCheckDialog.cs b/gtk-gui/DesertPaintLab.ScreenCheckDialog.cs new file mode 100644 --- /dev/null +++ b/gtk-gui/DesertPaintLab.ScreenCheckDialog.cs @@ -0,0 +1,141 @@ + +// This file has been generated by the GUI designer. Do not modify. +namespace DesertPaintLab +{ + public partial class ScreenCheckDialog + { + private global::Gtk.VBox vbox2; + + private global::Gtk.HBox hbox1; + + private global::Gtk.Label label1; + + private global::Gtk.Entry screenWidthEntry; + + private global::Gtk.Entry screenHeightEntry; + + private global::Gtk.HBox hbox2; + + private global::Gtk.Label label2; + + private global::Gtk.Entry gamePixelWidthEntry; + + private global::Gtk.Button buttonOk; + + protected virtual void Build () + { + global::Stetic.Gui.Initialize (this); + // Widget DesertPaintLab.ScreenCheckDialog + this.Name = "DesertPaintLab.ScreenCheckDialog"; + this.Title = "Screen Check"; + this.WindowPosition = ((global::Gtk.WindowPosition)(4)); + this.Modal = true; + this.BorderWidth = ((uint)(9)); + // Internal child DesertPaintLab.ScreenCheckDialog.VBox + global::Gtk.VBox w1 = this.VBox; + w1.Name = "dialog1_VBox"; + // Container child dialog1_VBox.Gtk.Box+BoxChild + this.vbox2 = new global::Gtk.VBox (); + this.vbox2.Name = "vbox2"; + this.vbox2.Spacing = 20; + this.vbox2.BorderWidth = ((uint)(20)); + // Container child vbox2.Gtk.Box+BoxChild + this.hbox1 = new global::Gtk.HBox (); + this.hbox1.Name = "hbox1"; + this.hbox1.Spacing = 20; + this.hbox1.BorderWidth = ((uint)(10)); + // Container child hbox1.Gtk.Box+BoxChild + this.label1 = new global::Gtk.Label (); + this.label1.Name = "label1"; + this.label1.LabelProp = "Screen Resolution"; + this.hbox1.Add (this.label1); + global::Gtk.Box.BoxChild w2 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.label1])); + w2.Position = 0; + w2.Expand = false; + w2.Fill = false; + // Container child hbox1.Gtk.Box+BoxChild + this.screenWidthEntry = new global::Gtk.Entry (); + this.screenWidthEntry.WidthRequest = 50; + this.screenWidthEntry.CanFocus = true; + this.screenWidthEntry.Name = "screenWidthEntry"; + this.screenWidthEntry.IsEditable = true; + this.screenWidthEntry.InvisibleChar = '●'; + this.hbox1.Add (this.screenWidthEntry); + global::Gtk.Box.BoxChild w3 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.screenWidthEntry])); + w3.Position = 1; + // Container child hbox1.Gtk.Box+BoxChild + this.screenHeightEntry = new global::Gtk.Entry (); + this.screenHeightEntry.WidthRequest = 50; + this.screenHeightEntry.CanFocus = true; + this.screenHeightEntry.Name = "screenHeightEntry"; + this.screenHeightEntry.IsEditable = true; + this.screenHeightEntry.InvisibleChar = '●'; + this.hbox1.Add (this.screenHeightEntry); + global::Gtk.Box.BoxChild w4 = ((global::Gtk.Box.BoxChild)(this.hbox1 [this.screenHeightEntry])); + w4.Position = 2; + this.vbox2.Add (this.hbox1); + global::Gtk.Box.BoxChild w5 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.hbox1])); + w5.Position = 0; + w5.Expand = false; + w5.Fill = false; + // Container child vbox2.Gtk.Box+BoxChild + this.hbox2 = new global::Gtk.HBox (); + this.hbox2.Name = "hbox2"; + this.hbox2.Spacing = 20; + this.hbox2.BorderWidth = ((uint)(10)); + // Container child hbox2.Gtk.Box+BoxChild + this.label2 = new global::Gtk.Label (); + this.label2.Name = "label2"; + this.label2.LabelProp = "Game Pixel Width in Screen Pixels"; + this.hbox2.Add (this.label2); + global::Gtk.Box.BoxChild w6 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.label2])); + w6.Position = 0; + w6.Expand = false; + w6.Fill = false; + // Container child hbox2.Gtk.Box+BoxChild + this.gamePixelWidthEntry = new global::Gtk.Entry (); + this.gamePixelWidthEntry.WidthRequest = 50; + this.gamePixelWidthEntry.CanFocus = true; + this.gamePixelWidthEntry.Name = "gamePixelWidthEntry"; + this.gamePixelWidthEntry.IsEditable = true; + this.gamePixelWidthEntry.InvisibleChar = '●'; + this.hbox2.Add (this.gamePixelWidthEntry); + global::Gtk.Box.BoxChild w7 = ((global::Gtk.Box.BoxChild)(this.hbox2 [this.gamePixelWidthEntry])); + w7.Position = 1; + w7.Expand = false; + w7.Fill = false; + this.vbox2.Add (this.hbox2); + global::Gtk.Box.BoxChild w8 = ((global::Gtk.Box.BoxChild)(this.vbox2 [this.hbox2])); + w8.Position = 1; + w8.Expand = false; + w8.Fill = false; + w1.Add (this.vbox2); + global::Gtk.Box.BoxChild w9 = ((global::Gtk.Box.BoxChild)(w1 [this.vbox2])); + w9.Position = 0; + // Internal child DesertPaintLab.ScreenCheckDialog.ActionArea + global::Gtk.HButtonBox w10 = this.ActionArea; + w10.Name = "dialog1_ActionArea"; + w10.Spacing = 10; + w10.BorderWidth = ((uint)(5)); + w10.LayoutStyle = ((global::Gtk.ButtonBoxStyle)(4)); + // Container child dialog1_ActionArea.Gtk.ButtonBox+ButtonBoxChild + this.buttonOk = new global::Gtk.Button (); + this.buttonOk.CanDefault = true; + this.buttonOk.CanFocus = true; + this.buttonOk.Name = "buttonOk"; + this.buttonOk.UseStock = true; + this.buttonOk.UseUnderline = true; + this.buttonOk.Label = "gtk-ok"; + this.AddActionWidget (this.buttonOk, -5); + global::Gtk.ButtonBox.ButtonBoxChild w11 = ((global::Gtk.ButtonBox.ButtonBoxChild)(w10 [this.buttonOk])); + w11.Expand = false; + w11.Fill = false; + if ((this.Child != null)) { + this.Child.ShowAll (); + } + this.DefaultWidth = 378; + this.DefaultHeight = 245; + this.Show (); + } + } +} diff --git a/gtk-gui/gui.stetic b/gtk-gui/gui.stetic --- a/gtk-gui/gui.stetic +++ b/gtk-gui/gui.stetic @@ -906,4 +906,151 @@ You can either import an existing Practi + + + Screen Check + CenterOnParent + True + 9 + 1 + False + + + + + + + 20 + 20 + + + + 20 + 10 + + + + Screen Resolution + + + 0 + True + False + False + + + + + + 50 + True + True + + + + 1 + True + + + + + + 50 + True + True + + + + 2 + True + + + + + 0 + True + False + False + + + + + + 20 + 10 + + + + Game Pixel Width in Screen Pixels + + + 0 + True + False + False + + + + + + 50 + True + True + + + + 1 + False + False + False + + + + + + + + 1 + True + False + False + + + + + + + + 0 + True + + + + + + + + 10 + 5 + 1 + End + + + + True + True + True + StockItem + gtk-ok + -5 + gtk-ok + + + False + False + + + + + \ No newline at end of file