mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 16:22:45 +03:00
feat(ui): implement Script_SetCharacterSelectFacing
This commit is contained in:
parent
25378bf13b
commit
1d6b2693da
@ -181,7 +181,14 @@ int32_t Script_GetCharacterSelectFacing(lua_State* L) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int32_t Script_SetCharacterSelectFacing(lua_State* L) {
|
int32_t Script_SetCharacterSelectFacing(lua_State* L) {
|
||||||
WHOA_UNIMPLEMENTED(0);
|
if (!lua_isnumber(L, 1)) {
|
||||||
|
return luaL_error(L, "Usage: SetCharacterSelectFacing(degrees)");
|
||||||
|
}
|
||||||
|
|
||||||
|
float facing = lua_tonumber(L, 1) * 0.017453292;
|
||||||
|
CCharacterSelection::SetFacing(facing);
|
||||||
|
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t Script_GetSelectBackgroundModel(lua_State* L) {
|
int32_t Script_GetSelectBackgroundModel(lua_State* L) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user