Fixed some issues with images browser and Linedef properties dialog

This commit is contained in:
codeimp 2009-04-09 17:23:49 +00:00
parent f5a4799721
commit 7394868988
4 changed files with 5 additions and 3 deletions

View file

@ -129,7 +129,7 @@ namespace CodeImp.DoomBuilder.Windows
// This fills the lists and selects the given texture
public void Setup(string selectflat)
{
bool fillrequired = (selectedset.Index == 0);
bool fillrequired = (texturesets.SelectedItems.Count == 0) || (selectedset == texturesets.SelectedItems[0]);
if(!string.IsNullOrEmpty(selectflat))
{

View file

@ -566,6 +566,7 @@ namespace CodeImp.DoomBuilder.Windows
// splitter
//
this.splitter.Dock = System.Windows.Forms.DockStyle.Fill;
this.splitter.IsSplitterFixed = true;
this.splitter.Location = new System.Drawing.Point(5, 5);
this.splitter.Name = "splitter";
this.splitter.Orientation = System.Windows.Forms.Orientation.Horizontal;

View file

@ -84,6 +84,8 @@ namespace CodeImp.DoomBuilder.Windows
// Custom fields?
if(!General.Map.FormatInterface.HasCustomFields)
tabs.TabPages.Remove(tabcustom);
customfrontbutton.Visible = General.Map.FormatInterface.HasCustomFields;
custombackbutton.Visible = General.Map.FormatInterface.HasCustomFields;
// Arrange panels
if(General.Map.FormatInterface.HasPresetActivations)
@ -267,7 +269,6 @@ namespace CodeImp.DoomBuilder.Windows
if(frontsector.Text != l.Map.GetIndexForSector(l.Front.Sector).ToString()) frontsector.Text = "";
if(frontoffsetx.Text != l.Front.OffsetX.ToString()) frontoffsetx.Text = "";
if(frontoffsety.Text != l.Front.OffsetY.ToString()) frontoffsety.Text = "";
if(General.Map.FormatInterface.HasCustomFields) customfrontbutton.Visible = true;
}
// Back settings

View file

@ -129,7 +129,7 @@ namespace CodeImp.DoomBuilder.Windows
// This fills the lists and selects the given texture
public void Setup(string selecttexture)
{
bool fillrequired = (selectedset.Index == 0);
bool fillrequired = (texturesets.SelectedItems.Count == 0) || (selectedset == texturesets.SelectedItems[0]);
if(!string.IsNullOrEmpty(selecttexture))
{