From 584611e67ec91d2e97a7e0b3ad7c62c855ab8ddc Mon Sep 17 00:00:00 2001 From: STAM Date: Sat, 26 Mar 2022 02:44:16 +0500 Subject: [PATCH] prepare for firsl logic in code --- .gitignore | 7 +- src/Properties/Resources.Designer.cs | 90 ++++++ src/Properties/Resources.resx | 27 ++ src/Resources/about.png | Bin 0 -> 289 bytes src/Resources/arrows.png | Bin 0 -> 449 bytes src/Resources/cancel.png | Bin 0 -> 292 bytes src/Resources/check.png | Bin 0 -> 350 bytes src/Resources/done.png | Bin 0 -> 317 bytes src/Resources/power-on.png | Bin 0 -> 705 bytes src/Resources/refresh16.png | Bin 0 -> 652 bytes src/Resources/remove.png | Bin 0 -> 350 bytes src/Resources/wait.png | Bin 0 -> 14706 bytes src/UI/FormMain.Designer.cs | 452 ++++++++++++++++++++++++++- src/UI/FormMain.cs | 44 +++ src/UI/FormMain.resx | 6 + 15 files changed, 621 insertions(+), 5 deletions(-) create mode 100644 src/Resources/about.png create mode 100644 src/Resources/arrows.png create mode 100644 src/Resources/cancel.png create mode 100644 src/Resources/check.png create mode 100644 src/Resources/done.png create mode 100644 src/Resources/power-on.png create mode 100644 src/Resources/refresh16.png create mode 100644 src/Resources/remove.png create mode 100644 src/Resources/wait.png diff --git a/.gitignore b/.gitignore index 8cdbcea..a73da84 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,6 @@ ## Ignore Visual Studio temporary files, build results, and ## files generated by popular Visual Studio add-ons. -jfr/ -bin.7z -jfr.7z + # User-specific files *.suo *.user @@ -162,4 +160,5 @@ $RECYCLE.BIN/ #DreamViewer _notes/ dwsync.xml -src/.vs/ +.vs/* +*/.vs/* diff --git a/src/Properties/Resources.Designer.cs b/src/Properties/Resources.Designer.cs index 96ab9b2..fbffb62 100644 --- a/src/Properties/Resources.Designer.cs +++ b/src/Properties/Resources.Designer.cs @@ -60,6 +60,46 @@ namespace SourceSDK.ENV.Editor.Properties { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap about { + get { + object obj = ResourceManager.GetObject("about", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap arrows { + get { + object obj = ResourceManager.GetObject("arrows", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap cancel { + get { + object obj = ResourceManager.GetObject("cancel", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap check { + get { + object obj = ResourceManager.GetObject("check", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// @@ -79,5 +119,55 @@ namespace SourceSDK.ENV.Editor.Properties { return ((System.Drawing.Bitmap)(obj)); } } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap done { + get { + object obj = ResourceManager.GetObject("done", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap power_on { + get { + object obj = ResourceManager.GetObject("power_on", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap refresh16 { + get { + object obj = ResourceManager.GetObject("refresh16", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap remove { + get { + object obj = ResourceManager.GetObject("remove", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap wait { + get { + object obj = ResourceManager.GetObject("wait", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } } } diff --git a/src/Properties/Resources.resx b/src/Properties/Resources.resx index 96af20e..55ae18e 100644 --- a/src/Properties/Resources.resx +++ b/src/Properties/Resources.resx @@ -118,10 +118,37 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + ..\Resources\about.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\arrows.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\cancel.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\check.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + ..\Resources\crowbar.64.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\Resources\crowbar512.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\done.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\power-on.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\refresh16.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\remove.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\wait.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + \ No newline at end of file diff --git a/src/Resources/about.png b/src/Resources/about.png new file mode 100644 index 0000000000000000000000000000000000000000..33ad090980bbab3e5765cd3a2c92031b5d2815c1 GIT binary patch literal 289 zcmV++0p9+JP)!*(luit)VxN-Ld!|&g}!D8Qkaf8K)GvMPV zhATf986I#6!NoqYF$2YK6YGLc3{SZP7(O#IF#P=w!5+pP3{^1PjI3*!ofW69mD|N>ES{I}4-#A^*U_k0ParTxnrxZ)anr z_6o*I1n(|)I~FGAdERM!U}5Loop)wfRw%HYoq!;i#kpaAL$ywx-%Fb200Llfyab#B z6Tc>Z@q+5Q93EatQTg#7$t4+iKBa`=Ojq(NPy^}}3?h7gT4}e3I+Dnl93QU(mleAR z^;>AxEOyPFiv}!UwhiRn2TC;rKu%6h5n1alFvy^ebMrVi-dSch0CIG6fyjP&(H~%- zzz8tbQCh8c;O%oD3;r?~LiPIl5V8n7+3xNNaPZd%y|i&Iv%S3yL~6i*4n)c)4SNhc zJnt5>AI?6W*TlKc$ZX5vI0BX{cGgfDjRznrgi&C%PY3;YW^(dDB~5cwH@Zx!kfFLM rNz#&1u_W=yvbjp%Ig0KiNm>9Oxua{h$sm(b00000NkvXXu0mjfdZ@MT literal 0 HcmV?d00001 diff --git a/src/Resources/cancel.png b/src/Resources/cancel.png new file mode 100644 index 0000000000000000000000000000000000000000..892924afba0de3c0710757310737a14af1f64db7 GIT binary patch literal 292 zcmV+<0o(qGP)Rp2*WFT-|2xxL`F^g2rvL@^kNla_TfGN00002?- zNDyXRHFsqjkRe&(8c`CQpH@mmtT}V`<;yxP|XWXS^#behMCo${(|33#VRBUQ} zc>R97#;eE+yblr{C3sxvNq><3IQ_=&3i+;Q>-X*wL+s`8=B*qi0?|XcuK&>@|dSZG z)W0+?W?NPRZ06IA*_HyIWIGr`*dJHT9oWe72}+Rxlm|dSSKl8ga2J5 z8^QY^DDf5xOg=SUAdZILzd@-RFwIqs6F6PY?ME2LlXaUjVD?FdM{{xKmKK5}s|L^xkpN2c?a(n)99czBBXXj8G9r zU7Zos?FWqk%>{THbVV&)s84+OR$ec~M0;9m(kG!w6$SxQDO?Cg(B~II=?Aj3nJo!u zPisvo8+rpoO$1ghxH-%6o1UntchOPg5(aC91aQY1@*AA5Kl2?VkG;@Ew0BpAwL z4gR9Qo%F760>B(~bw)(F2O$0+-r1K}kv4D~uq^O+z;Uo5ZFpy1ltfe+I*fLNP2RBl z%=YL*G?gMV+K(O{l={_!eKKPMXeNU_JYIw?5s4enE&vGx@!X7(otuJ_<7)ekGi2wU z;kgw<{DC6cZ3G$tOmho};B0(4v;6C4oG)ePjgMd%OjAq2Wtuz+dhR84OKC3gimE$> zGKw1D4}iP%6I8J-U#)JxIP{fva9!MATLn754d^m}?(dR&zlJ?H0yVYO>{>7OzzDf_ zE9m}SafF0XOBVnKAUpjC@zvp-n#XFt4#t2nSl4dgeL4@dUa~WfOO`0IC;+Kg$Fw5% z0i?bGdw3kr?HCvlHiI#^ zTR+N(0J7rS%iWb^^7L$(dc$^l*EgZc5McesM+aoax0ib;$>eF?hKe|hc7#PF4s?s; n*IAWqgoGlC^{eaO%j^FEl%du~06Us300000NkvXXu0mjf74)TG#7z)~7F2W+`~h+E zZxAaw8LCcFMTrEBMd7ziZ@E?fLz1m6_?Dx!q_jvu*KQ*elgYaJZ`)put zif{teQC%7eKO#VX`%Qg3d$wnQH|t+gkr`kh=5%T3kJ_lNF%@~y zWe!m4i8&o?O0Ipn+nfY=HGf#psici5$?oI zmM@eRfl4wD^sB@#+s+7p5fDK~BKo6$&RwAg8s+{PDQf}fn2dli3JSC%O}3XgY=G^W zo>j0W>ir?2y*;&W`+EiKt~SpQnDEb~J8NMMAfoSMQIJYiW%BP0l}VhSm3f{JjxHnt zfs>jBK1V%|y9evc-{b;MN-L)L>|~9h=vy(6x!B+4@O@w}eX@qp6yOLc2?- zNDyXRHFsqjkRe&(8c`CQpH@mmtT}V`<;yxP|cOiD4$s z%8F-J&#<0k@+$X8Pb1gQ5+-5KOKXnSx6JRF%aqu#Dp-N1K~!Ph_sQw39q%9K^{-H< zsnp^q-0rTu45;`-}`#`x#lT$}am{({yir{ptzf z*SJG2RLz|m=JEQ)*;m#MHS$*__srE@;Wz(x;`E=*DraY%bgL(Vg8(Mv-iph p{W1?i6y&WFlobA{_XyZB9A@;MYqj#lTA()>JYD@<);T3K0RUachZ6t* literal 0 HcmV?d00001 diff --git a/src/Resources/wait.png b/src/Resources/wait.png new file mode 100644 index 0000000000000000000000000000000000000000..1e14093a2ffa1070e8663613ab015e7c217b3de6 GIT binary patch literal 14706 zcmeI3Z)_7~9LJxDSzwMZMFfdtM^Ph4dw2b_tw&oN>vT&f%rT|o6}P*m+qw4cxVzGB ziE#>VZ9WN|zTib>ZT0S_C946l#?t5t~`Ru%LM8l<7$&s`|Dj+G0hCB*kYL=5+co4KGMhIk>wiy^-ll!T}xM!53JmuMqV z%u+MbaPs+bIr3lJH{m#@#PfwhAy5bf3~QVhqtPfY1o>dlPZWN8N_XU;XhCXw`a149GXi~D$-Lx>7lT@lwyWx0qxrU`}r++^|P)6F&X^%{qm>0!Dk1xBCP+g-(^M%Vi(_F`QT!oU2>QFb!x?{1B!vAv zp=d;m%Hi&aD0>i7DQI7mI%z0*ccYY3tM`~1*cYYVX=&t;le0kMj{aUtG)S|k)PQD_ zr8xzbELphTF}4fut8HEA$ZFnkWXhI}-OU#FE$p_+`BgcdT#vVDC0TI~vV`L91+2#S zn%3&DD$cS^`@a)d$`9<#YZNB1ezy%(O694VC$Wu;Q;;p(J5JUFWt*20);j7l$9VV5 z&uX=EP-?B6nuW!>cq(J=Q6`aPK!zlH_{A8%sI6MLq))rknaz9p?w~+kyy$+Gt+2b^ zI(m02?5?*~oiFK{lL(fp)inc`d)}5#gk9v;04KU4kx(SY*EiQYhO{Eirjr`ky0*I@ z#jdiazN4XWw3!ifl#QjS0zcy3OqN>7Edsea;VZW%wUb=g1NS+oUeSF{4AZe9kOnno zxTuJrfZ>8Ps4>GuMFa&57oj3(}y*3>Os<6fj(n1~q25sED9|;es@%F~dbg1O*Hiq(O}t zE-E4@V7MR+YRqs^5kUdN1!+)YhKq^_3K%X(gBmkjR76m~a6uZ>nBk%#f&zvM(xAo+ z7Zni{FkFxZHDIYL5&$MDk3OgxF8K`d{s@ zikCmSG?#mzw`1nYYZ>vxhHXA`<-s$1=h}}PYq=Wkef+#X-Ld}SgKsVAEEdkU{BZo- z+&dS>ePys>9r;nuXW^7fafwoh()`sUdKx7R)L-0Y!ac`-VXn*Ff7{oG%%?dyJQ`QY-=&8NT18OD`; lJ+Gd{t@Agx+-XO@Z|vWBYsKqtyH7<9_U}l3ylw9r{{jWw{mlRX literal 0 HcmV?d00001 diff --git a/src/UI/FormMain.Designer.cs b/src/UI/FormMain.Designer.cs index ffb49dc..50f16a8 100644 --- a/src/UI/FormMain.Designer.cs +++ b/src/UI/FormMain.Designer.cs @@ -28,23 +28,473 @@ /// private void InitializeComponent() { + this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormMain)); + this.menuStrip = new System.Windows.Forms.MenuStrip(); + this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.refreshToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.groupBoxVMod = new System.Windows.Forms.GroupBox(); + this.buttonResetVMod = new System.Windows.Forms.Button(); + this.buttonApplyVMod = new System.Windows.Forms.Button(); + this.textBoxVMod = new System.Windows.Forms.TextBox(); + this.pictureBoxVMod = new System.Windows.Forms.PictureBox(); + this.groupBoxVProject = new System.Windows.Forms.GroupBox(); + this.buttonBrowseVProject = new System.Windows.Forms.Button(); + this.buttonResetVProject = new System.Windows.Forms.Button(); + this.buttonApplyVProject = new System.Windows.Forms.Button(); + this.textBoxVProject = new System.Windows.Forms.TextBox(); + this.pictureBoxVProject = new System.Windows.Forms.PictureBox(); + this.groupBoxVGame = new System.Windows.Forms.GroupBox(); + this.buttonBrowseVGame = new System.Windows.Forms.Button(); + this.buttonResetVGame = new System.Windows.Forms.Button(); + this.buttonApplyVGame = new System.Windows.Forms.Button(); + this.textBoxVGame = new System.Windows.Forms.TextBox(); + this.pictureBoxVGame = new System.Windows.Forms.PictureBox(); + this.groupBoxVContent = new System.Windows.Forms.GroupBox(); + this.buttonBrowseVContent = new System.Windows.Forms.Button(); + this.buttonResetVContent = new System.Windows.Forms.Button(); + this.buttonApplyVContent = new System.Windows.Forms.Button(); + this.textBoxVContent = new System.Windows.Forms.TextBox(); + this.pictureBoxVContent = new System.Windows.Forms.PictureBox(); + this.groupBox5 = new System.Windows.Forms.GroupBox(); + this.buttonBrowseVTools = new System.Windows.Forms.Button(); + this.buttonResetVTools = new System.Windows.Forms.Button(); + this.buttonApplyVTools = new System.Windows.Forms.Button(); + this.textBoxVTools = new System.Windows.Forms.TextBox(); + this.pictureBoxVTools = new System.Windows.Forms.PictureBox(); + this.toolTip = new System.Windows.Forms.ToolTip(this.components); + this.menuStrip.SuspendLayout(); + this.groupBoxVMod.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxVMod)).BeginInit(); + this.groupBoxVProject.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxVProject)).BeginInit(); + this.groupBoxVGame.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxVGame)).BeginInit(); + this.groupBoxVContent.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxVContent)).BeginInit(); + this.groupBox5.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxVTools)).BeginInit(); this.SuspendLayout(); // + // menuStrip + // + this.menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.fileToolStripMenuItem, + this.helpToolStripMenuItem}); + this.menuStrip.Location = new System.Drawing.Point(0, 0); + this.menuStrip.Name = "menuStrip"; + this.menuStrip.Size = new System.Drawing.Size(653, 24); + this.menuStrip.TabIndex = 0; + this.menuStrip.Text = "menuStrip1"; + // + // fileToolStripMenuItem + // + this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.refreshToolStripMenuItem, + this.exitToolStripMenuItem}); + this.fileToolStripMenuItem.Name = "fileToolStripMenuItem"; + this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20); + this.fileToolStripMenuItem.Text = "File"; + // + // refreshToolStripMenuItem + // + this.refreshToolStripMenuItem.Image = global::SourceSDK.ENV.Editor.Properties.Resources.refresh16; + this.refreshToolStripMenuItem.Name = "refreshToolStripMenuItem"; + this.refreshToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.refreshToolStripMenuItem.Text = "Refresh"; + this.refreshToolStripMenuItem.Click += new System.EventHandler(this.refreshToolStripMenuItem_Click); + // + // exitToolStripMenuItem + // + this.exitToolStripMenuItem.Image = global::SourceSDK.ENV.Editor.Properties.Resources.power_on; + this.exitToolStripMenuItem.Name = "exitToolStripMenuItem"; + this.exitToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.exitToolStripMenuItem.Text = "Exit"; + // + // helpToolStripMenuItem + // + this.helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.aboutToolStripMenuItem}); + this.helpToolStripMenuItem.Name = "helpToolStripMenuItem"; + this.helpToolStripMenuItem.Size = new System.Drawing.Size(44, 20); + this.helpToolStripMenuItem.Text = "Help"; + // + // aboutToolStripMenuItem + // + this.aboutToolStripMenuItem.Image = global::SourceSDK.ENV.Editor.Properties.Resources.about; + this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem"; + this.aboutToolStripMenuItem.Size = new System.Drawing.Size(107, 22); + this.aboutToolStripMenuItem.Text = "About"; + // + // groupBoxVMod + // + this.groupBoxVMod.Controls.Add(this.buttonResetVMod); + this.groupBoxVMod.Controls.Add(this.buttonApplyVMod); + this.groupBoxVMod.Controls.Add(this.textBoxVMod); + this.groupBoxVMod.Controls.Add(this.pictureBoxVMod); + this.groupBoxVMod.Location = new System.Drawing.Point(12, 27); + this.groupBoxVMod.Name = "groupBoxVMod"; + this.groupBoxVMod.Size = new System.Drawing.Size(629, 87); + this.groupBoxVMod.TabIndex = 1; + this.groupBoxVMod.TabStop = false; + this.groupBoxVMod.Text = "VMod (SSDK)"; + // + // buttonResetVMod + // + this.buttonResetVMod.Image = global::SourceSDK.ENV.Editor.Properties.Resources.remove; + this.buttonResetVMod.Location = new System.Drawing.Point(467, 51); + this.buttonResetVMod.Name = "buttonResetVMod"; + this.buttonResetVMod.Size = new System.Drawing.Size(75, 23); + this.buttonResetVMod.TabIndex = 2; + this.buttonResetVMod.UseVisualStyleBackColor = true; + // + // buttonApplyVMod + // + this.buttonApplyVMod.Image = global::SourceSDK.ENV.Editor.Properties.Resources.check; + this.buttonApplyVMod.Location = new System.Drawing.Point(548, 51); + this.buttonApplyVMod.Name = "buttonApplyVMod"; + this.buttonApplyVMod.Size = new System.Drawing.Size(75, 23); + this.buttonApplyVMod.TabIndex = 2; + this.toolTip.SetToolTip(this.buttonApplyVMod, "asdss"); + this.buttonApplyVMod.UseVisualStyleBackColor = true; + // + // textBoxVMod + // + this.textBoxVMod.Location = new System.Drawing.Point(28, 22); + this.textBoxVMod.Name = "textBoxVMod"; + this.textBoxVMod.PlaceholderText = "MyMod"; + this.textBoxVMod.Size = new System.Drawing.Size(595, 23); + this.textBoxVMod.TabIndex = 1; + // + // pictureBoxVMod + // + this.pictureBoxVMod.Image = global::SourceSDK.ENV.Editor.Properties.Resources.cancel; + this.pictureBoxVMod.Location = new System.Drawing.Point(6, 26); + this.pictureBoxVMod.Name = "pictureBoxVMod"; + this.pictureBoxVMod.Size = new System.Drawing.Size(16, 16); + this.pictureBoxVMod.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; + this.pictureBoxVMod.TabIndex = 0; + this.pictureBoxVMod.TabStop = false; + // + // groupBoxVProject + // + this.groupBoxVProject.Controls.Add(this.buttonBrowseVProject); + this.groupBoxVProject.Controls.Add(this.buttonResetVProject); + this.groupBoxVProject.Controls.Add(this.buttonApplyVProject); + this.groupBoxVProject.Controls.Add(this.textBoxVProject); + this.groupBoxVProject.Controls.Add(this.pictureBoxVProject); + this.groupBoxVProject.Location = new System.Drawing.Point(12, 120); + this.groupBoxVProject.Name = "groupBoxVProject"; + this.groupBoxVProject.Size = new System.Drawing.Size(629, 87); + this.groupBoxVProject.TabIndex = 1; + this.groupBoxVProject.TabStop = false; + this.groupBoxVProject.Text = "VProject (SSDK)"; + // + // buttonBrowseVProject + // + this.buttonBrowseVProject.Location = new System.Drawing.Point(548, 22); + this.buttonBrowseVProject.Name = "buttonBrowseVProject"; + this.buttonBrowseVProject.Size = new System.Drawing.Size(75, 23); + this.buttonBrowseVProject.TabIndex = 3; + this.buttonBrowseVProject.Text = "..."; + this.buttonBrowseVProject.UseVisualStyleBackColor = true; + // + // buttonResetVProject + // + this.buttonResetVProject.Image = global::SourceSDK.ENV.Editor.Properties.Resources.remove; + this.buttonResetVProject.Location = new System.Drawing.Point(467, 51); + this.buttonResetVProject.Name = "buttonResetVProject"; + this.buttonResetVProject.Size = new System.Drawing.Size(75, 23); + this.buttonResetVProject.TabIndex = 2; + this.buttonResetVProject.UseVisualStyleBackColor = true; + // + // buttonApplyVProject + // + this.buttonApplyVProject.Image = global::SourceSDK.ENV.Editor.Properties.Resources.check; + this.buttonApplyVProject.Location = new System.Drawing.Point(548, 51); + this.buttonApplyVProject.Name = "buttonApplyVProject"; + this.buttonApplyVProject.Size = new System.Drawing.Size(75, 23); + this.buttonApplyVProject.TabIndex = 2; + this.buttonApplyVProject.UseVisualStyleBackColor = true; + // + // textBoxVProject + // + this.textBoxVProject.Location = new System.Drawing.Point(28, 22); + this.textBoxVProject.Name = "textBoxVProject"; + this.textBoxVProject.PlaceholderText = "C:\\Program Files\\Steam\\steamapps\\sourcemods\\MyMod"; + this.textBoxVProject.Size = new System.Drawing.Size(514, 23); + this.textBoxVProject.TabIndex = 1; + // + // pictureBoxVProject + // + this.pictureBoxVProject.Image = global::SourceSDK.ENV.Editor.Properties.Resources.cancel; + this.pictureBoxVProject.Location = new System.Drawing.Point(6, 26); + this.pictureBoxVProject.Name = "pictureBoxVProject"; + this.pictureBoxVProject.Size = new System.Drawing.Size(16, 16); + this.pictureBoxVProject.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; + this.pictureBoxVProject.TabIndex = 0; + this.pictureBoxVProject.TabStop = false; + // + // groupBoxVGame + // + this.groupBoxVGame.Controls.Add(this.buttonBrowseVGame); + this.groupBoxVGame.Controls.Add(this.buttonResetVGame); + this.groupBoxVGame.Controls.Add(this.buttonApplyVGame); + this.groupBoxVGame.Controls.Add(this.textBoxVGame); + this.groupBoxVGame.Controls.Add(this.pictureBoxVGame); + this.groupBoxVGame.Location = new System.Drawing.Point(12, 213); + this.groupBoxVGame.Name = "groupBoxVGame"; + this.groupBoxVGame.Size = new System.Drawing.Size(629, 87); + this.groupBoxVGame.TabIndex = 1; + this.groupBoxVGame.TabStop = false; + this.groupBoxVGame.Text = "VGame (SFM)"; + // + // buttonBrowseVGame + // + this.buttonBrowseVGame.Location = new System.Drawing.Point(548, 22); + this.buttonBrowseVGame.Name = "buttonBrowseVGame"; + this.buttonBrowseVGame.Size = new System.Drawing.Size(75, 23); + this.buttonBrowseVGame.TabIndex = 3; + this.buttonBrowseVGame.Text = "..."; + this.buttonBrowseVGame.UseVisualStyleBackColor = true; + // + // buttonResetVGame + // + this.buttonResetVGame.Image = global::SourceSDK.ENV.Editor.Properties.Resources.remove; + this.buttonResetVGame.Location = new System.Drawing.Point(467, 51); + this.buttonResetVGame.Name = "buttonResetVGame"; + this.buttonResetVGame.Size = new System.Drawing.Size(75, 23); + this.buttonResetVGame.TabIndex = 2; + this.buttonResetVGame.UseVisualStyleBackColor = true; + // + // buttonApplyVGame + // + this.buttonApplyVGame.Image = global::SourceSDK.ENV.Editor.Properties.Resources.check; + this.buttonApplyVGame.Location = new System.Drawing.Point(548, 51); + this.buttonApplyVGame.Name = "buttonApplyVGame"; + this.buttonApplyVGame.Size = new System.Drawing.Size(75, 23); + this.buttonApplyVGame.TabIndex = 2; + this.buttonApplyVGame.UseVisualStyleBackColor = true; + // + // textBoxVGame + // + this.textBoxVGame.Location = new System.Drawing.Point(28, 22); + this.textBoxVGame.Name = "textBoxVGame"; + this.textBoxVGame.PlaceholderText = "C:\\Program Files\\Steam\\steamapps\\common\\SourceFilmmaker\\game"; + this.textBoxVGame.Size = new System.Drawing.Size(514, 23); + this.textBoxVGame.TabIndex = 1; + // + // pictureBoxVGame + // + this.pictureBoxVGame.Image = global::SourceSDK.ENV.Editor.Properties.Resources.cancel; + this.pictureBoxVGame.Location = new System.Drawing.Point(6, 26); + this.pictureBoxVGame.Name = "pictureBoxVGame"; + this.pictureBoxVGame.Size = new System.Drawing.Size(16, 16); + this.pictureBoxVGame.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; + this.pictureBoxVGame.TabIndex = 0; + this.pictureBoxVGame.TabStop = false; + // + // groupBoxVContent + // + this.groupBoxVContent.Controls.Add(this.buttonBrowseVContent); + this.groupBoxVContent.Controls.Add(this.buttonResetVContent); + this.groupBoxVContent.Controls.Add(this.buttonApplyVContent); + this.groupBoxVContent.Controls.Add(this.textBoxVContent); + this.groupBoxVContent.Controls.Add(this.pictureBoxVContent); + this.groupBoxVContent.Location = new System.Drawing.Point(12, 306); + this.groupBoxVContent.Name = "groupBoxVContent"; + this.groupBoxVContent.Size = new System.Drawing.Size(629, 87); + this.groupBoxVContent.TabIndex = 1; + this.groupBoxVContent.TabStop = false; + this.groupBoxVContent.Text = "VContent (SFM)"; + // + // buttonBrowseVContent + // + this.buttonBrowseVContent.Location = new System.Drawing.Point(548, 22); + this.buttonBrowseVContent.Name = "buttonBrowseVContent"; + this.buttonBrowseVContent.Size = new System.Drawing.Size(75, 23); + this.buttonBrowseVContent.TabIndex = 3; + this.buttonBrowseVContent.Text = "..."; + this.buttonBrowseVContent.UseVisualStyleBackColor = true; + // + // buttonResetVContent + // + this.buttonResetVContent.Image = global::SourceSDK.ENV.Editor.Properties.Resources.remove; + this.buttonResetVContent.Location = new System.Drawing.Point(467, 51); + this.buttonResetVContent.Name = "buttonResetVContent"; + this.buttonResetVContent.Size = new System.Drawing.Size(75, 23); + this.buttonResetVContent.TabIndex = 2; + this.buttonResetVContent.UseVisualStyleBackColor = true; + // + // buttonApplyVContent + // + this.buttonApplyVContent.Image = global::SourceSDK.ENV.Editor.Properties.Resources.check; + this.buttonApplyVContent.Location = new System.Drawing.Point(548, 51); + this.buttonApplyVContent.Name = "buttonApplyVContent"; + this.buttonApplyVContent.Size = new System.Drawing.Size(75, 23); + this.buttonApplyVContent.TabIndex = 2; + this.buttonApplyVContent.UseVisualStyleBackColor = true; + // + // textBoxVContent + // + this.textBoxVContent.Location = new System.Drawing.Point(28, 22); + this.textBoxVContent.Name = "textBoxVContent"; + this.textBoxVContent.PlaceholderText = "C:\\Program Files\\Steam\\steamapps\\common\\SourceFilmmaker\\content"; + this.textBoxVContent.Size = new System.Drawing.Size(514, 23); + this.textBoxVContent.TabIndex = 1; + // + // pictureBoxVContent + // + this.pictureBoxVContent.Image = global::SourceSDK.ENV.Editor.Properties.Resources.cancel; + this.pictureBoxVContent.Location = new System.Drawing.Point(6, 26); + this.pictureBoxVContent.Name = "pictureBoxVContent"; + this.pictureBoxVContent.Size = new System.Drawing.Size(16, 16); + this.pictureBoxVContent.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; + this.pictureBoxVContent.TabIndex = 0; + this.pictureBoxVContent.TabStop = false; + // + // groupBox5 + // + this.groupBox5.Controls.Add(this.buttonBrowseVTools); + this.groupBox5.Controls.Add(this.buttonResetVTools); + this.groupBox5.Controls.Add(this.buttonApplyVTools); + this.groupBox5.Controls.Add(this.textBoxVTools); + this.groupBox5.Controls.Add(this.pictureBoxVTools); + this.groupBox5.Location = new System.Drawing.Point(12, 399); + this.groupBox5.Name = "groupBox5"; + this.groupBox5.Size = new System.Drawing.Size(629, 87); + this.groupBox5.TabIndex = 1; + this.groupBox5.TabStop = false; + this.groupBox5.Text = "VTools (SFM)"; + // + // buttonBrowseVTools + // + this.buttonBrowseVTools.Location = new System.Drawing.Point(548, 22); + this.buttonBrowseVTools.Name = "buttonBrowseVTools"; + this.buttonBrowseVTools.Size = new System.Drawing.Size(75, 23); + this.buttonBrowseVTools.TabIndex = 3; + this.buttonBrowseVTools.Text = "..."; + this.buttonBrowseVTools.UseVisualStyleBackColor = true; + // + // buttonResetVTools + // + this.buttonResetVTools.Image = global::SourceSDK.ENV.Editor.Properties.Resources.remove; + this.buttonResetVTools.Location = new System.Drawing.Point(467, 51); + this.buttonResetVTools.Name = "buttonResetVTools"; + this.buttonResetVTools.Size = new System.Drawing.Size(75, 23); + this.buttonResetVTools.TabIndex = 2; + this.buttonResetVTools.UseVisualStyleBackColor = true; + // + // buttonApplyVTools + // + this.buttonApplyVTools.Image = global::SourceSDK.ENV.Editor.Properties.Resources.check; + this.buttonApplyVTools.Location = new System.Drawing.Point(548, 51); + this.buttonApplyVTools.Name = "buttonApplyVTools"; + this.buttonApplyVTools.Size = new System.Drawing.Size(75, 23); + this.buttonApplyVTools.TabIndex = 2; + this.buttonApplyVTools.UseVisualStyleBackColor = true; + // + // textBoxVTools + // + this.textBoxVTools.Location = new System.Drawing.Point(28, 22); + this.textBoxVTools.Name = "textBoxVTools"; + this.textBoxVTools.PlaceholderText = "C:\\Program Files\\Steam\\steamapps\\common\\SourceFilmmaker\\game\\sdktools"; + this.textBoxVTools.Size = new System.Drawing.Size(514, 23); + this.textBoxVTools.TabIndex = 1; + // + // pictureBoxVTools + // + this.pictureBoxVTools.Image = global::SourceSDK.ENV.Editor.Properties.Resources.cancel; + this.pictureBoxVTools.Location = new System.Drawing.Point(6, 26); + this.pictureBoxVTools.Name = "pictureBoxVTools"; + this.pictureBoxVTools.Size = new System.Drawing.Size(16, 16); + this.pictureBoxVTools.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize; + this.pictureBoxVTools.TabIndex = 0; + this.pictureBoxVTools.TabStop = false; + // // FormMain // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(700, 338); + this.ClientSize = new System.Drawing.Size(653, 502); + this.Controls.Add(this.groupBox5); + this.Controls.Add(this.groupBoxVContent); + this.Controls.Add(this.groupBoxVGame); + this.Controls.Add(this.groupBoxVProject); + this.Controls.Add(this.groupBoxVMod); + this.Controls.Add(this.menuStrip); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.MainMenuStrip = this.menuStrip; this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.MaximizeBox = false; this.Name = "FormMain"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "FormMain"; + this.toolTip.SetToolTip(this, "asd"); + this.Load += new System.EventHandler(this.FormMain_Load); + this.menuStrip.ResumeLayout(false); + this.menuStrip.PerformLayout(); + this.groupBoxVMod.ResumeLayout(false); + this.groupBoxVMod.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxVMod)).EndInit(); + this.groupBoxVProject.ResumeLayout(false); + this.groupBoxVProject.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxVProject)).EndInit(); + this.groupBoxVGame.ResumeLayout(false); + this.groupBoxVGame.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxVGame)).EndInit(); + this.groupBoxVContent.ResumeLayout(false); + this.groupBoxVContent.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxVContent)).EndInit(); + this.groupBox5.ResumeLayout(false); + this.groupBox5.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxVTools)).EndInit(); this.ResumeLayout(false); + this.PerformLayout(); } #endregion + + private MenuStrip menuStrip; + private ToolStripMenuItem fileToolStripMenuItem; + private ToolStripMenuItem helpToolStripMenuItem; + private ToolStripMenuItem aboutToolStripMenuItem; + private ToolStripMenuItem refreshToolStripMenuItem; + private ToolStripMenuItem exitToolStripMenuItem; + private GroupBox groupBoxVMod; + private Button buttonResetVMod; + private Button buttonApplyVMod; + private TextBox textBoxVMod; + private PictureBox pictureBoxVMod; + private GroupBox groupBoxVProject; + private Button buttonBrowseVProject; + private Button buttonResetVProject; + private Button buttonApplyVProject; + private TextBox textBoxVProject; + private PictureBox pictureBoxVProject; + private GroupBox groupBoxVGame; + private Button buttonBrowseVGame; + private Button buttonResetVGame; + private Button buttonApplyVGame; + private TextBox textBoxVGame; + private PictureBox pictureBoxVGame; + private GroupBox groupBoxVContent; + private Button buttonBrowseVContent; + private Button buttonResetVContent; + private Button buttonApplyVContent; + private TextBox textBoxVContent; + private PictureBox pictureBoxVContent; + private GroupBox groupBox5; + private Button buttonBrowseVTools; + private Button buttonResetVTools; + private Button buttonApplyVTools; + private TextBox textBoxVTools; + private PictureBox pictureBoxVTools; + private ToolTip toolTip; } } \ No newline at end of file diff --git a/src/UI/FormMain.cs b/src/UI/FormMain.cs index 8aaf049..ed3bf04 100644 --- a/src/UI/FormMain.cs +++ b/src/UI/FormMain.cs @@ -14,7 +14,51 @@ namespace SourceSDK.ENV.Editor.UI { public FormMain() { + InitializeComponent(); + this.Text = String.Format("{0} ({1})", Application.ProductName, Application.ProductVersion); ; + } + + private void checkAll() + { + checkVMod(); + checkVProject(); + } + private void checkVMod() + { + var value = Environment.GetEnvironmentVariable("VMod", EnvironmentVariableTarget.User); + if (value == null) + { + pictureBoxVMod.Image = Properties.Resources.cancel; + } + else + { + textBoxVMod.Text = value; + pictureBoxVMod.Image = Properties.Resources.done; + } + } + private void checkVProject() + { + var value = Environment.GetEnvironmentVariable("VProject", EnvironmentVariableTarget.User); + if (value == null) + { + pictureBoxVProject.Image = Properties.Resources.cancel; + } + else + { + textBoxVProject.Text = value; + pictureBoxVProject.Image = Properties.Resources.done; + } + } + + private void FormMain_Load(object sender, EventArgs e) + { + checkAll(); + } + + private void refreshToolStripMenuItem_Click(object sender, EventArgs e) + { + checkAll(); } } } diff --git a/src/UI/FormMain.resx b/src/UI/FormMain.resx index 61d7f4d..7af488e 100644 --- a/src/UI/FormMain.resx +++ b/src/UI/FormMain.resx @@ -57,6 +57,12 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 17, 17 + + + 125, 17 +