Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Resolved ChatboxDialog.getOption(x).select() does not return true upon selection

Client Developer
Joined
Oct 12, 2015
Messages
3,781
JavaScript:
if(comp.getText().equals("Yes") && comp.select()){
            System.out.println("Selected");
            nmz.needToSetDream(false);
}

Successfully selects the option but does not print Selected nor set needToSetDream to false. In all other cases, I've seen boolean interact() return true after it completes successfully, so why is this not the case for Chat interaction?
 
@Vaped @Arbiter @SlashnHax
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
JavaScript:
if(comp.getText().equals("Yes") && comp.select()){
            System.out.println("Selected");
            nmz.needToSetDream(false);
}

Successfully selects the option but does not print Selected nor set needToSetDream to false. In all other cases, I've seen boolean interact() return true after it completes successfully, so why is this not the case for Chat interaction?
 
@Vaped @Arbiter @SlashnHax
Let me guess, the component doesn't change visibility and instead simply changes its text? Can you verify that? If it's the case, easy patch.
 
Client Developer
Joined
Oct 12, 2015
Messages
3,781
Let me guess, the component doesn't change visibility and instead simply changes its text? Can you verify that? If it's the case, easy patch.

Yeah the rest of the code snippet essentially just iterates through different chat options as they appear, if that's what you mean - idea is I want to change the value of a boolean only after the above option is selected.
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
Yeah the rest of the code snippet essentially just iterates through different chat options as they appear, if that's what you mean - idea is I want to change the value of a boolean only after the above option is selected.
Should be fixed now, please confirm.
 
Top