From 8a4cbe5c8aa837aa8eb32c7d5f9ba95bd33f76fa Mon Sep 17 00:00:00 2001 From: Freddy Date: Fri, 12 May 2023 18:20:19 +0200 Subject: [PATCH] MenuQC: only draw slider label if textSpace > 0 --- qcsrc/menu/item/slider.qc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qcsrc/menu/item/slider.qc b/qcsrc/menu/item/slider.qc index ce80fcdde..ac41b4a46 100644 --- a/qcsrc/menu/item/slider.qc +++ b/qcsrc/menu/item/slider.qc @@ -266,6 +266,9 @@ if (me.valueMax > me.valueMin) // valid? me.setText(me, me.valueToText(me, me.value)); draw_alpha = save; - SUPER(Slider).draw(me); + if (me.textSpace > 0) + { + SUPER(Slider).draw(me); + } me.text = string_null; // TEMPSTRING! } -- 2.39.2