(4f255a3b6) Modified: Video back button position
This commit is contained in:
@@ -25,7 +25,7 @@ namespace Barotrauma
|
|||||||
|
|
||||||
private Point scaledVideoResolution;
|
private Point scaledVideoResolution;
|
||||||
private readonly int borderSize = 20;
|
private readonly int borderSize = 20;
|
||||||
private readonly Point buttonSize = new Point(160, 50);
|
private readonly Point buttonSize = new Point(120, 30);
|
||||||
private readonly int titleHeight = 30;
|
private readonly int titleHeight = 30;
|
||||||
private readonly int objectiveFrameHeight = 60;
|
private readonly int objectiveFrameHeight = 60;
|
||||||
private readonly int textHeight = 25;
|
private readonly int textHeight = 25;
|
||||||
@@ -251,7 +251,7 @@ namespace Barotrauma
|
|||||||
{
|
{
|
||||||
videoFrame.RectTransform.AbsoluteOffset = new Point(0, (int)(100 * GUI.Scale));
|
videoFrame.RectTransform.AbsoluteOffset = new Point(0, (int)(100 * GUI.Scale));
|
||||||
|
|
||||||
okButton = new GUIButton(new RectTransform(scaledButtonSize, videoFrame.RectTransform, Anchor.TopLeft, Pivot.Center), TextManager.Get("Back"))
|
okButton = new GUIButton(new RectTransform(scaledButtonSize, videoFrame.RectTransform, Anchor.TopLeft, Pivot.TopLeft) { AbsoluteOffset = new Point(scaledBorderSize, scaledBorderSize) }, TextManager.Get("Back"))
|
||||||
{
|
{
|
||||||
OnClicked = DisposeVideo
|
OnClicked = DisposeVideo
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user