aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Expand)AuthorAge
...
* Revert "Fix issue #2441: crash on respawn, since a conversion std::list to st...kwolekr2015-03-20
* Mgv5/mgv7: Sprinkle dust from full_node_max.Y if chunk above is generatedparamat2015-03-19
* Reset the old HP method on PlayerSAO::setHPLoic Blot2015-03-19
* Fix game minetest.conf default settingsest312015-03-18
* Add a Lua call to do damages / healsLoic Blot2015-03-18
* ServerpacketHandler: spelling fixesLoic Blot2015-03-18
* Mgv6: Remove addDirtGravelBlobs, replaced by blob ore in Minetest Gameparamat2015-03-18
* Save creative_mode and enable_damage setting for each world in world.mtfz722015-03-18
* MutexedQueue inherits must use std::deque instead of std::listLoic Blot2015-03-17
* Standalone bundle for OSX (w/ dependencies!)Pavel Puchkin2015-03-17
* Server::step throw is never catched in minetestserverLoic Blot2015-03-17
* Use the NetworkPacket api to read full version string instead of u8 pointers....Loic Blot2015-03-17
* Fix a little regression on SendActiveObjectMessages which send all TOCLIENT_A...Loic Blot2015-03-17
* Minor bug fix (lag between damage flash and hearts updating)Craig Robbins2015-03-17
* Fix various damage related bugs (client-side)Craig Robbins2015-03-17
* Minor cleanup: game.cppCraig Robbins2015-03-17
* Revert "Server::step throw is never catched. Replace it with an errorstream +...kwolekr2015-03-16
* Server::step throw is never catched. Replace it with an errorstream + assertLoic Blot2015-03-16
* Move client packet generators to dedicated functions for:Loic Blot2015-03-16
* Move TOCLIENT_ACTIVE_OBJECT_REMOVE_ADD and TOCLIENT_ACTIVE_OBJECT_MESSAGES to...Loic Blot2015-03-16
* Rename packethandler/{client,server}.cpp to {client,server}packethandler.cppLoic Blot2015-03-16
* If player is dead, permit it to respawn, even if damages are not enabledLoic Blot2015-03-16
* SendPlayerHPOrDie everytime at client connection, damage enabled or not, this...Loic Blot2015-03-15
* Finer progress bar updates when initializing nodesest312015-03-15
* mg_decoration: Raise highest allowed deco top to max edge of voxelmanipparamat2015-03-15
* Android: Backport changes from stable-0.4Loic Blot2015-03-14
* Disable double-click -> ESC translation for main menuCraig Robbins2015-03-14
* client.cpp: typo fix and break; fix to make some compilers happyLoic Blot2015-03-13
* Replace NetworkPacket pointers to referencesLoic Blot2015-03-13
* Prepare Protocol v25 init & authentication.Loic Blot2015-03-13
* Handle the newly added TOCLIENT_ACCESS_DENIED and TOCLIENT_DELETE_PARTICLESPA...Loic Blot2015-03-13
* Rename some packet and handlers to <packet>_Legacy name for compat layer betw...Loic Blot2015-03-13
* Use the new Player::isDead function when it's the caseLoic Blot2015-03-13
* handleCommand_Breath mustn't update breath is player is dead. A dead player d...Loic Blot2015-03-12
* Don't handle PlayerPos packet coming from client if player is deadLoic Blot2015-03-12
* Mgv5/mgv7: Add desert temples if desert stone detected in mapchunkparamat2015-03-12
* Unescape tooltip textsest312015-03-11
* Mgv6: Fix uninitialised heightmap used by cavegenparamat2015-03-11
* lua_api/l_mapgen: Fix overlapping areas of minetest.generate_ores/decorationsparamat2015-03-11
* Silence Clang warningShadowNinja2015-03-10
* Ensure that heightmap is initialized before useCraig Robbins2015-03-10
* Stop formspecs closing with double-click in empty areaCraig Robbins2015-03-09
* Fix memleak pointed by issue #2439.Loic Blot2015-03-08
* Fix unitialized data when creating TOSERVER_INIT packetLoic Blot2015-03-08
* Make the dummy backend only look up blocks onceShadowNinja2015-03-08
* Heightmaps: Fix uninitialised values in mgv5/mgv6. findGroundLevel: Return -M...paramat2015-03-08
* Optimize Profiler::avg()gregorycu2015-03-07
* Don't use luaL_checkstring to read node names, it's only for argumentsShadowNinja2015-03-07
* Respect game mapgen flags and save world noise paramsngosang2015-03-07
* Fix RUN_IN_PLACE broken due to invalid usage of assertsapier2015-03-07
ingw volume_text = text; delete [] text; volume_text += core::stringw(volume) + core::stringw("%"); Environment->addStaticText(volume_text.c_str(), rect, false, true, this, ID_soundText); } { core::rect<s32> rect(0, 0, 80, 30); rect = rect + v2s32(size.X/2-80/2, size.Y/2+55); const wchar_t *text = wgettext("Exit"); Environment->addButton(rect, this, ID_soundExitButton, text); delete[] text; } { core::rect<s32> rect(0, 0, 300, 20); rect = rect + v2s32(size.X/2-150, size.Y/2); gui::IGUIScrollBar *e = Environment->addScrollBar(true, rect, this, ID_soundSlider); e->setMax(100); e->setPos(volume); } } void GUIVolumeChange::drawMenu() { gui::IGUISkin* skin = Environment->getSkin(); if (!skin) return; video::IVideoDriver* driver = Environment->getVideoDriver(); video::SColor bgcolor(140, 0, 0, 0); driver->draw2DRectangle(bgcolor, AbsoluteRect, &AbsoluteClippingRect); gui::IGUIElement::draw(); } bool GUIVolumeChange::OnEvent(const SEvent& event) { if (event.EventType == EET_KEY_INPUT_EVENT) { if (event.KeyInput.Key == KEY_ESCAPE && event.KeyInput.PressedDown) { quitMenu(); return true; } if (event.KeyInput.Key == KEY_RETURN && event.KeyInput.PressedDown) { quitMenu(); return true; } } if (event.GUIEvent.EventType == gui::EGET_BUTTON_CLICKED) { if (event.GUIEvent.Caller->getID() == ID_soundExitButton) { quitMenu(); return true; } } if (event.GUIEvent.EventType == gui::EGET_SCROLL_BAR_CHANGED) { if (event.GUIEvent.Caller->getID() == ID_soundSlider) { s32 pos = ((gui::IGUIScrollBar*)event.GUIEvent.Caller)->getPos(); g_settings->setFloat("sound_volume", (float) pos / 100); gui::IGUIElement *e = getElementFromId(ID_soundText); const wchar_t *text = wgettext("Sound Volume: "); core::stringw volume_text = text; delete [] text; volume_text += core::stringw(pos) + core::stringw("%"); e->setText(volume_text.c_str()); return true; } } return Parent ? Parent->OnEvent(event) : false; }