Add a ChromeLogic base class for chrome logic.

This commit is contained in:
Paul Chote
2015-10-20 22:57:25 +01:00
parent 1e890a921f
commit b6f463729b
69 changed files with 85 additions and 77 deletions

View File

@@ -19,7 +19,7 @@ using OpenRA.Widgets;
namespace OpenRA.Mods.Common.Widgets.Logic
{
class GlobalChatLogic : IDisposable
class GlobalChatLogic : ChromeLogic
{
readonly ScrollPanelWidget historyPanel;
readonly LabelWidget historyTemplate;
@@ -149,8 +149,10 @@ namespace OpenRA.Mods.Common.Widgets.Logic
}
bool disposed;
public void Dispose()
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
if (disposed)
return;