Changeset 2176 for 2011/26


Ignore:
Timestamp:
2011-06-27 19:49:36 (8 years ago)
Author:
jumakall
Message:

Päivitetty valikon taustakuva.

Location:
2011/26/JuhoK
Files:
3 edited

Legend:

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

    r2168 r2176  
    1212    public override void Begin() 
    1313    { 
     14        Keyboard.Listen(Key.Escape, ButtonState.Released, Exit, null); 
    1415        Mouse.IsCursorVisible = true; 
    1516        CreateMenu(); 
     
    2223 
    2324        //Start game button 
    24         PushButton start_game = new PushButton("New game"); 
    25         start_game.Clicked += new Action(start_game_Clicked); 
    26         start_game.Position = new Vector(300.0, 250.0); 
    27         Add(start_game); 
     25        PushButton quit_game = new PushButton("Quit game"); 
     26        quit_game.Clicked += new Action(quit_game_Clicked); 
     27        quit_game.Position = new Vector(380.0, -50.0); 
     28        Add(quit_game); 
    2829    } 
    2930 
    30     void start_game_Clicked() 
     31    void quit_game_Clicked() 
    3132    { 
    32         MessageDisplay.Add("Action not availible."); 
     33        //Crediittejä tänne? 
     34        Exit(); 
    3335    } 
    3436} 
Note: See TracChangeset for help on using the changeset viewer.