- Timestamp:
- 2011-06-29 11:01:35 (12 years ago)
- Location:
- 2011/26/JuhoK/SFN
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
2011/26/JuhoK/SFN/SFN/SFN/Peli.cs
r2249 r2262 70 70 { 71 71 ClearAll(); 72 73 Label ylapalkki = new Label(Screen.Width, Screen.Height / 15); 74 ylapalkki.Color = Color.White; 75 ylapalkki.X = 0; 76 ylapalkki.Y = Screen.Top - (ylapalkki.Height / 2); 77 Add(ylapalkki); 78 79 Label alapalkki = new Label(Screen.Width, Screen.Height / 4); 80 alapalkki.Color = Color.White; 81 alapalkki.Position = new Vector(0, Screen.Bottom + (alapalkki.Height / 2)); 82 Add(alapalkki); 83 84 Label oikeareuna = new Label(Screen.Width / 6, Screen.Height); 85 oikeareuna.Color = Color.White; 86 oikeareuna.Position = new Vector(Screen.Right - oikeareuna.Width / 2, 0); 87 Add(oikeareuna); 88 72 89 Keyboard.Listen(Key.Escape, ButtonState.Released, Exit, null); 73 90 Camera.ZoomToLevel(); 74 91 Level.BackgroundColor = Color.LightGray; 75 92 76 GameObject alapalkki = new GameObject(Level.Width, Level.Height / 4);93 /*GameObject alapalkki = new GameObject(Level.Width, Level.Height / 4); 77 94 alapalkki.X = 0; 78 95 alapalkki.Y = Level.Bottom + alapalkki.Height / 2; 79 Add(alapalkki); 80 96 Add(alapalkki);*/ 97 /* 81 98 GameObject ylapalkki = new GameObject(Level.Width, Level.Height / 10); 82 99 ylapalkki.X = 0; 83 100 ylapalkki.Y = Level.Top - ylapalkki.Height / 2; 84 101 Add(ylapalkki); 85 86 GameObject oikeareuna = new GameObject(Level.Width / 6, Level.Height);102 */ 103 /*GameObject oikeareuna = new GameObject(Level.Width / 6, Level.Height); 87 104 oikeareuna.Position = new Vector(Level.Right - oikeareuna.Width / 2, 0); 88 Add(oikeareuna); 105 Add(oikeareuna);*/ 89 106 90 107 //Next 91 108 PushButton nextid = new PushButton("-->"); 92 nextid.Position = new Vector( Level.Right * 1.15, Level.Top * 1.2); //Level.Right + 80, Level.Top + 60109 nextid.Position = new Vector(Screen.Right * 0.9, ylapalkki.Y); //Level.Right + 80, Level.Top + 60 93 110 nextid.Clicked += new Action(nextid_Clicked); 94 111 Add(nextid); … … 96 113 //Previous 97 114 PushButton previousid = new PushButton("<--"); 98 previousid.Position = new Vector( Level.Right * 0.85, Level.Top * 1.2); //Level.Right - 80, Level.Top + 60115 previousid.Position = new Vector(Screen.Right * 0.65, ylapalkki.Y); //Level.Right - 80, Level.Top + 60 99 116 previousid.Clicked += new Action(previousid_Clicked); 100 117 Add(previousid); … … 112 129 //Number 113 130 number = new Label((ID+1).ToString()+"/"+autot.Count.ToString()); 114 number.Position = new Vector( Level.Right, Level.Top * 1.2); //Level.Right, Level.Top + 60131 number.Position = new Vector(Screen.Right * 0.78, ylapalkki.Y); //Level.Right, Level.Top + 60 115 132 Add(number); 116 133 117 134 malli = new Label(autot[ID].korinnimi.ToString()); 118 malli.Position = new Vector(Level.Left, Level.Top * 1.2); //Level.Left, Level.Top + 60135 malli.Position = new Vector(Level.Left, ylapalkki.Y); //Level.Left, Level.Top + 60 119 136 Add(malli); 120 137 121 138 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.2139 moottori.Position = new Vector(Level.Left + 250, ylapalkki.Y); //Level.Left + 250, Level.Top * 1.2 123 140 Add(moottori); 124 141 142 125 143 renkaat = new Label("Renkaat: "+autot[ID].renkaat.ToString()); 126 renkaat.Position = new Vector(Level.Left + 500, Level.Top * 1.2); //Level.Left + 500, Level.Top + 60 144 renkaat.Position = new Vector(0, ylapalkki.Y); 145 //renkaat.Y = ylapalkki.Y; 146 //ylapalkki.Y = 200 - ylapalkki.Height/2; 147 //renkaat.Position = //new Vector(ylapalkki.X, ylapalkki.Y); //Level.Left + 500, Level.Top + 60 127 148 Add(renkaat); 128 149 … … 134 155 renkaiden_hinta.Position = new Vector(Level.Right + 65, Level.Top - 180); 135 156 Add(renkaiden_hinta); 157 136 158 } 137 159 … … 152 174 void previousid_Clicked() 153 175 { 154 //ID = --ID % autot.Count; 155 MessageDisplay.Add("You can't use this button, because it's are broken."); 176 ID = (--ID + autot.Count) % autot.Count; 156 177 UpdateHUD(); 157 178 } -
2011/26/JuhoK/SFN/SFN/SFNContent/obj/x86/Debug/ContentPipeline.xml
r2249 r2262 8 8 <Processor>TextureProcessor</Processor> 9 9 <Options>None</Options> 10 <Output> J:\Visual Studio\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\MenuBackround2.xnb</Output>11 <Time>2011-06-2 7T19:39:36+03:00</Time>10 <Output>C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\MenuBackround2.xnb</Output> 11 <Time>2011-06-28T10:09:57.8381342+03:00</Time> 12 12 </Item> 13 13 <Item> … … 17 17 <Processor>TextureProcessor</Processor> 18 18 <Options>None</Options> 19 <Output> J:\Visual Studio\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\MenuBackround.xnb</Output>20 <Time>2011-06-28T1 7:01:04+03:00</Time>19 <Output>C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\MenuBackround.xnb</Output> 20 <Time>2011-06-28T10:27:54.1975092+03:00</Time> 21 21 </Item> 22 22 <BuildSuccessful>true</BuildSuccessful> … … 26 26 <BuildConfiguration>Debug</BuildConfiguration> 27 27 <CompressContent>false</CompressContent> 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>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> 32 32 </Settings> 33 33 <Assemblies> 34 34 <Assembly> 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-23T1 2:41:18+03:00</Value>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-23T13:41:18+03:00</Value> 37 37 </Assembly> 38 38 <Assembly> 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-23T1 2:41:18+03:00</Value>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-23T13:41:18+03:00</Value> 41 41 </Assembly> 42 42 <Assembly> 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-23T1 2:41:18+03:00</Value>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-23T13:41:18+03:00</Value> 45 45 </Assembly> 46 46 <Assembly> 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-23T1 2:41:18+03:00</Value>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-23T13:41:18+03:00</Value> 49 49 </Assembly> 50 50 <Assembly> 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-23T1 2:41:18+03:00</Value>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-23T13:41:18+03:00</Value> 53 53 </Assembly> 54 54 <Assembly> 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-23T1 2:41:18+03:00</Value>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-23T13:41:18+03:00</Value> 57 57 </Assembly> 58 58 <Assembly> 59 <Key>C:\W indows\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 1-06-27T18:29:19.4335733+03:00</Value>59 <Key>C:\WINNT\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>2010-12-30T13:08:47.7865068+02:00</Value> 61 61 </Assembly> 62 62 </Assemblies>
Note: See TracChangeset
for help on using the changeset viewer.