- Timestamp:
- 2011-06-30 10:58:48 (12 years ago)
- Location:
- 2011/26/JuhoK/SFN
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
2011/26/JuhoK/SFN/SFN/SFN/Peli.cs
r2328 r2344 6 6 using Jypeli.Effects; 7 7 using Jypeli.Widgets; 8 using System.Globalization; 8 9 9 10 namespace SFN … … 96 97 97 98 Label alapalkki = new Label(Screen.Width, Screen.Height / 4); 98 alapalkki.Color = Color. White;99 alapalkki.Color = Color.SkyBlue; 99 100 alapalkki.Position = new Vector(0, Screen.Bottom + (alapalkki.Height / 2)); 100 101 Add(alapalkki); … … 213 214 214 215 auto1 = new Label(40, 20); 215 auto1.Position = new Vector(Screen.Left * 0. 9, alapalkki.Y + alapalkki.Height * 0.20);216 auto1.Position = new Vector(Screen.Left * 0.85, alapalkki.Y + alapalkki.Height * 0.20); 216 217 auto1.Image = kuvat[0]; 217 218 Add(auto1); … … 232 233 Add(auto4); 233 234 234 osta_auto1 = new PushButton(" ");235 osta_auto1.Position = new Vector(Screen.Left * 0. 9, alapalkki.Y - alapalkki.Height * 0.20);235 osta_auto1 = new PushButton("Osta"); 236 osta_auto1.Position = new Vector(Screen.Left * 0.85, alapalkki.Y - alapalkki.Height * 0.20); 236 237 Add(osta_auto1); 237 238 238 osta_auto2 = new PushButton(" ");239 osta_auto2.Position = new Vector(Screen.Left * 0. 75, alapalkki.Y - alapalkki.Height * 0.20);239 osta_auto2 = new PushButton("Osta"); 240 osta_auto2.Position = new Vector(Screen.Left * 0.55, alapalkki.Y - alapalkki.Height * 0.20); 240 241 Add(osta_auto2); 241 242 242 osta_auto3 = new PushButton(" ");243 osta_auto3 = new PushButton("Osta"); 243 244 osta_auto3.Position = new Vector(Screen.Left * 0.6, alapalkki.Y - alapalkki.Height * 0.20); 244 Add(osta_auto3);245 246 osta_auto4 = new PushButton(" ");245 //Add(osta_auto3); 246 247 osta_auto4 = new PushButton("Osta"); 247 248 osta_auto4.Position = new Vector(Screen.Left * 0.45, alapalkki.Y - alapalkki.Height * 0.20); 248 Add(osta_auto4); 249 //Add(osta_auto4); 250 251 // Lisätään hintaan tuhaterotin 252 int _hinta = int.Parse((10000 + (autot[0].kori * 100) * 0.75).ToString()); 253 String hintaTuhatErottimella = _hinta.ToString("0,0", CultureInfo.InvariantCulture); 254 255 Label hinta_auto1 = new Label("Price: "+hintaTuhatErottimella); 256 hinta_auto1.Position = new Vector(Screen.Left * 0.85, alapalkki.Y - alapalkki.Height * 0.05); 257 Add(hinta_auto1); 258 259 Label hinta_auto2 = new Label(""); 249 260 } 250 261
Note: See TracChangeset
for help on using the changeset viewer.