コード例 #1
0
        public void UpdateDoodadBrush()
        {
            DoodadBrush dbrush = selectedBrush as DoodadBrush;

            if (dbrush != null)
            {
                Global.mapCanvas.secondary_map = null;
                DoodadBrush.FillDoodadPreviewBuffer();
                Global.mapCanvas.secondary_map = Global.mapCanvas.doodad_buffer_map;
                Global.mapCanvas.Refresh();
            }
        }
コード例 #2
0
        public void SetBrushVariation(int nz)
        {
            DoodadBrush dbrush = selectedBrush as DoodadBrush;

            if (nz != brush_variation && dbrush != null)
            {
                // Monkey!
                brush_variation = nz;
                Global.mapCanvas.secondary_map = null;
                DoodadBrush.FillDoodadPreviewBuffer();
                Global.mapCanvas.secondary_map = Global.mapCanvas.doodad_buffer_map;
            }
        }