Faction Test v1.0.1.0
This commit is contained in:
@@ -6,7 +6,7 @@ namespace Barotrauma
|
||||
{
|
||||
private GUIListBox listBox;
|
||||
|
||||
private ContentXElement configElement;
|
||||
private readonly ContentXElement configElement;
|
||||
|
||||
private float scrollSpeed;
|
||||
|
||||
@@ -35,6 +35,8 @@ namespace Barotrauma
|
||||
set { listBox.BarScroll = value; }
|
||||
}
|
||||
|
||||
public readonly GUIButton CloseButton;
|
||||
|
||||
|
||||
public CreditsPlayer(RectTransform rectT, string configFile) : base(null, rectT)
|
||||
{
|
||||
@@ -49,6 +51,10 @@ namespace Barotrauma
|
||||
configElement = doc.Root.FromPackage(ContentPackageManager.VanillaCorePackage);
|
||||
|
||||
Load();
|
||||
|
||||
CloseButton = new GUIButton(new RectTransform(new Vector2(0.1f), RectTransform, Anchor.BottomRight, maxSize: new Point(GUI.IntScale(300), GUI.IntScale(50)))
|
||||
{ AbsoluteOffset = new Point(GUI.IntScale(20), GUI.IntScale(20) + (Rect.Bottom - GameMain.GraphicsHeight)) },
|
||||
TextManager.Get("close"));
|
||||
}
|
||||
|
||||
private void Load()
|
||||
|
||||
Reference in New Issue
Block a user