]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
MenuQC: only draw slider label if textSpace > 0
authorFreddy <schro.sb@gmail.com>
Fri, 12 May 2023 16:20:19 +0000 (18:20 +0200)
committerFreddy <schro.sb@gmail.com>
Fri, 12 May 2023 16:20:19 +0000 (18:20 +0200)
qcsrc/menu/item/slider.qc

index ce80fcdde364e09eb3dcf71f76ae2c908d8bbd1e..ac41b4a463d369e13a357e674802de7c14caf3e3 100644 (file)
                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!
        }