Changeset 2262 for 2011/26


Ignore:
Timestamp:
2011-06-29 11:01:35 (12 years ago)
Author:
jumakall
Message:
 
Location:
2011/26/JuhoK/SFN
Files:
9 edited

Legend:

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

    r2249 r2262  
    7070        { 
    7171            ClearAll(); 
     72 
     73            Label ylapalkki = new Label(Screen.Width, Screen.Height / 15); 
     74            ylapalkki.Color = Color.White; 
     75            ylapalkki.X = 0; 
     76            ylapalkki.Y = Screen.Top - (ylapalkki.Height / 2); 
     77            Add(ylapalkki); 
     78 
     79            Label alapalkki = new Label(Screen.Width, Screen.Height / 4); 
     80            alapalkki.Color = Color.White; 
     81            alapalkki.Position = new Vector(0, Screen.Bottom + (alapalkki.Height / 2)); 
     82            Add(alapalkki); 
     83 
     84            Label oikeareuna = new Label(Screen.Width / 6, Screen.Height); 
     85            oikeareuna.Color = Color.White; 
     86            oikeareuna.Position = new Vector(Screen.Right - oikeareuna.Width / 2, 0); 
     87            Add(oikeareuna); 
     88 
    7289            Keyboard.Listen(Key.Escape, ButtonState.Released, Exit, null); 
    7390            Camera.ZoomToLevel(); 
    7491            Level.BackgroundColor = Color.LightGray; 
    7592 
    76             GameObject alapalkki = new GameObject(Level.Width, Level.Height / 4); 
     93            /*GameObject alapalkki = new GameObject(Level.Width, Level.Height / 4); 
    7794            alapalkki.X = 0; 
    7895            alapalkki.Y = Level.Bottom + alapalkki.Height / 2; 
    79             Add(alapalkki); 
    80  
     96            Add(alapalkki);*/ 
     97            /* 
    8198            GameObject ylapalkki = new GameObject(Level.Width, Level.Height / 10); 
    8299            ylapalkki.X = 0; 
    83100            ylapalkki.Y = Level.Top - ylapalkki.Height / 2; 
    84101            Add(ylapalkki); 
    85  
    86             GameObject oikeareuna = new GameObject(Level.Width / 6, Level.Height); 
     102            */ 
     103            /*GameObject oikeareuna = new GameObject(Level.Width / 6, Level.Height); 
    87104            oikeareuna.Position = new Vector(Level.Right - oikeareuna.Width / 2, 0); 
    88             Add(oikeareuna); 
     105            Add(oikeareuna);*/ 
    89106 
    90107            //Next 
    91108            PushButton nextid = new PushButton("-->"); 
    92             nextid.Position = new Vector(Level.Right * 1.15, Level.Top * 1.2); //Level.Right + 80, Level.Top + 60 
     109            nextid.Position = new Vector(Screen.Right * 0.9, ylapalkki.Y); //Level.Right + 80, Level.Top + 60 
    93110            nextid.Clicked += new Action(nextid_Clicked); 
    94111            Add(nextid); 
     
    96113            //Previous 
    97114            PushButton previousid = new PushButton("<--"); 
    98             previousid.Position = new Vector(Level.Right * 0.85, Level.Top * 1.2); //Level.Right - 80, Level.Top + 60 
     115            previousid.Position = new Vector(Screen.Right * 0.65, ylapalkki.Y); //Level.Right - 80, Level.Top + 60 
    99116            previousid.Clicked += new Action(previousid_Clicked); 
    100117            Add(previousid); 
     
    112129            //Number 
    113130            number = new Label((ID+1).ToString()+"/"+autot.Count.ToString()); 
    114             number.Position = new Vector(Level.Right, Level.Top * 1.2); //Level.Right, Level.Top + 60 
     131            number.Position = new Vector(Screen.Right * 0.78, ylapalkki.Y); //Level.Right, Level.Top + 60 
    115132            Add(number); 
    116133 
    117134            malli = new Label(autot[ID].korinnimi.ToString()); 
    118             malli.Position = new Vector(Level.Left, Level.Top * 1.2); //Level.Left, Level.Top + 60 
     135            malli.Position = new Vector(Level.Left, ylapalkki.Y); //Level.Left, Level.Top + 60 
    119136            Add(malli); 
    120137 
    121138            moottori = new Label("Moottori: " + autot[ID].moottori.ToString()); 
    122             moottori.Position = new Vector(Level.Left + 250, Level.Top * 1.2); //Level.Left + 250, Level.Top * 1.2 
     139            moottori.Position = new Vector(Level.Left + 250, ylapalkki.Y); //Level.Left + 250, Level.Top * 1.2 
    123140            Add(moottori); 
    124141 
     142 
    125143            renkaat = new Label("Renkaat: "+autot[ID].renkaat.ToString()); 
    126             renkaat.Position = new Vector(Level.Left + 500, Level.Top * 1.2); //Level.Left + 500, Level.Top + 60 
     144            renkaat.Position = new Vector(0, ylapalkki.Y); 
     145            //renkaat.Y = ylapalkki.Y; 
     146            //ylapalkki.Y = 200 - ylapalkki.Height/2; 
     147            //renkaat.Position = //new Vector(ylapalkki.X, ylapalkki.Y); //Level.Left + 500, Level.Top + 60 
    127148            Add(renkaat); 
    128149 
     
    134155            renkaiden_hinta.Position = new Vector(Level.Right + 65, Level.Top - 180); 
    135156            Add(renkaiden_hinta); 
     157             
    136158        } 
    137159 
     
    152174        void previousid_Clicked() 
    153175        { 
    154             //ID = --ID % autot.Count; 
    155             MessageDisplay.Add("You can't use this button, because it's are broken."); 
     176            ID = (--ID + autot.Count) % autot.Count; 
    156177            UpdateHUD(); 
    157178        } 
  • 2011/26/JuhoK/SFN/SFN/SFNContent/obj/x86/Debug/ContentPipeline.xml

    r2249 r2262  
    88      <Processor>TextureProcessor</Processor> 
    99      <Options>None</Options> 
    10       <Output>J:\Visual Studio\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\MenuBackround2.xnb</Output> 
    11       <Time>2011-06-27T19:39:36+03:00</Time> 
     10      <Output>C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\MenuBackround2.xnb</Output> 
     11      <Time>2011-06-28T10:09:57.8381342+03:00</Time> 
    1212    </Item> 
    1313    <Item> 
     
    1717      <Processor>TextureProcessor</Processor> 
    1818      <Options>None</Options> 
    19       <Output>J:\Visual Studio\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\MenuBackround.xnb</Output> 
    20       <Time>2011-06-28T17:01:04+03:00</Time> 
     19      <Output>C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\MenuBackround.xnb</Output> 
     20      <Time>2011-06-28T10:27:54.1975092+03:00</Time> 
    2121    </Item> 
    2222    <BuildSuccessful>true</BuildSuccessful> 
     
    2626      <BuildConfiguration>Debug</BuildConfiguration> 
    2727      <CompressContent>false</CompressContent> 
    28       <RootDirectory>J:\Visual Studio\MyTemp\JuhoK\SFN\SFN\SFNContent\</RootDirectory> 
    29       <LoggerRootDirectory>J:\Visual Studio\MyTemp\JuhoK\SFN\SFN\SFN\</LoggerRootDirectory> 
    30       <IntermediateDirectory>J:\Visual Studio\MyTemp\JuhoK\SFN\SFN\SFNContent\obj\x86\Debug\</IntermediateDirectory> 
    31       <OutputDirectory>J:\Visual Studio\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\</OutputDirectory> 
     28      <RootDirectory>C:\MyTemp\JuhoK\SFN\SFN\SFNContent\</RootDirectory> 
     29      <LoggerRootDirectory>C:\MyTemp\JuhoK\SFN\SFN\SFN\</LoggerRootDirectory> 
     30      <IntermediateDirectory>C:\MyTemp\JuhoK\SFN\SFN\SFNContent\obj\x86\Debug\</IntermediateDirectory> 
     31      <OutputDirectory>C:\MyTemp\JuhoK\SFN\SFN\SFN\bin\x86\Debug\Content\</OutputDirectory> 
    3232    </Settings> 
    3333    <Assemblies> 
    3434      <Assembly> 
    35         <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.XImporter.dll</Key> 
    36         <Value>2010-08-23T12:41:18+03:00</Value> 
     35        <Key>C:\Program Files\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.XImporter.dll</Key> 
     36        <Value>2010-08-23T13:41:18+03:00</Value> 
    3737      </Assembly> 
    3838      <Assembly> 
    39         <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.VideoImporters.dll</Key> 
    40         <Value>2010-08-23T12:41:18+03:00</Value> 
     39        <Key>C:\Program Files\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.VideoImporters.dll</Key> 
     40        <Value>2010-08-23T13:41:18+03:00</Value> 
    4141      </Assembly> 
    4242      <Assembly> 
    43         <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.TextureImporter.dll</Key> 
    44         <Value>2010-08-23T12:41:18+03:00</Value> 
     43        <Key>C:\Program Files\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.TextureImporter.dll</Key> 
     44        <Value>2010-08-23T13:41:18+03:00</Value> 
    4545      </Assembly> 
    4646      <Assembly> 
    47         <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.FBXImporter.dll</Key> 
    48         <Value>2010-08-23T12:41:18+03:00</Value> 
     47        <Key>C:\Program Files\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.FBXImporter.dll</Key> 
     48        <Value>2010-08-23T13:41:18+03:00</Value> 
    4949      </Assembly> 
    5050      <Assembly> 
    51         <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.EffectImporter.dll</Key> 
    52         <Value>2010-08-23T12:41:18+03:00</Value> 
     51        <Key>C:\Program Files\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.EffectImporter.dll</Key> 
     52        <Value>2010-08-23T13:41:18+03:00</Value> 
    5353      </Assembly> 
    5454      <Assembly> 
    55         <Key>C:\Program Files (x86)\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.AudioImporters.dll</Key> 
    56         <Value>2010-08-23T12:41:18+03:00</Value> 
     55        <Key>C:\Program Files\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.Content.Pipeline.AudioImporters.dll</Key> 
     56        <Value>2010-08-23T13:41:18+03:00</Value> 
    5757      </Assembly> 
    5858      <Assembly> 
    59         <Key>C:\Windows\Microsoft.Net\assembly\GAC_32\Microsoft.Xna.Framework.Content.Pipeline\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Content.Pipeline.dll</Key> 
    60         <Value>2011-06-27T18:29:19.4335733+03:00</Value> 
     59        <Key>C:\WINNT\Microsoft.Net\assembly\GAC_32\Microsoft.Xna.Framework.Content.Pipeline\v4.0_4.0.0.0__842cf8be1de50553\Microsoft.Xna.Framework.Content.Pipeline.dll</Key> 
     60        <Value>2010-12-30T13:08:47.7865068+02:00</Value> 
    6161      </Assembly> 
    6262    </Assemblies> 
Note: See TracChangeset for help on using the changeset viewer.