28 lines
796 B
GDScript
28 lines
796 B
GDScript
extends "res://scripts/AlternativeChoices/AlternativeChoiceBase.gd"
|
|
|
|
func Localization():
|
|
localization = ["", "choice15.3", ""];
|
|
|
|
func SetCursorStates():
|
|
cursorStates = [CursorState.Walk, CursorState.Walk, CursorState.Press];
|
|
|
|
func AdjustLabels():
|
|
$Labels / a2.rect_global_position.y = $Labels / a2.rect_global_position.y - 25;
|
|
|
|
func CheckForVariables():
|
|
$SpriteButtons / a2.visible = int(Dialogic.get_variable("Time")) < 45;
|
|
|
|
func _on_a1_button_up():
|
|
if not CheckHover():return ;
|
|
Dialogic.set_variable("PreviousTimelineChoice", "back");
|
|
End()
|
|
|
|
func _on_a2_button_up():
|
|
if not CheckHover():return ;
|
|
Dialogic.set_variable("PreviousTimelineChoice", "smoking");
|
|
End()
|
|
|
|
func _on_a3_button_up():
|
|
if not CheckHover():return ;
|
|
Dialogic.set_variable("PreviousTimelineChoice", "text");
|
|
End()
|