mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 16:22:45 +03:00
feat(ui): implement Script_PlayCreditsMusic
This commit is contained in:
parent
7c500a5ba0
commit
f3313ef5aa
@ -115,7 +115,15 @@ int32_t Script_PlayGlueMusic(lua_State* L) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int32_t Script_PlayCreditsMusic(lua_State* L) {
|
int32_t Script_PlayCreditsMusic(lua_State* L) {
|
||||||
WHOA_UNIMPLEMENTED(0);
|
if (!lua_isstring(L, 1)) {
|
||||||
|
return luaL_error(L, "Usage: PlayCreditsMusic( \"Sound kit name\" )");
|
||||||
|
}
|
||||||
|
|
||||||
|
auto name = lua_tostring(L, 1);
|
||||||
|
|
||||||
|
SI2::StartCreditsMusic(name);
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t Script_StopGlueMusic(lua_State* L) {
|
int32_t Script_StopGlueMusic(lua_State* L) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user