From 2b468ad926cdd4724e99abf57cef1d4603dedb35 Mon Sep 17 00:00:00 2001 From: EliteMasterEric Date: Thu, 2 Nov 2023 17:40:00 -0400 Subject: [PATCH] Fix issue where changing width of dropdown would cause a crash --- assets | 2 +- source/funkin/ui/debug/charting/ChartEditorToolboxHandler.hx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/assets b/assets index 3f8299aba..9098a1df3 160000 --- a/assets +++ b/assets @@ -1 +1 @@ -Subproject commit 3f8299aba4e308a6c86ce8f499b697de04909ad2 +Subproject commit 9098a1df39f1320f2ea65fbac674b410ea3829dd diff --git a/source/funkin/ui/debug/charting/ChartEditorToolboxHandler.hx b/source/funkin/ui/debug/charting/ChartEditorToolboxHandler.hx index bd4f9ed06..4ee894f07 100644 --- a/source/funkin/ui/debug/charting/ChartEditorToolboxHandler.hx +++ b/source/funkin/ui/debug/charting/ChartEditorToolboxHandler.hx @@ -411,6 +411,7 @@ class ChartEditorToolboxHandler case ENUM: var dropDown:DropDown = new DropDown(); dropDown.id = field.name; + dropDown.width = 200.0; dropDown.dataSource = new ArrayDataSource(); if (field.keys == null) throw 'Field "${field.name}" is of Enum type but has no keys.';