(965c31410a) Unstable v0.10.4.0
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Xml.Linq;
|
||||
|
||||
namespace Barotrauma
|
||||
@@ -144,6 +145,15 @@ namespace Barotrauma
|
||||
GetSize(element);
|
||||
}
|
||||
|
||||
public Sprite GetDefaultSprite()
|
||||
{
|
||||
return GetSprite(GUIComponent.ComponentState.None);
|
||||
}
|
||||
public Sprite GetSprite(GUIComponent.ComponentState state)
|
||||
{
|
||||
return Sprites.ContainsKey(state) ? Sprites[state]?.First()?.Sprite : null;
|
||||
}
|
||||
|
||||
public void GetSize(XElement element)
|
||||
{
|
||||
Point size = new Point(0, 0);
|
||||
|
||||
Reference in New Issue
Block a user