Make DraggableUI use button theme

This commit is contained in:
2026-02-08 00:47:27 -07:00
parent ab66b041fb
commit 5edad1fbe7

View File

@@ -14,7 +14,8 @@ public class DraggableUI : MonoBehaviour, IDragHandler, IBeginDragHandler
void CreateOutline() 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; float thickness = 2f;
CreateSide("Top", new Vector2(0, 1), new Vector2(1, 1), new Vector2(0, thickness), borderColor); 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() public void Awake()
{ {
Instance = this; Instance = this;
}
void Start()
{
CreateOutline(); CreateOutline();
} }