Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,5 @@
<sprite_sequence id="1386" name="SNOW_SPRITES" />
<sprite_sequence id="1387" name="RAIN_SPRITES" />
<sprite_sequence id="1388" name="INTERACTION_SPRITES" />
<sprite_sequence id="1389" name="INVENTORY_SPRITES" />
</sprite_sequences>
22 changes: 22 additions & 0 deletions TombLib/TombLib/Catalogs/TEN Node Catalogs/Statistics.lua
Original file line number Diff line number Diff line change
@@ -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