Ejemplo n.º 1
0
 public PnlMapDownloadOptions(CustomMap map)
 {
     this.InitializeComponent();
     this.comboBoxMapSizeType.SelectedIndex = 1;
     this.comboBoxMaxPlayerType.SelectedIndex = 1;
     this.mMap = map;
     this.CriteriaChanged(null, null);
 }
Ejemplo n.º 2
0
 public PnlMapDetailsView(CustomMap map)
 {
     this.InitializeComponent();
     this.mMap = map;
     CustomMap.PreviewImageLoaded += new EventHandler(this.CustomMap_PreviewImageLoaded);
     base.Disposed += new EventHandler(this.PnlMapDetailsView_Disposed);
     this.gpgLabelMapName.Text = map.MapName;
     this.pictureBoxPreview.Image = map.PreviewImage128;
     this.gpgLabelMapSize.Text = map.SizeDisplay;
     this.gpgLabelMaxPlayers.Text = map.MaxPlayers.ToString();
     this.gpgLabelTerrain.Text = map.TerrainType;
     this.gpgLabelMapDesc.Text = map.MapDescription;
     if (!(!map.HasCustomRuleset.HasValue ? true : !map.HasCustomRuleset.Value))
     {
         this.gpgLabelCustomRules.Text = "<LOC>Custom Rules";
     }
     else
     {
         this.gpgLabelCustomRules.Text = "<LOC>Standard Rules";
     }
     if (!(!map.IsMission.HasValue ? true : !map.IsMission.Value))
     {
         this.gpgLabelMission.Text = "<LOC>Is a Mission";
     }
     else
     {
         this.gpgLabelMission.Text = "<LOC>Not a Mission";
     }
     if (!(!map.IsRushMap.HasValue ? true : !map.IsRushMap.Value))
     {
         this.gpgLabelRush.Text = "<LOC>Is a Rushing Map";
     }
     else
     {
         this.gpgLabelRush.Text = "<LOC>Not a Rushing Map";
     }
     if (!(!map.IsSeparated.HasValue ? true : !map.IsSeparated.Value))
     {
         this.gpgLabelSeparation.Text = "<LOC>Has Player Separation";
     }
     else
     {
         this.gpgLabelSeparation.Text = "<LOC>No Player Separation";
     }
     if (!(!map.HasWater.HasValue ? true : !map.HasWater.Value))
     {
         this.gpgLabelWater.Text = "<LOC>Has Water";
     }
     else
     {
         this.gpgLabelWater.Text = "<LOC>Does Not Have Water";
     }
 }
Ejemplo n.º 3
0
 public PnlMapUploadOptions(CustomMap map)
 {
     this.InitializeComponent();
     this.gpgLabel7.Text = Loc.Get("<LOC id=_8124c3c89bfc4f3bca49659c2cb4ef3b>It is recommended you test your map as it will be after being downloaded through the vault to ensure it works. Click the button below to access the map author testing and diagnostics tool.");
     this.gpgLabelMapName.Text = map.MapName;
     this.gpgLabelMapSize.Text = string.Format(Loc.Get("<LOC>{0}x{1}  ({2})"), map.Width, map.Height, map.SizeDisplay);
     this.gpgLabelMaxPlayers.Text = map.MaxPlayers.ToString();
     this.pictureBoxPreview.Image = map.PreviewImage128;
     this.gpgTextBoxTerrain.Text = map.TerrainType;
     this.gpgCheckBoxWater.Checked = map.HasWater.GetValueOrDefault();
     this.gpgCheckBoxSeparate.Checked = map.IsSeparated.GetValueOrDefault();
     this.gpgCheckBoxRush.Checked = map.IsRushMap.GetValueOrDefault();
     this.gpgCheckBoxCustomRules.Checked = map.HasCustomRuleset.GetValueOrDefault();
     this.gpgCheckBoxMission.Checked = map.IsMission.GetValueOrDefault();
     this.gpgLabelMapDesc.Text = map.MapDescription;
     this.mMap = map;
     CustomMap.PreviewImageLoaded += new EventHandler(this.CustomMap_PreviewImageLoaded);
     base.Disposed += new EventHandler(this.PnlMapDetailsView_Disposed);
     this.MapAttributeChanged(null, null);
 }
Ejemplo n.º 4
0
 public IAdditionalContent CreateEmptyInstance()
 {
     CustomMap map = new CustomMap();
     map.ContentType = base.ContentType;
     return map;
 }
Ejemplo n.º 5
0
 public DlgPreviewMap(CustomMap map)
 {
     this.InitializeComponent();
     this.SetMap(map);
 }
Ejemplo n.º 6
0
 public void SetMap(CustomMap map)
 {
     this.skinLabelDescHeader.Text = Loc.Get(this.skinLabelDescHeader.Text);
     this.gpgLabelDesc.Text = Loc.Get(map.Description);
     this.pictureBoxPreview.Image = map.PreviewImage128;
     this.mMap = map;
 }