Initial Android commit
This commit is contained in:
commit
1e2b80c13d
8521 changed files with 231475 additions and 0 deletions
28
scripts/backround_scenes_scripts/Train_video.gd
Normal file
28
scripts/backround_scenes_scripts/Train_video.gd
Normal file
|
@ -0,0 +1,28 @@
|
|||
extends Node2D
|
||||
|
||||
func _ready():
|
||||
GallerySingleton.AddBackground("Train_video")
|
||||
|
||||
var videoPlayer = $Video / VideoPlayer
|
||||
var path = ""
|
||||
if TranslationServer.get_locale() == "en":
|
||||
path = "res://resources/video/train_en.ogv"
|
||||
else :
|
||||
path = "res://resources/video/train_ru.ogv"
|
||||
videoPlayer.stream = load(path)
|
||||
videoPlayer.play()
|
||||
|
||||
func InitForGallery()->Array:
|
||||
$Video.scale = Vector2(0.5, 0.5)
|
||||
|
||||
return ["English", "Русский"];
|
||||
|
||||
func SetSettings(setting):
|
||||
var videoPlayer = $Video / VideoPlayer;
|
||||
var path = ""
|
||||
if setting == "English":
|
||||
path = "res://resources/video/train_en.ogv"
|
||||
else :
|
||||
path = "res://resources/video/train_ru.ogv"
|
||||
videoPlayer.stream = load(path)
|
||||
videoPlayer.play()
|
Loading…
Add table
Add a link
Reference in a new issue