-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2bcebc8
commit 3b08518
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/main/java/ua/leonidius/trdinterface/sell/SellFailScreen.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package ua.leonidius.trdinterface.sell; | ||
|
||
import cn.nukkit.event.player.PlayerFormRespondedEvent; | ||
import cn.nukkit.form.element.ElementButton; | ||
import cn.nukkit.form.window.FormWindowSimple; | ||
import ua.leonidius.trdinterface.Message; | ||
import ua.leonidius.trdinterface.screens.Screen; | ||
|
||
public class SellFailScreen extends FormWindowSimple implements Screen { | ||
|
||
public SellFailScreen() { | ||
super(Message.WDW_FAIL_TITLE.getText(), Message.WDW_SELL_NOTHING.getText()); | ||
addButton(new ElementButton(Message.BTN_BACK.getText())); | ||
} | ||
|
||
public void onResponse(PlayerFormRespondedEvent event) { | ||
event.getPlayer().showFormWindow(new SellItemSelectorScreen(event.getPlayer().getInventory())); | ||
} | ||
} |