Ejemplo n.º 1
0
 private void SetFontsAndColors(SpelResurser spelresurser)
 {
     currentColor       = Color.Black;
     italics            = spelresurser.StrandardFont;
     dialogueFont       = spelresurser.StrandardFont;
     dialogueFontBold   = spelresurser.StrandardFont;
     dialogueFontItalic = spelresurser.StrandardFont;
     bold = spelresurser.StrandardFont;
 }
Ejemplo n.º 2
0
 public Bakgrund(float x, float y, SpriteBatch spritebatch, SpelResurser spelresurser)
 {
     Position.X     = x;
     Position.Y     = y;
     BakgrundTextur = spelresurser.BakgrundTextur;
     Höjd           = BakgrundTextur.Height;
     Bredd          = BakgrundTextur.Width;
     SpriteBatch    = spritebatch;
 }
Ejemplo n.º 3
0
 public DialogBox(float x, float y, SpriteBatch spritebatch, SpelResurser spelresurser)
 {
     Position.X  = x;
     Position.Y  = y;
     DBoxBakom   = spelresurser.DialogLådaBack;
     DBoxFram    = spelresurser.DialogLådaFram;
     SpriteBatch = spritebatch;
     //x2 = x1 + ((w1 - w2) / 2);
     //y2 = y1 + ((h1 - h2) / 2);
     SetDialogBoxStrorlek();
     SetFontsAndColors(spelresurser);
 }
Ejemplo n.º 4
0
 ///////////////////////////////////////////////////////////////////////////
 public SpelStatus(Spel spel, ContentManager content) : base(spel, content)
 {
     SpelResurser = new SpelResurser(content);
     spriteBatch  = spel.spriteBatch;
 }