Tweak ra lobby scrollpanel margins.

This commit is contained in:
Paul Chote
2010-11-28 10:41:41 +13:00
parent 748a055a24
commit 306bece709
2 changed files with 5 additions and 3 deletions

View File

@@ -90,6 +90,8 @@ namespace OpenRA.Widgets
{ {
if (UpPressed && ListOffset <= 0) ListOffset += ScrollVelocity; if (UpPressed && ListOffset <= 0) ListOffset += ScrollVelocity;
if (DownPressed) ListOffset -= ScrollVelocity; if (DownPressed) ListOffset -= ScrollVelocity;
if (ListOffset > 0) ListOffset = 0;
} }
public override bool LoseFocus (MouseInput mi) public override bool LoseFocus (MouseInput mi)

View File

@@ -33,13 +33,13 @@ Background@SERVER_LOBBY:
Id:PLAYERSX Id:PLAYERSX
X:20 X:20
Y:75 Y:75
Width:500 Width:504
Height:227 Height:227
Children: Children:
Container@PLAYERS: Container@PLAYERS:
Id:PLAYERS Id:PLAYERS
X:2 X:5
Y:1 Y:5
Width:500 Width:500
Height:2270 Height:2270
Children: Children: