Fixed, Tag Explorer: in some cases (for example, when geometry was removed implicitly by dragging geometry) the list was not updated.

Fixed: in some cases generalized sector effect detection logic failed to detect a valid generalized effect.
Fixed, Action selector control: action label was not updated when changing action number from one generalized effect to another.
This commit is contained in:
MaxED 2016-05-16 14:04:04 +00:00 committed by spherallic
parent 6c8a59815f
commit 54f8949f32
4 changed files with 15 additions and 1 deletions

View file

@ -1097,9 +1097,9 @@ namespace CodeImp.DoomBuilder.Config
for(int j = options[i].Bits.Count - 1; j > -1; j--)
{
GeneralizedBit bit = options[i].Bits[j];
if(bit.Index > cureffect) continue;
if(bit.Index > 0 && (cureffect & bit.Index) == bit.Index) return true;
cureffect -= bit.Index;
if(cureffect < 1) return false;
}
}

View file

@ -221,6 +221,11 @@ namespace CodeImp.DoomBuilder.Controls
list.SelectedIndex = itemindex;
list.Refresh();
}
//mxd. This may be generalized effect, and it may've changed
else if(itemindex == -1)
{
list.Refresh();
}
// Raise change event
//mxd. This HAS to be raised during Edit form setup, otherwise TypeHandlers in ArgumentBoxes won't be initialized

View file

@ -545,6 +545,9 @@ namespace CodeImp.DoomBuilder.BuilderModes
// Update cached values
General.Map.Map.Update();
//mxd. Let the plugins know
General.Editing.AcceptMode();
// Done
Cursor.Current = Cursors.Default;
General.Map.IsChanged = true;

View file

@ -74,6 +74,12 @@ namespace CodeImp.DoomBuilder.TagExplorer
if(tagExplorer != null) tagExplorer.UpdateTreeSoon();
}
// Edit performed
public override void OnEditAccept()
{
if(tagExplorer != null) tagExplorer.UpdateTreeSoon();
}
public override void OnActionEnd(Actions.Action action)
{
if(tagExplorer != null && action.Name == "builder_deleteitem")