fix diplomacy widget

This commit is contained in:
alzeih
2010-04-24 18:02:46 +12:00
parent 70ebec36eb
commit 17ae43c036

View File

@@ -1,4 +1,4 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
@@ -37,7 +37,7 @@ namespace OpenRA.Widgets.Delegates
var ts = new LabelWidget var ts = new LabelWidget
{ {
Bold = true, Bold = true,
Bounds = new Rectangle(bg.Bounds.X + margin + labelWidth + 10, bg.Bounds.Y + y, labelWidth, 25), Bounds = new Rectangle(margin + labelWidth + 10, y, labelWidth, 25),
Text = "Their Stance", Text = "Their Stance",
Align = "Left", Align = "Left",
}; };
@@ -48,7 +48,7 @@ namespace OpenRA.Widgets.Delegates
var ms = new LabelWidget var ms = new LabelWidget
{ {
Bold = true, Bold = true,
Bounds = new Rectangle(bg.Bounds.X + margin + 2 * labelWidth + 20, bg.Bounds.Y + y, labelWidth, 25), Bounds = new Rectangle(margin + 2 * labelWidth + 20, y, labelWidth, 25),
Text = "My Stance", Text = "My Stance",
Align = "Left", Align = "Left",
}; };
@@ -63,7 +63,7 @@ namespace OpenRA.Widgets.Delegates
var pp = p; var pp = p;
var label = new LabelWidget var label = new LabelWidget
{ {
Bounds = new Rectangle(bg.Bounds.X + margin, bg.Bounds.Y + y, labelWidth, 25), Bounds = new Rectangle(margin, y, labelWidth, 25),
Id = "DIPLOMACY_PLAYER_LABEL_{0}".F(p.Index), Id = "DIPLOMACY_PLAYER_LABEL_{0}".F(p.Index),
Text = p.PlayerName, Text = p.PlayerName,
Align = "Left", Align = "Left",
@@ -75,7 +75,7 @@ namespace OpenRA.Widgets.Delegates
var theirStance = new LabelWidget var theirStance = new LabelWidget
{ {
Bounds = new Rectangle(bg.Bounds.X + margin + labelWidth + 10, bg.Bounds.Y + y, labelWidth, 25), Bounds = new Rectangle( margin + labelWidth + 10, y, labelWidth, 25),
Id = "DIPLOMACY_PLAYER_LABEL_THEIR_{0}".F(p.Index), Id = "DIPLOMACY_PLAYER_LABEL_THEIR_{0}".F(p.Index),
Text = p.PlayerName, Text = p.PlayerName,
Align = "Left", Align = "Left",
@@ -89,7 +89,7 @@ namespace OpenRA.Widgets.Delegates
var myStance = new ButtonWidget var myStance = new ButtonWidget
{ {
Bounds = new Rectangle(bg.Bounds.X + margin + 2 * labelWidth + 20, bg.Bounds.Y + y, labelWidth, 25), Bounds = new Rectangle( margin + 2 * labelWidth + 20, y, labelWidth, 25),
Id = "DIPLOMACY_PLAYER_LABEL_MY_{0}".F(p.Index), Id = "DIPLOMACY_PLAYER_LABEL_MY_{0}".F(p.Index),
Text = Game.world.LocalPlayer.Stances[ pp ].ToString(), Text = Game.world.LocalPlayer.Stances[ pp ].ToString(),
}; };