copy constructors
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#region Copyright & License Information
|
||||
#region Copyright & License Information
|
||||
/*
|
||||
* Copyright 2007,2009,2010 Chris Forbes, Robert Pepperell, Matthew Bowra-Dean, Paul Chote, Alli Witheford.
|
||||
* This file is part of OpenRA.
|
||||
@@ -30,6 +30,12 @@ namespace OpenRA.Widgets
|
||||
{
|
||||
const int worldTooltipDelay = 10; /* ticks */
|
||||
|
||||
public WorldTooltipWidget() : base() { }
|
||||
|
||||
public WorldTooltipWidget(Widget other) : base(other) { }
|
||||
|
||||
public override Widget Clone() { return new WorldTooltipWidget(this); }
|
||||
|
||||
public override void Draw(World world)
|
||||
{
|
||||
if (Game.chrome.ticksSinceLastMove < worldTooltipDelay || world == null || world.LocalPlayer == null)
|
||||
|
||||
Reference in New Issue
Block a user