dataarts / dat.gui

Lightweight controller library for JavaScript.
Apache License 2.0
7.51k stars 1.09k forks source link

How can I change "Close Controls" text? #270

Open Peque opened 4 years ago

Peque commented 4 years ago

Is it possible to change the "Close Controls" text? (i.e.: for translations)

This should apply to the "Open Controls" text too.

I have tried to:

gui.__closeButton.innerText = "xxx"

But if you click on it and then you open it back again, the text goes back to "Close Controls".

Peque commented 4 years ago

Having a look at the source code I have managed to do it with:

GUI.TEXT_CLOSED = "xxx"

Leaving this open since allowing this per-menu it seems to be a feature request (i.e.: different texts for different menus).

steinhh commented 2 years ago

Agreed - really want to be able to do it per-menu!