Skip to content

Commit

Permalink
Tweak header positioning and scrollpanel scissoring (don't draw conte…
Browse files Browse the repository at this point in the history
…nts over the 1px border).
  • Loading branch information
pchote committed Nov 28, 2010
1 parent ce5ca9d commit 4bb70f1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion OpenRA.Game/Widgets/ScrollPanelWidget.cs
Expand Up @@ -71,7 +71,7 @@ public override void Draw( WorldRenderer wr )
WidgetUtils.DrawRGBA(ChromeProvider.GetImage("scrollbar", "down_arrow"),
new float2(downButtonRect.Left + downOffset, downButtonRect.Top + downOffset));

Game.Renderer.EnableScissor(backgroundRect.X, backgroundRect.Y + HeaderHeight, backgroundRect.Width, backgroundRect.Height - HeaderHeight);
Game.Renderer.EnableScissor(backgroundRect.X+1, backgroundRect.Y + HeaderHeight+1, backgroundRect.Width-2, backgroundRect.Height - HeaderHeight-2);

foreach (var child in Children)
child.Draw( wr );
Expand Down
26 changes: 13 additions & 13 deletions mods/ra/chrome/gamelobby.yaml
Expand Up @@ -32,9 +32,9 @@ Background@SERVER_LOBBY:
ScrollPanel@PLAYERSX:
Id:PLAYERSX
X:20
Y:75
Y:67
Width:504
Height:227
Height:235
Children:
Container@PLAYERS:
Id:PLAYERS
Expand Down Expand Up @@ -229,11 +229,11 @@ Background@SERVER_LOBBY:
Y:0
Container@LABEL_CONTAINER:
X:25
Y:45
Y:40
Children:
Label@LABEL_LOBBY_NAME:
Id:LABEL_LOBBY_NAME
Width:139
Width:150
Height:25
X:0
Y:0
Expand All @@ -242,39 +242,39 @@ Background@SERVER_LOBBY:
Bold:True
Label@LABEL_LOBBY_COLOR:
Id:LABEL_LOBBY_COLOR
Width:65
Width:80
Height:25
X:159
X:160
Y:0
Text:Color
Align:Center
Bold:True
Label@LABEL_LOBBY_FACTION:
Id:LABEL_LOBBY_FACTION
Width:110
Width:130
Height:25
X:244
X:250
Y:0
Text:Faction
Align:Center
Bold:True
Label@LABEL_LOBBY_TEAM:
Id:LABEL_LOBBY_TEAM
Width:70
Width:48
Height:25
X:351
X:390
Y:0
Text:Team
Align:Center
Bold:True
Label@LABEL_LOBBY_STATUS:
Id:LABEL_LOBBY_STATUS
X:420
X:448
Y:0
Width:70
Width:20
Height:25
Text:Ready
Align:Center
Align:Left
Bold:True
Button@CHANGEMAP_BUTTON:
Id:CHANGEMAP_BUTTON
Expand Down

0 comments on commit 4bb70f1

Please sign in to comment.