draw full-ring notes properly

This commit is contained in:
msk
2023-09-29 17:58:32 -07:00
parent 3b871463a7
commit ce81b0cdbf
+5 -1
View File
@@ -5,6 +5,8 @@ namespace WacK.Things.TunnelObjects
{ {
public partial class THNotePlay : Control public partial class THNotePlay : Control
{ {
[Export]
private NinePatchRect noteBase;
public NotePlay noteData; public NotePlay noteData;
public void Init(NotePlay noteData) public void Init(NotePlay noteData)
@@ -23,7 +25,9 @@ namespace WacK.Things.TunnelObjects
else if (size >= 60) else if (size >= 60)
{ {
size = 60; size = 60;
// remove padding noteBase.RegionRect = new Rect2(12, 0, new Vector2(488, 36));
noteBase.PatchMarginLeft = 0;
noteBase.PatchMarginRight = 0;
} }
var nPos = Position; var nPos = Position;