Skip to content
Snippets Groups Projects
Commit 6d1fc277 authored by Matyáš Latner's avatar Matyáš Latner
Browse files

#387 Dialog button components parameters naming refactor

parent 371ed413
No related branches found
No related tags found
No related merge requests found
......@@ -49,19 +49,19 @@ public class PositiveNegativeButtonContentDialogComponent extends TwoButtonConte
this(yesInputListener, noInputListener, DEFAULT_POSITIVE_NEGATIVE_BUTTON_TYPE);
}
public PositiveNegativeButtonContentDialogComponent(InputListener yesInputListener, boolean firstuseOnce, InputListener noInputListener, boolean secondUseOnce) {
this(yesInputListener, firstuseOnce, noInputListener,secondUseOnce, DEFAULT_POSITIVE_NEGATIVE_BUTTON_TYPE);
public PositiveNegativeButtonContentDialogComponent(InputListener yesInputListener, boolean yesButtonUseOnce, InputListener noInputListener, boolean noButtonUseOnce) {
this(yesInputListener, yesButtonUseOnce, noInputListener, noButtonUseOnce, DEFAULT_POSITIVE_NEGATIVE_BUTTON_TYPE);
}
public PositiveNegativeButtonContentDialogComponent(InputListener yesInputListener, boolean firstUseOnce, InputListener noInputListener, boolean secondUseOnce, PositiveNegativeButtonType positiveNegativeButtonType) {
public PositiveNegativeButtonContentDialogComponent(InputListener yesInputListener, boolean yesButtonUseOnce, InputListener noInputListener, boolean noButtonUseOnce, PositiveNegativeButtonType positiveNegativeButtonType) {
super( ApplicationTextManager.getInstance().getText(positiveNegativeButtonType.getNegativeText()),
ApplicationTextManager.getInstance().getText(positiveNegativeButtonType.getPositiveText()),
new Image(ApplicationInternalTextureManager.getInstance().getTexture(ApplicationInternalTextureManager.BUTTON_NO_ICON)),
new Image(ApplicationInternalTextureManager.getInstance().getTexture(ApplicationInternalTextureManager.BUTTON_YES_ICON)),
StandardTablexiaButton.TablexiaButtonType.RED,
firstUseOnce,
yesButtonUseOnce,
StandardTablexiaButton.TablexiaButtonType.GREEN,
secondUseOnce,
noButtonUseOnce,
noInputListener,
yesInputListener
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment