Skip to content

Commit

Permalink
fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Auto committed Nov 4, 2023
1 parent 62b2b63 commit 7015f45
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion docs/game_data/spel2.lua

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions docs/src/includes/_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -2220,13 +2220,17 @@ set_callback(function()

```

Derived from [Screen](#Screen)


Type | Name | Description
---- | ---- | -----------
int | [sequence_state](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=sequence_state) |
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

Expand Down
4 changes: 2 additions & 2 deletions src/game_api/script/usertypes/screen_lua.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7015f45

Please sign in to comment.