mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-07-12 09:21:08 +00:00
parent
965884fb3b
commit
8fd833f34d
5 changed files with 6 additions and 6 deletions
|
|
@ -5230,7 +5230,7 @@ function pressed_pause()
|
|||
-- ...
|
||||
end
|
||||
|
||||
--- @param arg integer
|
||||
--- @param arg SpecialWarpDestinations
|
||||
--- @param color integer
|
||||
--- Fades into a special warp with `arg` and using `color`
|
||||
function fade_into_special_warp(arg, color)
|
||||
|
|
|
|||
|
|
@ -6994,14 +6994,14 @@ Fades into a special warp with `arg` and using `color`
|
|||
### Parameters
|
||||
| Field | Type |
|
||||
| ----- | ---- |
|
||||
| arg | `integer` |
|
||||
| arg | [enum SpecialWarpDestinations](constants.md#enum-SpecialWarpDestinations) |
|
||||
| color | `integer` |
|
||||
|
||||
### Returns
|
||||
- None
|
||||
|
||||
### C Prototype
|
||||
`void fade_into_special_warp(u32 arg, u32 color);`
|
||||
`void fade_into_special_warp(enum SpecialWarpDestinations arg, u32 color);`
|
||||
|
||||
[:arrow_up_small:](#)
|
||||
|
||||
|
|
|
|||
|
|
@ -277,7 +277,7 @@ void warp_special(enum SpecialWarpDestinations arg) {
|
|||
sSpecialWarpDest = arg;
|
||||
}
|
||||
|
||||
void fade_into_special_warp(u32 arg, u32 color) {
|
||||
void fade_into_special_warp(enum SpecialWarpDestinations arg, u32 color) {
|
||||
if (color != 0) {
|
||||
color = 0xFF;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -183,7 +183,7 @@ u16 level_control_timer(s32 timerOp);
|
|||
/* |description|Checks if the start button has been pressed as well as some other conditions for opening the pause menu depending on if pause anywhere is enabled|descriptionEnd|*/
|
||||
bool pressed_pause(void);
|
||||
/* |description|Fades into a special warp with `arg` and using `color`|descriptionEnd| */
|
||||
void fade_into_special_warp(u32 arg, u32 color);
|
||||
void fade_into_special_warp(enum SpecialWarpDestinations arg, u32 color);
|
||||
void load_level_init_text(u32 arg);
|
||||
void warp_credits(void);
|
||||
/* |description|Gets an instant warp from the current area's instant warp array (0-3)|descriptionEnd| */
|
||||
|
|
|
|||
|
|
@ -15408,7 +15408,7 @@ int smlua_func_fade_into_special_warp(lua_State* L) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
u32 arg = smlua_to_integer(L, 1);
|
||||
int arg = smlua_to_integer(L, 1);
|
||||
if (!gSmLuaConvertSuccess) { LOG_LUA("Failed to convert parameter %u for function '%s'", 1, "fade_into_special_warp"); return 0; }
|
||||
u32 color = smlua_to_integer(L, 2);
|
||||
if (!gSmLuaConvertSuccess) { LOG_LUA("Failed to convert parameter %u for function '%s'", 2, "fade_into_special_warp"); return 0; }
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue