From 4ea081cc6cdce7f6048fc78ab4330453fad05291 Mon Sep 17 00:00:00 2001 From: codeimp Date: Fri, 22 Feb 2008 17:20:10 +0000 Subject: [PATCH] added sector effect description in info panel --- Source/Interface/SectorInfoPanel.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Source/Interface/SectorInfoPanel.cs b/Source/Interface/SectorInfoPanel.cs index 72d0f336..a25d8e23 100644 --- a/Source/Interface/SectorInfoPanel.cs +++ b/Source/Interface/SectorInfoPanel.cs @@ -43,13 +43,21 @@ namespace CodeImp.DoomBuilder.Interface // This shows the info public void ShowInfo(Sector s) { + string effectinfo = ""; + int sheight = s.CeilHeight - s.FloorHeight; - // TODO: Lookup effect description in config + // Lookup effect description in config + if(General.Map.Config.SectorEffects.ContainsKey(s.Effect)) + effectinfo = General.Map.Config.SectorEffects[s.Effect].ToString(); + else if(s.Effect == 0) + effectinfo = s.Effect.ToString() + " - Normal"; + else + effectinfo = s.Effect.ToString() + " - Unknown"; // Sector info sectorinfo.Text = " Sector " + s.Index.ToString() + " "; - effect.Text = s.Effect.ToString(); + effect.Text = effectinfo; ceiling.Text = s.CeilHeight.ToString(); floor.Text = s.FloorHeight.ToString(); tag.Text = s.Tag.ToString();