LynnaLab.Minimap.SetMap C# (CSharp) Method

SetMap() public method

public SetMap ( Map m ) : void
m Map
return void
        public void SetMap(Map m)
        {
            if (_map != m) {
                _map = m;
                _floor = 0;

                Width = Map.MapWidth;
                Height = Map.MapHeight;
                TileWidth = (int)(_map.RoomWidth*16*scale);
                TileHeight = (int)(_map.RoomHeight*16*scale);

                GenerateImage();
            }
        }

Usage Example

コード例 #1
0
 protected void OnDungeonSpinButtonValueChanged(object sender, EventArgs e)
 {
     if (Project == null)
     {
         return;
     }
     dungeonMinimap.SetMap(Project.GetDungeon(dungeonSpinButton.ValueAsInt));
     OnMapChanged();
 }