aboutsummaryrefslogtreecommitdiff
path: root/src/gui/guiPasswordChange.cpp
Commit message (Expand)AuthorAge
* Android: Fix ConfirmRegistration and PasswordChange input and scale size (#10...Maksim2020-07-21
* Formspecs: volume and key settings windows can now be closed by doubleclickin...Zughy2020-07-14
* Formspecs: Add state-selection to style elements (#9378)Hugues Ross2020-04-11
* Add more visual feedback for button states (#8916)Hugues Ross2019-10-12
* Move client-specific files to 'src/client' (#7902)Quentin Bazin2018-11-28
* Make non-formspec modal menus respect gui scale (#7850)stujones112018-11-26
* Remove un-needed header inclusionstujones112018-10-29
* Move touchscreen input handling to base GUIModalMenu classstujones112018-10-29
* Move files to subdirectories (#6599)Vitaliy2017-11-08
m">51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "l_sound.h" #include "l_internal.h" #include "common/c_content.h" #include "guiEngine.h" int ModApiSound::l_sound_play(lua_State *L) { SimpleSoundSpec spec; read_soundspec(L, 1, spec); bool looped = lua_toboolean(L, 2); s32 handle = getGuiEngine(L)->playSound(spec, looped); lua_pushinteger(L, handle); return 1; } int ModApiSound::l_sound_stop(lua_State *L) { u32 handle = luaL_checkinteger(L, 1); getGuiEngine(L)->stopSound(handle); return 1; } void ModApiSound::Initialize(lua_State *L, int top) { API_FCT(sound_play); API_FCT(sound_stop); }