diff --git a/docs/game_data/spel2.lua b/docs/game_data/spel2.lua index 27f8666d7..0f7137ad4 100644 --- a/docs/game_data/spel2.lua +++ b/docs/game_data/spel2.lua @@ -5750,11 +5750,13 @@ function Quad:is_point_inside(x, y, epsilon) end ---@field animation_timer integer ---@field woodpanel_slidedown_timer number ----@class ScreenConstellation +---@class ScreenConstellation : Screen ---@field sequence_state integer ---@field animation_timer integer ---@field constellation_text_opacity number ---@field constellation_text number + ---@field explosion_and_loop SoundMeta + ---@field music SoundMeta ---@class ScreenRecap : Screen diff --git a/docs/src/includes/_types.md b/docs/src/includes/_types.md index 4dee10ded..3631cec69 100644 --- a/docs/src/includes/_types.md +++ b/docs/src/includes/_types.md @@ -2220,6 +2220,8 @@ set_callback(function() ``` +Derived from [Screen](#Screen) + Type | Name | Description ---- | ---- | ----------- @@ -2227,6 +2229,8 @@ int | [sequence_state](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q= int | [animation_timer](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=animation_timer) | float | [constellation_text_opacity](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=constellation_text_opacity) | float | [constellation_text](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=constellation_text) | +[SoundMeta](#SoundMeta) | [explosion_and_loop](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=explosion_and_loop) | +[SoundMeta](#SoundMeta) | [music](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=music) | ### ScreenCredits diff --git a/src/game_api/script/usertypes/screen_lua.cpp b/src/game_api/script/usertypes/screen_lua.cpp index bada9b8ba..7d31afffa 100644 --- a/src/game_api/script/usertypes/screen_lua.cpp +++ b/src/game_api/script/usertypes/screen_lua.cpp @@ -475,11 +475,11 @@ void register_usertypes(sol::state& lua) "constellation_text", sol::property([](ScreenConstellation& s) -> std::u16string_view { - std::u16string_view str(s.constellation_text); + std::u16string_view str(s.constellation_text) /**/; return str; }, [](ScreenConstellation& s, std::u16string new_str) { - const char16_t* src = new_str.c_str(); + const char16_t* src = new_str.c_str() /**/; char16_t* temp = s.constellation_text; unsigned int n = 0; while ((*temp++ = *src++) != 0)