Changeset 2344 for 2011/26


Ignore:
Timestamp:
2011-06-30 10:58:48 (12 years ago)
Author:
jumakall
Message:
 
Location:
2011/26/JuhoK/SFN
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 2011/26/JuhoK/SFN/SFN/SFN/Peli.cs

    r2328 r2344  
    66using Jypeli.Effects; 
    77using Jypeli.Widgets; 
     8using System.Globalization; 
    89 
    910namespace SFN 
     
    9697 
    9798            Label alapalkki = new Label(Screen.Width, Screen.Height / 4); 
    98             alapalkki.Color = Color.White; 
     99            alapalkki.Color = Color.SkyBlue; 
    99100            alapalkki.Position = new Vector(0, Screen.Bottom + (alapalkki.Height / 2)); 
    100101            Add(alapalkki); 
     
    213214 
    214215            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); 
    216217            auto1.Image = kuvat[0]; 
    217218            Add(auto1); 
     
    232233            Add(auto4); 
    233234 
    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); 
    236237            Add(osta_auto1); 
    237238 
    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); 
    240241            Add(osta_auto2); 
    241242 
    242             osta_auto3 = new PushButton(""); 
     243            osta_auto3 = new PushButton("Osta"); 
    243244            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"); 
    247248            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(""); 
    249260        } 
    250261 
Note: See TracChangeset for help on using the changeset viewer.