From: Freddy Date: Fri, 12 May 2023 16:20:19 +0000 (+0200) Subject: MenuQC: only draw slider label if textSpace > 0 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8a4cbe5c8aa837aa8eb32c7d5f9ba95bd33f76fa;p=xonotic%2Fxonotic-data.pk3dir.git MenuQC: only draw slider label if textSpace > 0 --- 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! }