bunch of fixes and changes done

This commit is contained in:
Tabby 2026-01-17 17:07:53 +11:00
parent 4a9193e549
commit 73b9a706a3
59 changed files with 940 additions and 68 deletions

View file

@ -1,6 +1,6 @@
extends PanelContainer
@export var tooltip_label : Label
@export var tooltip_label : RichTextLabel
@export var exdata_box : VBoxContainer
@export var exdata_label : Label
@ -14,8 +14,10 @@ func _ready() -> void:
func _process(delta: float) -> void:
global_position = get_global_mouse_position() + Vector2(12,-6)
func show_tip(text : String, extra : String = ""):
tooltip_label.text = text
func show_tip(item : ItemData, extra : String = ""):
tooltip_label.text = item.item_name + "\nSell Value: $"+str(floori(item.buy_value/float(2)))
if item.botnet_power > 0:
tooltip_label.text += "\n[color=orchid]Botnet Power: " + str(item.botnet_power) +"[/color]"
if extra != "":
exdata_box.show()
exdata_label.text = extra