コード例 #1
0
ファイル: Textbox.cs プロジェクト: kg/rlms2013
        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);
        }
コード例 #2
0
ファイル: Scene.cs プロジェクト: 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;
 }