Apply consistent widget method names. Semantic change: Widgets that want to tick when !Visible must override TickOuter() instead of Tick().
This commit is contained in:
@@ -104,7 +104,7 @@ namespace OpenRA.Widgets
|
||||
return minIndex;
|
||||
}
|
||||
|
||||
public override bool HandleKeyPressInner(KeyInput e)
|
||||
public override bool HandleKeyPress(KeyInput e)
|
||||
{
|
||||
if (IsDisabled())
|
||||
return false;
|
||||
@@ -189,11 +189,9 @@ namespace OpenRA.Widgets
|
||||
blinkCycle = 20;
|
||||
showCursor ^= true;
|
||||
}
|
||||
|
||||
base.Tick();
|
||||
}
|
||||
|
||||
public override void DrawInner()
|
||||
public override void Draw()
|
||||
{
|
||||
var apparentText = GetApparentText();
|
||||
var font = Game.Renderer.Fonts[Font];
|
||||
|
||||
Reference in New Issue
Block a user