Initial Android commit
This commit is contained in:
commit
1e2b80c13d
8521 changed files with 231475 additions and 0 deletions
24
scripts/Investigations/InvestigationBlack.gd
Normal file
24
scripts/Investigations/InvestigationBlack.gd
Normal file
|
@ -0,0 +1,24 @@
|
|||
extends "res://scripts/Investigations/InvestigationBase.gd"
|
||||
|
||||
var descriptions = [
|
||||
"black.1",
|
||||
"black.2",
|
||||
"black.3",
|
||||
"black.4",
|
||||
"black.5",
|
||||
];
|
||||
|
||||
func InitClues():
|
||||
cluesFound = InvestigationSingleton.GetBlackClues();
|
||||
|
||||
for i in $Clues.get_children().size():
|
||||
var clues = $Clues.get_child(i) as TextureButton;
|
||||
clues.connect("button_up", self, "onButtonPressed", [clues, descriptions[i]])
|
||||
clues.connect("mouse_entered", self, "onButtonHoverOn", [clues]);
|
||||
clues.connect("mouse_exited", self, "onButtonHoverOff", [clues]);
|
||||
|
||||
func onButtonPressed(control, code):
|
||||
if CheckHover():
|
||||
onButtonHoverOff(control)
|
||||
InvestigationSingleton.AddBlackClues(code);
|
||||
EndInvestigationLoop(code);
|
Loading…
Add table
Add a link
Reference in a new issue