コード例 #1
0
ファイル: GridTools.cs プロジェクト: Crimatorre/CellED
 public override void Update()
 {
     base.Update();
     GridSwitch.Update();
     GridEditSwitch.Update();
     GridTopBottomSwitch.Update();
 }
コード例 #2
0
ファイル: GridTools.cs プロジェクト: Crimatorre/CellED
        public override void Draw(SpriteBatch spriteBatch)
        {
            base.Draw(spriteBatch);

            GridSwitch.Draw(spriteBatch);
            GridEditSwitch.Draw(spriteBatch);
            GridTopBottomSwitch.Draw(spriteBatch);

            spriteBatch.DrawString(parent.UIFontSmall, GridSwitchLabel, Pos + new Vector2(15, 20), parent.TextColor);
            spriteBatch.DrawString(parent.UIFontSmall, GridEditSwitchLabel, Pos + new Vector2(15, 45), parent.TextColor);
            spriteBatch.DrawString(parent.UIFontSmall, GridTopBottomSwitchLabel, Pos + new Vector2(15, 70), parent.TextColor);
        }