Ejemplo n.º 1
0
 public void OpenSpellbookPanel(Item_Spellbook book)
 {
     _spellbookScreenActive = true;
     _spellbookInterface    = new SpellbookInterface(this);
     _spellbookPanel        = new SpellbookPanel(this, _spellbookInterface);
     _spellbookInterface.ReadSpellbook(book);
 }
Ejemplo n.º 2
0
        public SpellbookPanel(PlayScene scene, SpellbookInterface spellbookInterface)
        {
            _scene                = scene;
            _interface            = spellbookInterface;
            _windowPosition       = new IntVector2();
            _windowSize           = new IntVector2();
            _descriptionPosition  = new IntVector2();
            _descriptionSize      = new IntVector2();
            _instructionsPosition = new IntVector2();
            _instructionsSize     = new IntVector2();

            _windowPosition.X       = 0;
            _windowPosition.Y       = 0;
            _windowSize.X           = 50;
            _windowSize.Y           = 30;
            _descriptionPosition.X  = 21;
            _descriptionPosition.Y  = 6;
            _descriptionSize.X      = 60;
            _instructionsPosition.X = 21;
            _instructionsPosition.Y = 20;
            _instructionsSize.X     = 60;
        }
Ejemplo n.º 3
0
 public void CloseSpellbookPanel()
 {
     _spellbookScreenActive = false;
     _spellbookInterface    = null;
     _spellbookPanel        = null;
 }
Ejemplo n.º 4
0
 public void OpenSpellbookPanel()
 {
     _spellbookScreenActive = true;
     _spellbookInterface    = new SpellbookInterface(this);
     _spellbookPanel        = new SpellbookPanel(this, _spellbookInterface);
 }