Ignore:
Timestamp:
2014-06-27 12:10:10 (7 years ago)
Author:
nivikinn
Message:
 
Location:
2014/26/NikoK/EpicTankBattle
Files:
1 added
9 edited

Legend:

Unmodified
Added
Removed
  • 2014/26/NikoK/EpicTankBattle/EpicTankBattle/EpicTankBattle/EpicTankBattle.cs

    r5137 r5160  
    9595    { 
    9696        ClearAll(); 
    97  
     97        LuoAlkuValikko(); 
     98    } 
     99 
     100    void LuoAlkuValikko() 
     101    { 
    98102        MultiSelectWindow alkuValikko = new MultiSelectWindow("EpicTankBattle", 
    99103        "Uusi peli", "Lopeta"); 
     104        Level.Background.CreateGradient(Color.Mint, Color.Snow); 
    100105        Add(alkuValikko); 
     106        alkuValikko.ItemSelected += PainettiinValikonNappia; 
    101107         
    102         Level.Background.CreateGradient(Color.Mint, Color.Snow); 
    103         alkuValikko.ItemSelected += PainettiinValikonNappia; 
    104     } 
     108    }    
    105109 
    106110    void PainettiinValikonNappia(int valinta) 
     
    122126        Add(MaaperaValikko); 
    123127        MaaperaValikko.ItemSelected += PainettiinMaaperaValikonNappia; 
     128        Keyboard.Listen(Key.Escape, ButtonState.Pressed, LuoAlkuValikko, null); 
    124129    } 
    125130    void PainettiinMaaperaValikonNappia(int MaaperanValinta) 
     
    147152        Add(P1VariValikko); 
    148153        P1VariValikko.ItemSelected += PainettiinP1VariValikonNappia; 
     154        Keyboard.Listen(Key.Escape, ButtonState.Pressed, LuoAlkuValikko, null); 
    149155    } 
    150156    void PainettiinP1VariValikonNappia(int valinta2) 
     
    191197        Add(P2VariValikko); 
    192198        P2VariValikko.ItemSelected += PainettiinP2VariValikonNappia; 
     199        Keyboard.Listen(Key.Escape, ButtonState.Pressed, LuoAlkuValikko, null); 
    193200    } 
    194201    void PainettiinP2VariValikonNappia(int valinta3) 
     
    622629        Keyboard.Listen(Key.Tab, ButtonState.Pressed, Hyppaa, null, P1, hyppy); 
    623630        Keyboard.Listen(Key.Enter, ButtonState.Pressed, Hyppaa, null, P2, hyppy); 
     631 
     632        Keyboard.Listen(Key.Escape, ButtonState.Pressed, LuoAlkuValikko, null); 
    624633    } 
    625634 
  • 2014/26/NikoK/EpicTankBattle/EpicTankBattle/EpicTankBattle/bin/x86/Debug/EpicTankBattle.application

    r5137 r5160  
    1616        </dsig:Transforms> 
    1717        <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /> 
    18         <dsig:DigestValue>70g2S5K7hnZGTe1XxXM0mxA5UFo=</dsig:DigestValue> 
     18        <dsig:DigestValue>J38hexa3f8FoUKWg8wyTa69hUNw=</dsig:DigestValue> 
    1919      </hash> 
    2020    </dependentAssembly> 
  • 2014/26/NikoK/EpicTankBattle/EpicTankBattle/EpicTankBattle/bin/x86/Debug/EpicTankBattle.exe.manifest

    r5137 r5160  
    4444  </dependency> 
    4545  <dependency> 
    46     <dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="EpicTankBattle.exe" size="28672"> 
     46    <dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="EpicTankBattle.exe" size="29184"> 
    4747      <assemblyIdentity name="EpicTankBattle" version="1.0.0.0" language="neutral" processorArchitecture="x86" /> 
    4848      <hash> 
     
    5151        </dsig:Transforms> 
    5252        <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /> 
    53         <dsig:DigestValue>+ssVvFKBZWxkhAg15i5xXYouiYs=</dsig:DigestValue> 
     53        <dsig:DigestValue>iASo6wbmoyF+nxQ1HzVvJDlTnzs=</dsig:DigestValue> 
    5454      </hash> 
    5555    </dependentAssembly> 
  • 2014/26/NikoK/EpicTankBattle/EpicTankBattle/EpicTankBattle/obj/x86/Debug/EpicTankBattle.application

    r5137 r5160  
    1616        </dsig:Transforms> 
    1717        <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /> 
    18         <dsig:DigestValue>70g2S5K7hnZGTe1XxXM0mxA5UFo=</dsig:DigestValue> 
     18        <dsig:DigestValue>J38hexa3f8FoUKWg8wyTa69hUNw=</dsig:DigestValue> 
    1919      </hash> 
    2020    </dependentAssembly> 
  • 2014/26/NikoK/EpicTankBattle/EpicTankBattle/EpicTankBattle/obj/x86/Debug/EpicTankBattle.exe.manifest

    r5137 r5160  
    4444  </dependency> 
    4545  <dependency> 
    46     <dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="EpicTankBattle.exe" size="28672"> 
     46    <dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="EpicTankBattle.exe" size="29184"> 
    4747      <assemblyIdentity name="EpicTankBattle" version="1.0.0.0" language="neutral" processorArchitecture="x86" /> 
    4848      <hash> 
     
    5151        </dsig:Transforms> 
    5252        <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /> 
    53         <dsig:DigestValue>+ssVvFKBZWxkhAg15i5xXYouiYs=</dsig:DigestValue> 
     53        <dsig:DigestValue>iASo6wbmoyF+nxQ1HzVvJDlTnzs=</dsig:DigestValue> 
    5454      </hash> 
    5555    </dependentAssembly> 
Note: See TracChangeset for help on using the changeset viewer.