2021-12-12 17:04:17 +01:00
tool
extends Resource
class_name SummerDayEditable
2021-11-21 11:46:04 +01:00
2022-01-02 03:09:18 +01:00
var preference_number = 0
2021-11-21 11:46:04 +01:00
2022-01-02 03:09:18 +01:00
func _check_for_selection_candidate ( event : InputEvent ) - > bool : # Virtual.
return false
2021-11-21 11:46:04 +01:00
2022-01-02 03:09:18 +01:00
# Returns false if input was potentially meant for a different editable.
func _interact ( event : InputEvent ) - > bool : # Virtual.
return false
2021-11-21 11:46:04 +01:00
2022-01-02 03:09:18 +01:00
func _update_table ( table : SummerDayTable ) : # Virtual.
2021-12-12 17:04:17 +01:00
pass
2022-01-03 23:53:28 +01:00
func _draw_interaction_hint ( ) : # Virtual.
pass
func update_interaction_hint ( ) :
SummerDay . interaction_hint . clear ( )
_draw_interaction_hint ( )
func draw_dot ( position : Vector3 , color : Color ) :
SummerDay . interaction_hint . draw_dot ( position , color )
func draw_line ( position_1 : Vector3 , position_2 : Vector3 ,
color : Color , second_color = null
) :
var color_2 : Color
if second_color == null :
color_2 = color
else :
color_2 = second_color
SummerDay . interaction_hint . draw_line (
position_1 , position_2 , color , color_2
)