Exemplo n.º 1
0
        public Textbox(NarrativeState state)
        {
            State = state;

            var size = new Vector2(Game.ViewportWidth - 32, (Game.ViewportHeight - 32) * 0.4f);
            var pos = new Vector2(Game.ViewportWidth - 16, Game.ViewportHeight - 16) - size;
            Bounds = Bounds.FromPositionAndSize(pos, size);
        }
Exemplo n.º 2
0
Arquivo: Scene.cs Projeto: kg/rlms2013
 // BLEH. Don't want to require every scene class to define a constructor that just calls base()...
 public void Initialize(NarrativeState state)
 {
     State = state;
 }