]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix colorpicker dont update apply button
authorColdSpirit <coldspiritvolf@gmail.com>
Tue, 21 Dec 2021 08:55:47 +0000 (12:55 +0400)
committerColdSpirit <coldspiritvolf@gmail.com>
Tue, 21 Dec 2021 08:55:47 +0000 (12:55 +0400)
qcsrc/menu/xonotic/colorpicker.qc

index 46e698c2e2a1d6a9497ab6c25ffc350b776948ad..f01ab6fcc1dfc1d1480588003cefbe2bacd0c453 100644 (file)
@@ -19,6 +19,12 @@ void XonoticColorpicker_configureXonoticColorpicker(entity me, entity theTextbox
 METHOD(XonoticColorpicker, mousePress, bool(XonoticColorpicker this, vector pos))
 {
        this.mouseDrag(this, pos);
+
+    if(this.controlledTextbox.applyButton)
+    {
+        this.controlledTextbox.applyButton.disabled = false;
+    }
+
        return true;
 }