forked from 0ad/0ad
Cinematic path demo map
Patch By: Vladislav Refs #3301 #3814 This was SVN commit r19319.
This commit is contained in:
parent
b675a0154a
commit
a3ea45509b
22
binaries/data/mods/public/maps/scenarios/Cinema_Demo.js
Normal file
22
binaries/data/mods/public/maps/scenarios/Cinema_Demo.js
Normal file
@ -0,0 +1,22 @@
|
||||
Trigger.prototype.CounterMessage = function(data)
|
||||
{
|
||||
var cmpGUIInterface = Engine.QueryInterface(SYSTEM_ENTITY, IID_GuiInterface);
|
||||
cmpGUIInterface.PushNotification({
|
||||
"players": [1, 2],
|
||||
"message": markForTranslation("Cutscene starts after 5 seconds"),
|
||||
translateMessage: true
|
||||
});
|
||||
};
|
||||
|
||||
Trigger.prototype.StartCutscene = function(data)
|
||||
{
|
||||
var cmpCinemaManager = Engine.QueryInterface(SYSTEM_ENTITY, IID_CinemaManager);
|
||||
if (!cmpCinemaManager)
|
||||
return;
|
||||
cmpCinemaManager.AddCinemaPathToQueue("test");
|
||||
cmpCinemaManager.Play();
|
||||
};
|
||||
|
||||
var cmpTrigger = Engine.QueryInterface(SYSTEM_ENTITY, IID_Trigger);
|
||||
cmpTrigger.DoAfterDelay(1000, "CounterMessage", {});
|
||||
cmpTrigger.DoAfterDelay(6000, "StartCutscene", {});
|
BIN
binaries/data/mods/public/maps/scenarios/Cinema_Demo.pmp
(Stored with Git LFS)
Normal file
BIN
binaries/data/mods/public/maps/scenarios/Cinema_Demo.pmp
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
binaries/data/mods/public/maps/scenarios/Cinema_Demo.xml
(Stored with Git LFS)
Normal file
BIN
binaries/data/mods/public/maps/scenarios/Cinema_Demo.xml
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user