34 lines
1 KiB
GDScript
34 lines
1 KiB
GDScript
extends "res://scripts/AlternativeChoices/AlternativeChoiceBase.gd"
|
|
|
|
func Localization():
|
|
localization = ["", "choice22.3", "choice21.1", "choice21.9"]
|
|
|
|
func SetCursorStates():
|
|
cursorStates = [CursorState.Talk, CursorState.Walk, CursorState.Walk, CursorState.Walk, ];
|
|
|
|
func AdjustLabels():
|
|
$Labels / a1.rect_global_position = Vector2(10, 605);
|
|
$Labels / a2.rect_global_position.y = 605;
|
|
|
|
func _on_Yellow_button_up():
|
|
if not CheckHover():return ;
|
|
if Dialogic.get_variable("130") == "1":
|
|
Dialogic.set_variable("PreviousTimelineChoice", "130.2");
|
|
else :
|
|
Dialogic.set_variable("PreviousTimelineChoice", "130.1");
|
|
End()
|
|
|
|
func _on_Door_button_up():
|
|
if not CheckHover():return ;
|
|
Dialogic.set_variable("PreviousTimelineChoice", "back");
|
|
End()
|
|
|
|
func _on_ArrowFront_button_up():
|
|
if not CheckHover():return ;
|
|
Dialogic.set_variable("PreviousTimelineChoice", "120_w_front");
|
|
End()
|
|
|
|
func _on_ArrowSmoking_button_up():
|
|
if not CheckHover():return ;
|
|
Dialogic.set_variable("PreviousTimelineChoice", "120_w_smoking");
|
|
End()
|