mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-06-03 10:21:36 +00:00
Added classes/functions for plugins to create and/or select new/existing things filters
This commit is contained in:
parent
e10eccf01e
commit
f33d0ed1ff
7 changed files with 163 additions and 28 deletions
|
@ -1368,10 +1368,13 @@ namespace CodeImp.DoomBuilder
|
|||
|
||||
// Update settings
|
||||
renderer3d.CreateProjection();
|
||||
|
||||
// Things filters
|
||||
General.MainWindow.UpdateThingsFilters();
|
||||
}
|
||||
|
||||
// This changes thing filter
|
||||
internal void ChangeThingFilter(ThingsFilter newfilter)
|
||||
public void ChangeThingFilter(ThingsFilter newfilter)
|
||||
{
|
||||
// We have a special filter for null
|
||||
if(newfilter == null) newfilter = new NullThingsFilter();
|
||||
|
@ -1384,7 +1387,10 @@ namespace CodeImp.DoomBuilder
|
|||
|
||||
// Activate filter
|
||||
thingsfilter.Activate();
|
||||
|
||||
|
||||
// Update interface
|
||||
General.MainWindow.ReflectThingsFilter();
|
||||
|
||||
// Redraw
|
||||
General.MainWindow.RedrawDisplay();
|
||||
}
|
||||
|
@ -1531,6 +1537,7 @@ namespace CodeImp.DoomBuilder
|
|||
General.Plugins.MapReconfigure();
|
||||
|
||||
// Update interface
|
||||
General.MainWindow.UpdateThingsFilters();
|
||||
General.MainWindow.UpdateInterface();
|
||||
|
||||
// Reload resources
|
||||
|
@ -1552,6 +1559,7 @@ namespace CodeImp.DoomBuilder
|
|||
ThingsFiltersForm f = new ThingsFiltersForm();
|
||||
f.ShowDialog(General.MainWindow);
|
||||
f.Dispose();
|
||||
General.MainWindow.UpdateThingsFilters();
|
||||
}
|
||||
|
||||
// This returns true is the given type matches
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue