@Override public void LoadContent() { for (int i = 0; i < _itemPanel.Grid().get(0).Rows(); i++) for (int j = 0; j < _itemPanel.Grid().get(0).Cols(); j++) { _itemPanel .Grid() .get(0) .Blanks()[i][j] .Clicked .Add(PushalbeBlankAdditionFuncEvent.GetInstance(this)); } }
@Override public void Draw(GameTime gameTime) { _sprites.get(0).Draw((SpriteBatch) Game().GetService("SpriteBatch"), _position, Color.WHITE); Clicked.occur(!_isPanelButtonAdded); if (_isPanelButtonAdded) { _itemPanel.Draw(gameTime); } super.Draw(gameTime); }