Skip to content

Commit

Permalink
this generator confuses me sometimes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dregu committed Nov 5, 2023
1 parent 6c0b852 commit fd0f4fe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/game_data/spel2.lua

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

2 changes: 1 addition & 1 deletion docs/src/includes/_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -2830,7 +2830,7 @@ array<int, MAX_PLAYERS> | [input_previous](https://github.com/spelunky-fyi
[MENU_INPUT](#MENU_INPUT) | [input_menu](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=input_menu) | Inputs used to control all the menus, separate from player inputs. You can probably capture and edit this in [ON](#ON).POST_PROCESS_INPUT
[MENU_INPUT](#MENU_INPUT) | [input_menu_previous](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=input_menu_previous) | Previous state of buttons_menu
bool | [game_has_focus](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=game_has_focus) |
int | [menu_open](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=menu_open) |
bool | [menu_open](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=menu_open) |
array<int, 5> | [input_index](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=input_index) | Input index for players 1-4 and maybe for the menu controls. -1: disabled, 0..3: keyboards, 4..7: Xinput, 8..11: other controllers

### Items
Expand Down
2 changes: 1 addition & 1 deletion src/game_api/script/usertypes/game_manager_lua.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ void register_usertypes(sol::state& lua)
&GameProps::buttons_menu_previous,
"game_has_focus",
&GameProps::game_has_focus,
"menu_open",
"menu_open", // -> bool
sol::property([](GameProps& gp) -> bool
{ return gp.menu_icon_slot != -1; }),
"input_index",
Expand Down

0 comments on commit fd0f4fe

Please sign in to comment.