From 7baa626d002b721ef8d4219b60363ac8d8ff8afb Mon Sep 17 00:00:00 2001 From: frutescens Date: Mon, 30 Sep 2024 12:14:56 -0700 Subject: [PATCH] documentation --- src/ui/save-slot-select-ui-handler.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ui/save-slot-select-ui-handler.ts b/src/ui/save-slot-select-ui-handler.ts index ab7155e8e45..614676a048e 100644 --- a/src/ui/save-slot-select-ui-handler.ts +++ b/src/ui/save-slot-select-ui-handler.ts @@ -96,8 +96,6 @@ export default class SaveSlotSelectUiHandler extends MessageUiHandler { processInput(button: Button): boolean { const ui = this.getUi(); - - let success = false; let error = false; @@ -250,6 +248,10 @@ export default class SaveSlotSelectUiHandler extends MessageUiHandler { return changed; } + /** + * Helper function that checks if the session slot involved holds data or not + * @param hasData `true` if session slot contains data | 'false' if not + */ setArrowVisibility(hasData: boolean) { if (this.cursorObj) { const rightArrow = this.cursorObj?.getByName("rightArrow") as Phaser.GameObjects.Image;