Пример #1
0
        private void Map_TileSelected(Tile t)
        {
            updatingDisplay = true;

            CheckDescriptionUpdate();
            CurrentTile = t;

            NorthWall.Setup(Context, Zone, t.Walls[0]);
            EastWall.Setup(Context, Zone, t.Walls[1]);
            SouthWall.Setup(Context, Zone, t.Walls[2]);
            WestWall.Setup(Context, Zone, t.Walls[3]);

            CeilingTexture.TextureId = t.CeilingTexture;
            FloorTexture.TextureId   = t.FloorTexture;

            UpdateDescription();
            UpdateETable();

            OnEnterBox.SelectedItem = Globals.Resolve(Context, t.OnEnterId);
            OnUseBox.SelectedItem   = Globals.Resolve(Context, t.OnUseId);
            ThingBox.SelectedItem   = Globals.Resolve(Context, t.Thing);
            DangerBox.Value         = t.Danger;
            EffectBox.SelectedIndex = (int)t.Effect;

            ImpassableFlag.Checked = t.Flags.HasFlag(TileFlags.Impassable);

            UpdateItemList();

            updatingDisplay = false;
        }