feat: complete playtest parity improvements
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
class_name InventoryPanel
|
||||
extends PanelContainer
|
||||
|
||||
@onready var entries: RichTextLabel = $Entries
|
||||
@onready var details: RichTextLabel = $Details
|
||||
@onready var entries: RichTextLabel = $Layout/Columns/Entries
|
||||
@onready var details: RichTextLabel = $Layout/Columns/Details
|
||||
|
||||
var selected_index := 0
|
||||
var _inventory: InventoryState
|
||||
@@ -53,7 +53,7 @@ func refresh() -> void:
|
||||
var stats := _identification.display_stats(item) if _identification != null else ""
|
||||
var description := String(item.definition.raw.get("description", "")) if _identification == null or _identification.is_identified(item) else "Its properties are not yet known."
|
||||
var comparison := _equipment.comparison_for(item, _identification) if _equipment != null else ""
|
||||
details.text = "%s\n%s\n%s\n\n%s\n\n%s\n↑/↓ Select E Equip U Use D Drop I Close" % [name, stats, description, comparison, equipment_summary]
|
||||
details.text = "%s\n%s\n%s\n\n%s\n\n%s" % [name, stats, description, comparison, equipment_summary]
|
||||
|
||||
func _equipment_summary() -> String:
|
||||
if _equipment == null or _identification == null:
|
||||
|
||||
Reference in New Issue
Block a user