Changeset 2878 for 2012/23


Ignore:
Timestamp:
2012-06-08 13:21:51 (7 years ago)
Author:
anlakane
Message:
 
Location:
2012/23/LeoS
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • 2012/23/LeoS/leoS/leoS/DoYouReallyWannaJump.cs

    r2862 r2878  
    1616    { 
    1717        MediaPlayer.Play("Tausta"); 
    18         IsFullScreen = true; 
     18        //IsFullScreen = true; 
    1919        Alustukset(); 
    2020    } 
     
    2323    { 
    2424        ClearAll(); 
    25         MultiSelectWindow valikko = new MultiSelectWindow("Menu", "Read This Before\nYou Start Game", "Level 1", "Level 2", "Level 3", 
    26         "Level 4", "Level 5", "Level 6", "Skill Level 1","Skill Level 2", "Skill Level 3",  "Exit Game"); valikko.ItemSelected += PainettiinValikonNappia; 
     25        MultiSelectWindow valikko = new MultiSelectWindow("Menu", "Read This", "Level 1", "Level 2", "Level 3", 
     26        "Level 4", "Level 5", "Level 6", "Skill Level 1","Skill Level 2", "Skill Level 3"); 
     27        Listener esc = Keyboard.Listen(Key.Escape, ButtonState.Pressed, Exit, null).InContext(valikko); 
     28        valikko.ItemSelected += PainettiinValikonNappia; 
     29        valikko.ItemSelected += delegate { esc.Destroy(); }; 
    2730        valikko.Color = Color.Gold; 
    2831        valikko.DefaultCancel = -1; 
     
    7578     
    7679    void PainettiinValikonNappia(int valinta) 
    77     { 
     80    {         
    7881        switch (valinta) 
    7982        { 
     
    278281    void Ohjeet() 
    279282    { 
    280         LuoAikaLaskuri2(); 
    281  
    282         Label tekstikentta = new Label("teksti"); 
    283         tekstikentta.Text = "Jump=UP-Button, Move forward=RIGHT-Button, to flying mode=press Right repeatedly\nFall down=DOWN-Button, Return to Menu=Esc, you have 2 minutes to reach the end\nif you ran out of time,you will automatically return to Menu"; 
     283        Label tekstikentta = new Label("teksti"); 
     284        tekstikentta.Text = "Jump=UP-Button, Move forward=RIGHT-Button,\nto flying mode=press Right repeatedly\nFall down=DOWN-Button, Return to Menu=Esc, \nyou have 2 minutes to reach the end\nif you ran out of time,you will automatically return to Menu"; 
    284285 
    285286        tekstikentta.TextColor = Color.Red; 
    286         tekstikentta.Font = Font.DefaultLargeBold; 
     287        tekstikentta.Font = Font.Default; 
    287288        Add(tekstikentta); 
    288289 
     
    292293        tekstikentta2.Font = Font.DefaultLargeBold; 
    293294        tekstikentta2.X = 0.0; 
    294         tekstikentta2.Y = -80.0; 
     295        tekstikentta2.Y = -100.0; 
    295296        Add(tekstikentta2); 
     297 
     298        Listener esc = Keyboard.Listen(Key.Escape, ButtonState.Pressed, delegate { Alustukset(); }, null); 
     299        Listener enter = Keyboard.Listen(Key.Enter, ButtonState.Pressed, delegate { Alustukset(); }, null); 
     300 
    296301    } 
    297302    void LuoAikaLaskuri2() 
Note: See TracChangeset for help on using the changeset viewer.