From 5bddca1735137bd44bb330d9d530ccab2d858c8c Mon Sep 17 00:00:00 2001 From: Frakits Date: Sat, 3 Feb 2024 10:06:33 +0200 Subject: [PATCH] fixed, added 3 strumliners --- .../editors/charter/ChartCreationScreen.hx | 24 +++++++++++++++++-- source/funkin/editors/ui/UIDropDown.hx | 2 +- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/source/funkin/editors/charter/ChartCreationScreen.hx b/source/funkin/editors/charter/ChartCreationScreen.hx index e48f42f9..616f3d10 100644 --- a/source/funkin/editors/charter/ChartCreationScreen.hx +++ b/source/funkin/editors/charter/ChartCreationScreen.hx @@ -82,13 +82,33 @@ class ChartCreationScreen extends UISubstateWindow { strumLinePos: 0.25, }, strumLineList)); } - strumLineList.add(new StrumLineButton(strumLineList.buttons.length, { - characters: ["bf"], + strumLineList.add(new StrumLineButton(0, { + characters: ["dad"], type: 0, notes: null, + position: "DAD", + strumPos: [0, 50], + strumLinePos: 0.25, + scrollSpeed: 1, + }, strumLineList)); + strumLineList.add(new StrumLineButton(1, { + characters: ["bf"], + type: 1, + notes: null, position: "BOYFRIEND", strumPos: [0, 50], strumLinePos: 0.75, + scrollSpeed: 1, + }, strumLineList)); + strumLineList.add(new StrumLineButton(2, { + characters: ["gf"], + type: 2, + notes: null, + position: "GIRLFRIEND", + strumPos: [0, 50], + strumLinePos: 0.50, + scrollSpeed: 1, + visible: false, }, strumLineList)); add(strumLineList); addLabelOn(strumLineList, "Strumlines").applyMarkup( diff --git a/source/funkin/editors/ui/UIDropDown.hx b/source/funkin/editors/ui/UIDropDown.hx index b5d8982d..1cb944b8 100644 --- a/source/funkin/editors/ui/UIDropDown.hx +++ b/source/funkin/editors/ui/UIDropDown.hx @@ -59,6 +59,6 @@ class UIDropDown extends UISliceSprite { } ], function(_, i, _) { setOption(i); - }, screenPos.x, screenPos.y + bHeight); + }, __lastDrawCameras[0].x + screenPos.x, __lastDrawCameras[0].y + screenPos.y + bHeight); } } \ No newline at end of file