Fixed mission text overflowing in shiftsummary, netlobbyscreen button layout improvement
This commit is contained in:
@@ -35,8 +35,8 @@ namespace Barotrauma
|
|||||||
{
|
{
|
||||||
this.gameSession = gameSession;
|
this.gameSession = gameSession;
|
||||||
|
|
||||||
startLocation = gameSession.Map==null ? null : gameSession.Map.CurrentLocation;
|
startLocation = gameSession.Map==null ? null : gameSession.Map.CurrentLocation;
|
||||||
endLocation = gameSession.Map==null ? null : gameSession.Map.SelectedLocation;
|
endLocation = gameSession.Map==null ? null : gameSession.Map.SelectedLocation;
|
||||||
|
|
||||||
selectedMission = gameSession.Mission;
|
selectedMission = gameSession.Mission;
|
||||||
}
|
}
|
||||||
@@ -122,15 +122,15 @@ namespace Barotrauma
|
|||||||
new GUITextBlock(new Rectangle(0, y, 0, 20), "Mission: " + GameMain.GameSession.Mission.Name, GUI.Style, innerFrame, GUI.LargeFont);
|
new GUITextBlock(new Rectangle(0, y, 0, 20), "Mission: " + GameMain.GameSession.Mission.Name, GUI.Style, innerFrame, GUI.LargeFont);
|
||||||
y += 30;
|
y += 30;
|
||||||
|
|
||||||
new GUITextBlock(new Rectangle(0, y, 0, 30),
|
new GUITextBlock(new Rectangle(0, y, innerFrame.Rect.Width - 170, 0),
|
||||||
(GameMain.GameSession.Mission.Completed) ? GameMain.GameSession.Mission.SuccessMessage : GameMain.GameSession.Mission.FailureMessage,
|
(GameMain.GameSession.Mission.Completed) ? GameMain.GameSession.Mission.SuccessMessage : GameMain.GameSession.Mission.FailureMessage+" asdf asdf rthdrthfgdh dsrt dfgh dftsret dfth dftdthdft sdre sdr ds askjinflaje wwwwwwwwww wwwwwwww wwwwwwwwwwwwwww wwwwwwwwwww",
|
||||||
GUI.Style, innerFrame);
|
GUI.Style, innerFrame, true);
|
||||||
y += 40;
|
//y += 50;
|
||||||
|
|
||||||
if (GameMain.GameSession.Mission.Completed && singleplayer)
|
if (GameMain.GameSession.Mission.Completed && singleplayer)
|
||||||
{
|
{
|
||||||
new GUITextBlock(new Rectangle(0, y, 0, 30), "Reward: " + GameMain.GameSession.Mission.Reward, GUI.Style, innerFrame);
|
new GUITextBlock(new Rectangle(0, 0, 0, 30), "Reward: " + GameMain.GameSession.Mission.Reward, GUI.Style, Alignment.BottomLeft, Alignment.BottomLeft, innerFrame);
|
||||||
y += 30;
|
//y += 30;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -299,8 +299,6 @@ namespace Barotrauma
|
|||||||
{
|
{
|
||||||
GameMain.LightManager.LosEnabled = false;
|
GameMain.LightManager.LosEnabled = false;
|
||||||
|
|
||||||
GUI.ScreenOverlayColor = Color.Transparent;
|
|
||||||
|
|
||||||
textBox.Select();
|
textBox.Select();
|
||||||
|
|
||||||
Character.Controlled = null;
|
Character.Controlled = null;
|
||||||
@@ -429,15 +427,15 @@ namespace Barotrauma
|
|||||||
GameMain.GraphicsWidth<1000 ? GUI.SmallFont : GUI.Font);
|
GameMain.GraphicsWidth<1000 ? GUI.SmallFont : GUI.Font);
|
||||||
jobText.UserData = job;
|
jobText.UserData = job;
|
||||||
|
|
||||||
GUIButton infoButton = new GUIButton(new Rectangle(0, 0, 15, 15), "?", GUI.Style, jobText);
|
GUIButton infoButton = new GUIButton(new Rectangle(0, 2, 15, 15), "?", GUI.Style, jobText);
|
||||||
infoButton.UserData = -1;
|
infoButton.UserData = -1;
|
||||||
infoButton.OnClicked += ViewJobInfo;
|
infoButton.OnClicked += ViewJobInfo;
|
||||||
|
|
||||||
GUIButton upButton = new GUIButton(new Rectangle(30, 0, 15, 15), "^", GUI.Style, jobText);
|
GUIButton upButton = new GUIButton(new Rectangle(30, 2, 15, 15), "^", GUI.Style, jobText);
|
||||||
upButton.UserData = -1;
|
upButton.UserData = -1;
|
||||||
upButton.OnClicked += ChangeJobPreference;
|
upButton.OnClicked += ChangeJobPreference;
|
||||||
|
|
||||||
GUIButton downButton = new GUIButton(new Rectangle(50, 0, 15, 15), "˅", GUI.Style, jobText);
|
GUIButton downButton = new GUIButton(new Rectangle(50, 2, 15, 15), "˅", GUI.Style, jobText);
|
||||||
downButton.UserData = 1;
|
downButton.UserData = 1;
|
||||||
downButton.OnClicked += ChangeJobPreference;
|
downButton.OnClicked += ChangeJobPreference;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user