mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-18 22:41:46 +00:00
@ Highlighting 3D floor/ceiling will now show the sector info of the control sector instead of the sector that the floor/ceiling is in.
This commit is contained in:
parent
5f1a5df50b
commit
c3c4ffcc7b
1 changed files with 15 additions and 5 deletions
|
@ -377,13 +377,23 @@ namespace CodeImp.DoomBuilder.GZDoomEditing
|
|||
if(target.picked is VisualGeometry)
|
||||
{
|
||||
VisualGeometry pickedgeo = (target.picked as VisualGeometry);
|
||||
|
||||
if(pickedgeo.Sidedef != null)
|
||||
General.Interface.ShowLinedefInfo(pickedgeo.Sidedef.Line);
|
||||
else if(pickedgeo.Sidedef == null)
|
||||
General.Interface.ShowSectorInfo(pickedgeo.Sector.Sector);
|
||||
|
||||
// Sidedef?
|
||||
if(pickedgeo is BaseVisualGeometrySidedef)
|
||||
{
|
||||
BaseVisualGeometrySidedef pickedsidedef = (pickedgeo as BaseVisualGeometrySidedef);
|
||||
General.Interface.ShowLinedefInfo(pickedsidedef.Sidedef.Line);
|
||||
}
|
||||
// Sector?
|
||||
else if(pickedgeo is BaseVisualGeometrySector)
|
||||
{
|
||||
BaseVisualGeometrySector pickedsector = (pickedgeo as BaseVisualGeometrySector);
|
||||
General.Interface.ShowSectorInfo(pickedsector.Level.sector);
|
||||
}
|
||||
else
|
||||
{
|
||||
General.Interface.HideInfo();
|
||||
}
|
||||
}
|
||||
// Thing picked?
|
||||
if(target.picked is VisualThing)
|
||||
|
|
Loading…
Reference in a new issue