P24-03: 選択と保存の受入

This commit is contained in:
Agent Control Runner
2026-10-13 00:57:32 +09:00
parent 286730f88c
commit 9c711860a8
10 changed files with 408 additions and 3 deletions
+4 -1
View File
@@ -90,7 +90,10 @@ func refresh(select_first_if_empty: bool = true) -> void:
if not _ids.has(selected_guest_id) and (not selected_guest_id.is_empty() or select_first_if_empty):
selected_guest_id = _ids[0] if not _ids.is_empty() else &""
guests.disabled = _ids.is_empty()
if not _ids.is_empty(): guests.select(_ids.find(selected_guest_id))
if _ids.has(selected_guest_id):
guests.select(_ids.find(selected_guest_id))
else:
guests.select(-1)
var report: Dictionary = service.get_observation(selected_guest_id)
for need: StringName in bars:
bars[need].value = report.get(&"needs", {}).get(need, 0)