Initial Android commit

This commit is contained in:
OleSTEEP 2024-11-10 03:34:28 +03:00
commit 1e2b80c13d
8521 changed files with 231475 additions and 0 deletions

View 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()