Initial Android commit
This commit is contained in:
commit
1e2b80c13d
8521 changed files with 231475 additions and 0 deletions
59
scripts/backround_scenes_scripts/Amanda_Suicide.gd
Normal file
59
scripts/backround_scenes_scripts/Amanda_Suicide.gd
Normal file
|
@ -0,0 +1,59 @@
|
|||
extends Node2D
|
||||
|
||||
func _ready():
|
||||
if not get_tree().root.has_node("Root"):
|
||||
return ;
|
||||
|
||||
GallerySingleton.AddImage("Amanda_Suicide");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var videoPlayer = $Video / VideoPlayer
|
||||
var path = ""
|
||||
if int(Dialogic.get_variable("Is_White_Dead")) == 1:
|
||||
path = "res://resources/video/роз_глок_новый.ogv"
|
||||
else :
|
||||
path = "res://resources/video/роз_беретта_новый.ogv"
|
||||
videoPlayer.stream = load(path)
|
||||
videoPlayer.play()
|
||||
|
||||
|
||||
func InitForGallery()->Array:
|
||||
$Video.scale = Vector2(0.5, 0.5)
|
||||
|
||||
var glock = GallerySingleton.HaveImage("Amanda_Suicide_glock");
|
||||
var beretta = GallerySingleton.HaveImage("Amanda_Suicide_beretta");
|
||||
|
||||
var videoPlayer = $Video / VideoPlayer
|
||||
var path = ""
|
||||
if glock and beretta:
|
||||
path = "res://resources/video/роз_глок_новый.ogv"
|
||||
videoPlayer.stream = load(path)
|
||||
videoPlayer.play()
|
||||
return ["ui_gallery_fall_1", "ui_gallery_fall_2"]
|
||||
elif glock and not beretta:
|
||||
path = "res://resources/video/роз_глок_новый.ogv"
|
||||
else :
|
||||
path = "res://resources/video/роз_беретта_новый.ogv"
|
||||
|
||||
videoPlayer.stream = load(path)
|
||||
videoPlayer.play()
|
||||
return [];
|
||||
|
||||
|
||||
func SetSettings(setting):
|
||||
var videoPlayer = $Video / VideoPlayer
|
||||
var path = ""
|
||||
|
||||
if setting == tr("ui_gallery_fall_1"):
|
||||
path = "res://resources/video/роз_глок_новый.ogv"
|
||||
elif setting == tr("ui_gallery_fall_2"):
|
||||
path = "res://resources/video/роз_беретта_новый.ogv"
|
||||
|
||||
videoPlayer.stream = load(path)
|
||||
videoPlayer.play()
|
Loading…
Add table
Add a link
Reference in a new issue