30 lines
913 B
GDScript
30 lines
913 B
GDScript
extends "res://scripts/AlternativeChoices/AlternativeChoiceBase.gd"
|
|
|
|
func Localization():
|
|
localization = ["", "choice22.3", ""]
|
|
|
|
|
|
func AdjustLabels():
|
|
$Labels / Back.rect_global_position.y = $Labels / Back.rect_global_position.y - 35;
|
|
$Labels / Back.rect_global_position.x = $Labels / Back.rect_global_position.x + 20;
|
|
|
|
func SetCursorStates():
|
|
cursorStates = [CursorState.Talk, CursorState.Walk, CursorState.Press];
|
|
|
|
func _on_Orange_button_up():
|
|
if not CheckHover():return ;
|
|
if Dialogic.get_variable("129") == "1":
|
|
Dialogic.set_variable("PreviousTimelineChoice", "129.2");
|
|
else :
|
|
Dialogic.set_variable("PreviousTimelineChoice", "129.1");
|
|
End()
|
|
|
|
func _on_Knife_button_up():
|
|
if not CheckHover():return ;
|
|
Dialogic.set_variable("PreviousTimelineChoice", "129_knife");
|
|
End()
|
|
|
|
func _on_Arrow_button_up():
|
|
if not CheckHover():return ;
|
|
Dialogic.set_variable("PreviousTimelineChoice", "129_back");
|
|
End()
|