started on crafting and clock panels
This commit is contained in:
parent
aa81f860b5
commit
f58fd81ec5
20 changed files with 506 additions and 68 deletions
45
inv_system/crafting_panel.gd
Normal file
45
inv_system/crafting_panel.gd
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
extends Inventory
|
||||
|
||||
@export var action_button : Button
|
||||
#@export var no_style : StyleBox
|
||||
@export var assemble_style : StyleBox
|
||||
@export var assemble_style_hover : StyleBox
|
||||
@export var assemble_style_pressed : StyleBox
|
||||
@export var scavenge_style : StyleBox
|
||||
@export var scavenge_style_hover : StyleBox
|
||||
@export var scavenge_style_pressed : StyleBox
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
super()
|
||||
style_scavenge()
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
super(delta)
|
||||
pass
|
||||
|
||||
func _notification(what: int) -> void:
|
||||
super(what)
|
||||
if what == Node.NOTIFICATION_DRAG_END:
|
||||
# check against recipies!
|
||||
pass
|
||||
|
||||
func style_assemble():
|
||||
action_button.add_theme_stylebox_override("normal",assemble_style)
|
||||
action_button.add_theme_stylebox_override("hover",assemble_style_hover)
|
||||
action_button.add_theme_stylebox_override("pressed",assemble_style_pressed)
|
||||
|
||||
func style_scavenge():
|
||||
action_button.add_theme_stylebox_override("normal",scavenge_style)
|
||||
action_button.add_theme_stylebox_override("hover",scavenge_style_hover)
|
||||
action_button.add_theme_stylebox_override("pressed",scavenge_style_pressed)
|
||||
|
||||
func style_none():
|
||||
action_button.remove_theme_stylebox_override("normal")
|
||||
action_button.remove_theme_stylebox_override("hover")
|
||||
action_button.remove_theme_stylebox_override("pressed")
|
||||
Loading…
Add table
Add a link
Reference in a new issue