aboutsummaryrefslogtreecommitdiffstats
path: root/classes/BowelyzerGUI.sc
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2016-07-25 19:40:09 +0200
committerDavid Runge <dave@sleepmap.de>2016-07-25 19:40:09 +0200
commitd9232f2f1c054c2b4e4df016fc9b040899f6c18b (patch)
tree669d7f8f673d59bf13f1a7e19bed28e3dfe73082 /classes/BowelyzerGUI.sc
parent95962308af3cf8850736332591a19f6399c7ec28 (diff)
downloadbowelyzer-d9232f2f1c054c2b4e4df016fc9b040899f6c18b.tar.gz
bowelyzer-d9232f2f1c054c2b4e4df016fc9b040899f6c18b.tar.bz2
bowelyzer-d9232f2f1c054c2b4e4df016fc9b040899f6c18b.tar.xz
bowelyzer-d9232f2f1c054c2b4e4df016fc9b040899f6c18b.zip
classes/BowelyzerGUI.sc: Make width of controlsGroupButton dependant on its amount of letters in the name.
Diffstat (limited to 'classes/BowelyzerGUI.sc')
-rw-r--r--classes/BowelyzerGUI.sc3
1 files changed, 1 insertions, 2 deletions
diff --git a/classes/BowelyzerGUI.sc b/classes/BowelyzerGUI.sc
index fc5444b..162f26a 100644
--- a/classes/BowelyzerGUI.sc
+++ b/classes/BowelyzerGUI.sc
@@ -392,7 +392,7 @@ BowelyzerGUI{
// setup a Button for a control group by name
setupControlsGroupButton{
arg group, parent;
- Button(parent: parent, bounds: Rect(0, 0, buttonWidth, buttonHeight))
+ Button(parent: parent, bounds: Rect(0, 0, (8*group.asString.size), buttonHeight))
.states_([
[group.asString, Color.black, Color.fromHexString("#99FF99")]
])
@@ -400,7 +400,6 @@ BowelyzerGUI{
arg controlUnit;
this.showControlsByType(controlUnit.string, controlUnit.parent.children, controlUnit.parent.parent);
})
- .maxSize_(buttonWidth@buttonHeight)
.name_(group.asString++"Button")
;
}