diff --git a/TombLib/TombLib/Catalogs/Engines/TombEngine/SpriteSequences.xml b/TombLib/TombLib/Catalogs/Engines/TombEngine/SpriteSequences.xml index b694d1120..8ce502789 100644 --- a/TombLib/TombLib/Catalogs/Engines/TombEngine/SpriteSequences.xml +++ b/TombLib/TombLib/Catalogs/Engines/TombEngine/SpriteSequences.xml @@ -32,4 +32,5 @@ + \ No newline at end of file diff --git a/TombLib/TombLib/Catalogs/TEN Node Catalogs/Statistics.lua b/TombLib/TombLib/Catalogs/TEN Node Catalogs/Statistics.lua new file mode 100644 index 000000000..623ed90f5 --- /dev/null +++ b/TombLib/TombLib/Catalogs/TEN Node Catalogs/Statistics.lua @@ -0,0 +1,22 @@ +local Statistics = require("Engine.RingInventory.Statistics") + +-- !Name "Shows end of level statistics" +-- !Section "User interface" +-- !Description "Show end of level statistics." +-- !Arguments "NewLine, Numerical, 20, [ 0 | 99 ], Next level" +-- !Arguments "80, SoundTracks, Name of the audiotrack to play" +LevelFuncs.Engine.Node.ShowEndLevelStatistics = function(level, track) + Statistics.SetType(false) + TEN.Sound.PlayAudioTrack(track) + Statistics.SetEndStatistics(true, level) +end + +-- !Name "Shows end of game statistics" +-- !Section "User interface" +-- !Description "Show end of game statistics." +-- !Arguments "NewLine, 100, SoundTracks, Name of the audiotrack to play" +LevelFuncs.Engine.Node.ShowEndGameStatistics = function(track) + Statistics.SetType(true) + TEN.Sound.PlayAudioTrack(track) + Statistics.SetEndStatistics(true, 999) +end