mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2024-11-10 06:41:49 +00:00
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:
parent
6c8a59815f
commit
54f8949f32
4 changed files with 15 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue