- Timestamp:
- 2011-06-28 23:39:18 (12 years ago)
- Location:
- 2011/26/JuhoK/SFN
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
2011/26/JuhoK/SFN/SFN/SFN/Peli.cs
r2240 r2249 15 15 16 16 Image MenuBackround = LoadImage("MenuBackround"); 17 Label number, malli, moottori, renkaat ;17 Label number, malli, moottori, renkaat, moottorin_hinta, renkaiden_hinta; 18 18 19 19 public override void Begin() … … 22 22 autot.Add(new Auto("Model3", 3, 9, 1)); 23 23 autot.Add(new Auto("Model2", 2, 9, 3)); 24 25 //Korit[0] = 2;26 24 Keyboard.Listen(Key.Escape, ButtonState.Released, Exit, null); 27 25 Mouse.IsCursorVisible = true; … … 40 38 Add(quit_game); 41 39 42 //Load game button 40 //Load game button 43 41 PushButton load_game = new PushButton("Load game"); 44 42 //load_game.Clicked += new Action(load_game_Clicked); … … 92 90 //Next 93 91 PushButton nextid = new PushButton("-->"); 94 nextid.Position = new Vector(Level.Right + 80, Level.Top + 60);92 nextid.Position = new Vector(Level.Right * 1.15, Level.Top * 1.2); //Level.Right + 80, Level.Top + 60 95 93 nextid.Clicked += new Action(nextid_Clicked); 96 94 Add(nextid); … … 98 96 //Previous 99 97 PushButton previousid = new PushButton("<--"); 100 previousid.Position = new Vector(Level.Right - 80, Level.Top + 60);98 previousid.Position = new Vector(Level.Right * 0.85, Level.Top * 1.2); //Level.Right - 80, Level.Top + 60 101 99 previousid.Clicked += new Action(previousid_Clicked); 102 100 Add(previousid); 103 101 102 PushButton update_engine = new PushButton("Update engine"); 103 update_engine.Position = new Vector(Level.Right + 65, Level.Top - 20); 104 update_engine.Clicked += new Action(update_engine_Clicked); 105 Add(update_engine); 106 107 PushButton update_tiers = new PushButton("Update tiers"); 108 update_tiers.Position = new Vector(Level.Right + 65, Level.Top - 140); 109 update_tiers.Clicked += new Action(update_tiers_Clicked); 110 Add(update_tiers); 111 104 112 //Number 105 113 number = new Label((ID+1).ToString()+"/"+autot.Count.ToString()); 106 number.Position = new Vector(Level.Right, Level.Top + 60);114 number.Position = new Vector(Level.Right, Level.Top * 1.2); //Level.Right, Level.Top + 60 107 115 Add(number); 108 116 109 117 malli = new Label(autot[ID].korinnimi.ToString()); 110 malli.Position = new Vector(Level.Left, Level.Top + 60);118 malli.Position = new Vector(Level.Left, Level.Top * 1.2); //Level.Left, Level.Top + 60 111 119 Add(malli); 112 120 113 moottori = new Label("Moottori: " +autot[ID].moottori.ToString());114 moottori.Position = new Vector(Level.Left + 250, Level.Top + 60);121 moottori = new Label("Moottori: " + autot[ID].moottori.ToString()); 122 moottori.Position = new Vector(Level.Left + 250, Level.Top * 1.2); //Level.Left + 250, Level.Top * 1.2 115 123 Add(moottori); 116 124 117 125 renkaat = new Label("Renkaat: "+autot[ID].renkaat.ToString()); 118 renkaat.Position = new Vector(Level.Left + 500, Level.Top + 60);126 renkaat.Position = new Vector(Level.Left + 500, Level.Top * 1.2); //Level.Left + 500, Level.Top + 60 119 127 Add(renkaat); 128 129 moottorin_hinta = new Label("Hinta: " + (autot[ID].moottori * 100).ToString()); 130 moottorin_hinta.Position = new Vector(Level.Right + 65, Level.Top - 60); 131 Add(moottorin_hinta); 132 133 renkaiden_hinta = new Label("Hinta: " + (autot[ID].renkaat * 100).ToString()); 134 renkaiden_hinta.Position = new Vector(Level.Right + 65, Level.Top - 180); 135 Add(renkaiden_hinta); 136 } 137 138 void update_tiers_Clicked() 139 { 140 MessageDisplay.Add("Tiers updated."); 141 autot[ID].renkaat += 1; 142 UpdateHUD(); 143 } 144 145 void update_engine_Clicked() 146 { 147 MessageDisplay.Add("Engine updated."); 148 autot[ID].moottori += 1; 149 UpdateHUD(); 120 150 } 121 151 122 152 void previousid_Clicked() 123 153 { 124 ID = --ID % autot.Count; 154 //ID = --ID % autot.Count; 155 MessageDisplay.Add("You can't use this button, because it's are broken."); 125 156 UpdateHUD(); 126 157 } … … 138 169 renkaat.Text = "Renkaat: " + autot[ID].renkaat.ToString(); 139 170 number.Text = (ID + 1).ToString() + "/" + autot.Count.ToString(); 171 moottorin_hinta.Text = "Hinta: " + (autot[ID].moottori * 100).ToString(); 172 renkaiden_hinta.Text = "Hinta: " + (autot[ID].renkaat * 100).ToString(); 140 173 } 141 174 } -
2011/26/JuhoK/SFN/SFN/SFN/obj/x86/Debug/SFN.csproj.FileListAbsolute.txt
r2198 r2249 18 18 C:\MyTemp\JuhoK\SFN\SFN\SFN\obj\x86\Debug\SFN.pdb 19 19 C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\MenuBackround2.xnb 20 J:\Visual Studio\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\MenuBackround2.xnb 21 J:\Visual Studio\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\MenuBackround.xnb 22 J:\Visual Studio\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\SFN.exe 23 J:\Visual Studio\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\SFN.pdb 24 J:\Visual Studio\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Jypeli4.dll 25 J:\Visual Studio\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Jypeli4.xml 26 J:\Visual Studio\MyTemp\JuhoK\SFN\SFN\SFN\obj\x86\Debug\ResolveAssemblyReference.cache 27 J:\Visual Studio\MyTemp\JuhoK\SFN\SFN\SFN\obj\x86\Debug\Microsoft.Xna.Framework.RuntimeProfile.txt 28 J:\Visual Studio\MyTemp\JuhoK\SFN\SFN\SFN\obj\x86\Debug\SFN.exe 29 J:\Visual Studio\MyTemp\JuhoK\SFN\SFN\SFN\obj\x86\Debug\SFN.pdb -
2011/26/JuhoK/SFN/SFN/SFNContent/obj/x86/Debug/ContentPipeline.xml
r2198 r2249 8 8 <Processor>TextureProcessor</Processor> 9 9 <Options>None</Options> 10 <Output> C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\MenuBackround2.xnb</Output>11 <Time>2011-06-2 8T10:09:57.8381342+03:00</Time>10 <Output>J:\Visual Studio\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\MenuBackround2.xnb</Output> 11 <Time>2011-06-27T19:39:36+03:00</Time> 12 12 </Item> 13 13 <Item> … … 17 17 <Processor>TextureProcessor</Processor> 18 18 <Options>None</Options> 19 <Output> C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\MenuBackround.xnb</Output>20 <Time>2011-06-28T1 0:27:54.1975092+03:00</Time>19 <Output>J:\Visual Studio\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\MenuBackround.xnb</Output> 20 <Time>2011-06-28T17:01:04+03:00</Time> 21 21 </Item> 22 22 <BuildSuccessful>true</BuildSuccessful> … … 26 26 <BuildConfiguration>Debug</BuildConfiguration> 27 27 <CompressContent>false</CompressContent> 28 <RootDirectory> C:\MyTemp\JuhoK\SFN\SFN\SFNContent\</RootDirectory>29 <LoggerRootDirectory> C:\MyTemp\JuhoK\SFN\SFN\SFN\</LoggerRootDirectory>30 <IntermediateDirectory> C:\MyTemp\JuhoK\SFN\SFN\SFNContent\obj\x86\Debug\</IntermediateDirectory>31 <OutputDirectory> C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\</OutputDirectory>28 <RootDirectory>J:\Visual Studio\MyTemp\JuhoK\SFN\SFN\SFNContent\</RootDirectory> 29 <LoggerRootDirectory>J:\Visual Studio\MyTemp\JuhoK\SFN\SFN\SFN\</LoggerRootDirectory> 30 <IntermediateDirectory>J:\Visual Studio\MyTemp\JuhoK\SFN\SFN\SFNContent\obj\x86\Debug\</IntermediateDirectory> 31 <OutputDirectory>J:\Visual Studio\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\</OutputDirectory> 32 32 </Settings> 33 33 <Assemblies> 34 34 <Assembly> 35 <Key>C:\Program Files \Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.XImporter.dll</Key>36 <Value>2010-08-23T1 3:41:18+03:00</Value>35 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.XImporter.dll</Key> 36 <Value>2010-08-23T12:41:18+03:00</Value> 37 37 </Assembly> 38 38 <Assembly> 39 <Key>C:\Program Files \Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.VideoImporters.dll</Key>40 <Value>2010-08-23T1 3:41:18+03:00</Value>39 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.VideoImporters.dll</Key> 40 <Value>2010-08-23T12:41:18+03:00</Value> 41 41 </Assembly> 42 42 <Assembly> 43 <Key>C:\Program Files \Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.TextureImporter.dll</Key>44 <Value>2010-08-23T1 3:41:18+03:00</Value>43 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.TextureImporter.dll</Key> 44 <Value>2010-08-23T12:41:18+03:00</Value> 45 45 </Assembly> 46 46 <Assembly> 47 <Key>C:\Program Files \Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.FBXImporter.dll</Key>48 <Value>2010-08-23T1 3:41:18+03:00</Value>47 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.FBXImporter.dll</Key> 48 <Value>2010-08-23T12:41:18+03:00</Value> 49 49 </Assembly> 50 50 <Assembly> 51 <Key>C:\Program Files \Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.EffectImporter.dll</Key>52 <Value>2010-08-23T1 3:41:18+03:00</Value>51 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.EffectImporter.dll</Key> 52 <Value>2010-08-23T12:41:18+03:00</Value> 53 53 </Assembly> 54 54 <Assembly> 55 <Key>C:\Program Files \Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.AudioImporters.dll</Key>56 <Value>2010-08-23T1 3:41:18+03:00</Value>55 <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.AudioImporters.dll</Key> 56 <Value>2010-08-23T12:41:18+03:00</Value> 57 57 </Assembly> 58 58 <Assembly> 59 <Key>C:\W INNT\Microsoft.Net\assembly\GAC_32\Microsoft.Xna.Framework.Content.Pipeline\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Content.Pipeline.dll</Key>60 <Value>201 0-12-30T13:08:47.7865068+02:00</Value>59 <Key>C:\Windows\Microsoft.Net\assembly\GAC_32\Microsoft.Xna.Framework.Content.Pipeline\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Content.Pipeline.dll</Key> 60 <Value>2011-06-27T18:29:19.4335733+03:00</Value> 61 61 </Assembly> 62 62 </Assemblies> -
2011/26/JuhoK/SFN/SFN/SFNContent/obj/x86/Debug/SFNContent.contentproj.FileListAbsolute.txt
r2198 r2249 1 1 C:\Users\Linus\Ohjelmointi\SFN2\SFN\SFN\SFNContent\obj\x86\Debug\ResolveAssemblyReference.cache 2 2 C:\MyTemp\JuhoK\SFN\SFN\SFNContent\obj\x86\Debug\ResolveAssemblyReference.cache 3 J:\Visual Studio\MyTemp\JuhoK\SFN\SFN\SFNContent\obj\x86\Debug\ResolveAssemblyReference.cache
Note: See TracChangeset
for help on using the changeset viewer.