convert silly DoXXX names to just XXX
This commit is contained in:
@@ -160,7 +160,7 @@ namespace OpenRA
|
|||||||
using( new PerfSample( "tick_time" ) )
|
using( new PerfSample( "tick_time" ) )
|
||||||
{
|
{
|
||||||
orderManager.LastTickTime += Settings.Game.Timestep;
|
orderManager.LastTickTime += Settings.Game.Timestep;
|
||||||
Ui.DoTick();
|
Ui.Tick();
|
||||||
var world = orderManager.world;
|
var world = orderManager.world;
|
||||||
if (orderManager.GameStarted)
|
if (orderManager.GameStarted)
|
||||||
++Viewport.TicksSinceLastMove;
|
++Viewport.TicksSinceLastMove;
|
||||||
|
|||||||
@@ -126,7 +126,7 @@ namespace OpenRA.Graphics
|
|||||||
|
|
||||||
using( new PerfSample("render_widgets") )
|
using( new PerfSample("render_widgets") )
|
||||||
{
|
{
|
||||||
Ui.DoDraw();
|
Ui.Draw();
|
||||||
var cursorName = Ui.RootWidget.GetCursorOuter(Viewport.LastMousePos) ?? "default";
|
var cursorName = Ui.RootWidget.GetCursorOuter(Viewport.LastMousePos) ?? "default";
|
||||||
var cursorSequence = CursorProvider.GetCursorSequence(cursorName);
|
var cursorSequence = CursorProvider.GetCursorSequence(cursorName);
|
||||||
var cursorSprite = cursorSequence.GetSprite((int)cursorFrame);
|
var cursorSprite = cursorSequence.GetSprite((int)cursorFrame);
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#region Copyright & License Information
|
#region Copyright & License Information
|
||||||
/*
|
/*
|
||||||
* Copyright 2007-2011 The OpenRA Developers (see AUTHORS)
|
* Copyright 2007-2011 The OpenRA Developers (see AUTHORS)
|
||||||
* This file is part of OpenRA, which is free software. It is made
|
* This file is part of OpenRA, which is free software. It is made
|
||||||
@@ -35,12 +35,12 @@ namespace OpenRA
|
|||||||
|
|
||||||
public void OnKeyInput( KeyInput input )
|
public void OnKeyInput( KeyInput input )
|
||||||
{
|
{
|
||||||
Sync.CheckSyncUnchanged(world, () => Ui.DoHandleKeyPress(input));
|
Sync.CheckSyncUnchanged(world, () => Ui.HandleKeyPress(input));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OnMouseInput( MouseInput input )
|
public void OnMouseInput( MouseInput input )
|
||||||
{
|
{
|
||||||
Sync.CheckSyncUnchanged(world, () => Ui.DoHandleInput(input));
|
Sync.CheckSyncUnchanged(world, () => Ui.HandleInput(input));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,17 +52,11 @@ namespace OpenRA.Widgets
|
|||||||
return Game.modData.WidgetLoader.LoadWidget(args, parent, id);
|
return Game.modData.WidgetLoader.LoadWidget(args, parent, id);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void DoTick()
|
public static void Tick() { RootWidget.TickOuter(); }
|
||||||
{
|
|
||||||
RootWidget.TickOuter();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void DoDraw()
|
public static void Draw() { RootWidget.DrawOuter(); }
|
||||||
{
|
|
||||||
RootWidget.DrawOuter();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static bool DoHandleInput(MouseInput mi)
|
public static bool HandleInput(MouseInput mi)
|
||||||
{
|
{
|
||||||
var wasMouseOver = MouseOverWidget;
|
var wasMouseOver = MouseOverWidget;
|
||||||
|
|
||||||
@@ -94,7 +88,7 @@ namespace OpenRA.Widgets
|
|||||||
return handled;
|
return handled;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static bool DoHandleKeyPress(KeyInput e)
|
public static bool HandleKeyPress(KeyInput e)
|
||||||
{
|
{
|
||||||
if (SelectedWidget != null)
|
if (SelectedWidget != null)
|
||||||
return SelectedWidget.HandleKeyPressOuter(e);
|
return SelectedWidget.HandleKeyPressOuter(e);
|
||||||
|
|||||||
Reference in New Issue
Block a user