Adjust item menu prompt and option order
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// Maintainer-controlled web client version.
|
||||
// Format: YYYY.MM.DD Rn (example: 2026.02.20 R2)
|
||||
window.CHGRID_WEB_VERSION = "2026.03.01 R323";
|
||||
window.CHGRID_WEB_VERSION = "2026.03.01 R324";
|
||||
// Optional display timezone for timestamps. Falls back to America/Detroit if unset/invalid.
|
||||
window.CHGRID_TIME_ZONE = "America/Detroit";
|
||||
|
||||
@@ -1063,12 +1063,12 @@ function canManageTransferItem(item: WorldItem): boolean {
|
||||
/** Builds available item-management actions for one selected item. */
|
||||
function itemManagementOptionsFor(item: WorldItem): ItemManagementOption[] {
|
||||
const options: ItemManagementOption[] = [];
|
||||
if (canManageDeleteItem(item)) {
|
||||
options.push({ action: 'delete', label: 'Delete item' });
|
||||
}
|
||||
if (canManageTransferItem(item) && (state.player.id !== null || state.peers.size > 0)) {
|
||||
options.push({ action: 'transfer', label: 'Transfer item' });
|
||||
}
|
||||
if (canManageDeleteItem(item)) {
|
||||
options.push({ action: 'delete', label: 'Delete item' });
|
||||
}
|
||||
return options;
|
||||
}
|
||||
|
||||
@@ -1089,7 +1089,7 @@ function beginItemManagement(item: WorldItem): void {
|
||||
itemManagementOptions = options;
|
||||
itemManagementOptionIndex = 0;
|
||||
state.mode = 'itemManageOptions';
|
||||
updateStatus(itemManagementOptions[0].label);
|
||||
updateStatus('Items.');
|
||||
audio.sfxUiBlip();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user