Restore option readout and simplify channel tooltip

This commit is contained in:
Jage9
2026-02-21 20:59:18 -05:00
parent 7a1bf08eb5
commit e2145a401f
3 changed files with 7 additions and 2 deletions

View File

@@ -771,6 +771,11 @@ function describeItemPropertyHelp(item: WorldItem, key: string): string {
if (metadata?.range) {
const stepText = metadata.range.step !== undefined ? ` step ${metadata.range.step}` : '';
parts.push(`Range: ${metadata.range.min} to ${metadata.range.max}${stepText}.`);
} else {
const options = getItemPropertyOptionValues(key);
if (options && options.length > 0) {
parts.push(`Options: ${options.join(', ')}.`);
}
}
parts.push(EDITABLE_ITEM_PROPERTY_KEYS.has(key) ? 'Editable.' : 'Read only.');