mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-26 17:29:30 +02:00
Reapply "Disable A button on blank slots"
This reverts commit 5afbedd27e
.
This commit is contained in:
parent
907fafe3f0
commit
f8dc5f5b19
@ -110,13 +110,15 @@ export default class LogSelectUiHandler extends MessageUiHandler {
|
||||
const originalCallback = this.selectCallback;
|
||||
const cursor = this.cursor + this.scrollCursor;
|
||||
var k = this.sessionSlots[cursor].key
|
||||
var file = JSON.parse(localStorage.getItem(k)) as LoggerTools.DRPD;
|
||||
console.log(k, file)
|
||||
LoggerTools.generateEditHandlerForLog(this.scene, this.sessionSlots[cursor].logIndex, () => {
|
||||
this.selectCallback = null;
|
||||
originalCallback(k)
|
||||
})()
|
||||
success = true;
|
||||
if (k != undefined) {
|
||||
var file = JSON.parse(localStorage.getItem(k)) as LoggerTools.DRPD;
|
||||
console.log(k, file)
|
||||
LoggerTools.generateEditHandlerForLog(this.scene, this.sessionSlots[cursor].logIndex, () => {
|
||||
this.selectCallback = null;
|
||||
originalCallback(k)
|
||||
})()
|
||||
success = true;
|
||||
}
|
||||
} else if (button === Button.CANCEL) {
|
||||
this.quitCallback(undefined);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user