mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-18 22:41:46 +00:00
little fix for associations coloring
This commit is contained in:
parent
2839d82df5
commit
cdcaccf0eb
2 changed files with 30 additions and 31 deletions
|
@ -92,42 +92,45 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
highlightasso.Set(l.Tag, UniversalType.LinedefTag);
|
||||
else
|
||||
highlightasso.Set(0, 0);
|
||||
|
||||
if(l != null)
|
||||
|
||||
// New association highlights something?
|
||||
if((l != null) && (l.Tag > 0)) completeredraw = true;
|
||||
|
||||
// Use the line tag to highlight sectors (Doom style)
|
||||
if(General.Map.Config.LineTagIndicatesSectors)
|
||||
{
|
||||
// New association highlights something?
|
||||
if(l.Tag > 0) completeredraw = true;
|
||||
|
||||
// Use the line tag to highlight sectors (Doom style)
|
||||
if(General.Map.Config.LineTagIndicatesSectors)
|
||||
{
|
||||
if(l != null)
|
||||
association[0].Set(l.Tag, UniversalType.SectorTag);
|
||||
}
|
||||
else
|
||||
association[0].Set(0, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
if(l != null)
|
||||
{
|
||||
// Check if we can find the linedefs action
|
||||
if((l.Action > 0) && General.Map.Config.LinedefActions.ContainsKey(l.Action))
|
||||
action = General.Map.Config.LinedefActions[l.Action];
|
||||
|
||||
// Determine linedef associations
|
||||
for(int i = 0; i < Linedef.NUM_ARGS; i++)
|
||||
{
|
||||
// Previous association highlights something?
|
||||
if((association[i].type == UniversalType.SectorTag) ||
|
||||
(association[i].type == UniversalType.LinedefTag) ||
|
||||
(association[i].type == UniversalType.ThingTag)) completeredraw = true;
|
||||
}
|
||||
|
||||
// Determine linedef associations
|
||||
for(int i = 0; i < Linedef.NUM_ARGS; i++)
|
||||
{
|
||||
// Previous association highlights something?
|
||||
if((association[i].type == UniversalType.SectorTag) ||
|
||||
(association[i].type == UniversalType.LinedefTag) ||
|
||||
(association[i].type == UniversalType.ThingTag)) completeredraw = true;
|
||||
|
||||
// Make new association
|
||||
if(action != null)
|
||||
association[i].Set(l.Args[i], action.Args[i].Type);
|
||||
else
|
||||
association[i].Set(0, 0);
|
||||
// Make new association
|
||||
if(action != null)
|
||||
association[i].Set(l.Args[i], action.Args[i].Type);
|
||||
else
|
||||
association[i].Set(0, 0);
|
||||
|
||||
// New association highlights something?
|
||||
if((association[i].type == UniversalType.SectorTag) ||
|
||||
(association[i].type == UniversalType.LinedefTag) ||
|
||||
(association[i].type == UniversalType.ThingTag)) completeredraw = true;
|
||||
}
|
||||
// New association highlights something?
|
||||
if((association[i].type == UniversalType.SectorTag) ||
|
||||
(association[i].type == UniversalType.LinedefTag) ||
|
||||
(association[i].type == UniversalType.ThingTag)) completeredraw = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -215,9 +215,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
else if(asso.type == UniversalType.LinedefTag)
|
||||
{
|
||||
foreach(Linedef l in General.Map.Map.Linedefs)
|
||||
{
|
||||
if(l.Tag == asso.tag) renderer.PlotLinedef(l, General.Colors.Indication);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -232,9 +230,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
if(asso.type == UniversalType.ThingTag)
|
||||
{
|
||||
foreach(Thing t in General.Map.Map.Things)
|
||||
{
|
||||
if(t.Tag == asso.tag) renderer.RenderThing(t, General.Colors.Indication, 1.0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue