P24-03: 選択と保存の受入
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user