Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible issue with options controller? #26

Open
onedayitwillmake opened this issue Jul 14, 2011 · 0 comments
Open

Possible issue with options controller? #26

onedayitwillmake opened this issue Jul 14, 2011 · 0 comments
Labels

Comments

@onedayitwillmake
Copy link

Calling the setValue function of an options controller does not modify the selected index of the drop down.
Modifying the selected index of the drop down, does not modify the initial value when you call getValue();

// Temp work around i'm doing is to just set both
var realIndex = parseInt( localStorage.getItem("lastSlot") );

var slotController = this._gui.add(this, '_currentSlot')
    .options([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
    .name("Save Slot");
slotController.domElement.childNodes[1].selectedIndex = realIndex;
slotController.setValue( realIndex )
@donmccurdy donmccurdy added the bug label Jan 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants