Make DraggableUI use button theme
This commit is contained in:
@@ -14,7 +14,8 @@ public class DraggableUI : MonoBehaviour, IDragHandler, IBeginDragHandler
|
||||
|
||||
void CreateOutline()
|
||||
{
|
||||
var borderColor = Color.cyan;
|
||||
var color = BazookaManager.Instance.GetColorSettingButton();
|
||||
Color borderColor = new(((float)color[0]) / 255f, ((float)color[1]) / 255f, ((float)color[2]) / 255f);
|
||||
float thickness = 2f;
|
||||
|
||||
CreateSide("Top", new Vector2(0, 1), new Vector2(1, 1), new Vector2(0, thickness), borderColor);
|
||||
@@ -43,6 +44,10 @@ public class DraggableUI : MonoBehaviour, IDragHandler, IBeginDragHandler
|
||||
public void Awake()
|
||||
{
|
||||
Instance = this;
|
||||
}
|
||||
|
||||
void Start()
|
||||
{
|
||||
CreateOutline();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user