aboutsummaryrefslogtreecommitdiff
path: root/src/script (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-11-30LuaSettings: Sanitize setting name stringskwolekr1-1/+1
2014-11-30Fix segfault at exit caused by non grabbed fontKahrl1-0/+1
2014-11-30settings: Add setting groups and multiline entrieskwolekr3-246/+478
2014-11-30Make hud use fontengine toosapier12-47/+41
Fix non coding style conforming glb_fontengine to g_fontengine Fix fonts never been deleted due to grabbed to often
2014-11-30Scale form elements consistentlyZefram3-209/+287
The ratios between the sizes of form elements, including text, is now fixed, aside from variations caused by rounding. This makes form layout almost fully predictable, and particularly independent of player's screen size. The proportions of non-text elements are the traditional proportions. For compatibility, the way in which element positions and sizes are specified remains unchanged, in all its baroqueness, with one exception. The exception is that the position of a label[] element is now defined in terms of the vertically center of the first line of the label, rather than the bottom of the first line of the label. This change allows a label to be precisely aligned with button text or an edit box, which are positioned in a centering manner. Label positioning remains consistent with the previous system, just more precisely defined. Make multi-line label[] elements work properly. Previously the code set a bounding rectangle assuming that there would be only a single line, and as a result a multi-line label would be cut somewhere in the middle of the second line. Now multi-line labels not only work, but have guaranteed line spacing relative to inventory slots, to aid alignment. Incidentally fix tabheader[] elements which were being constrained to the wrong width. Given an unusually large form, in variable-size mode, the form rendering system now chooses a scale that will fit the entire form on the screen, if that doesn't make elements too small. Fixed-size forms, including the main menu, are have their sizes fixed in inch terms. The fixed size for fixed-size forms and the preferred and minimum sizes for variable-size forms all scale according to the gui_scaling parameter.
2014-11-30Implement proper font handlingsapier91-194/+902
2014-11-29noise: Throw exception on noise allocation failurekwolekr3-9/+38
2014-11-29Fix MSVC compiling error (argc/argv not available to pass to init_gettext)SmallJoker1-3/+3
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-28Improve Lua API documentationCiaran Gultnieks1-5/+11
Changes: * Add extra documentation for remove_item. This isn't as silly as it sounds: iterate a list containing items with unique metadata each, and remove_item the first one you find, placing into a different - fine, except the remove will invariably remove the wrong one, leading to items being duplicated and others destroyed. Arguably it's a bug, and Inventory::removeItem should actually remove the item you tell it to. (i.e. if the passed ItemStack has metadata, match it). But it seems reasonable to just document the behaviour more clearly. * Improve string_to_pos documentation. * Clarify dig_node documentation (return value). * Better on_step documentation. * get_nodemeta -> get_meta. * Other minor fixes.
2014-11-28Update minetest.po (Japanese)Rui1-33/+66
2014-11-28Fix regression with command line --go optionCraig Robbins1-3/+10
2014-11-27Add minetest.copy_table(table) To get rid off the "table references"SmallJoker2-0/+14
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-26Don't corrupt stepheight when setting other propertiesCiaran Gultnieks1-2/+2
2014-11-26Wield: always obey anisotropic_filter setting, not just for hi res texturesKahrl1-3/+2
2014-11-26EMF_USE_MIP_MAPS was introduced in Irrlicht 1.8, don't use in 1.7.3 or belowKahrl1-0/+2
This is not optimal as it will cause minor graphical glitches for Irrlicht 1.7 users, but at least it fixes the build.
2014-11-27added enable_build_where_you_stand optionSokomine3-0/+5
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-26Wieldmesh: don't force anisotropic filtering on, instead disable mipmapsKahrl2-2/+6
This should fix #1844. Thanks to oleastre for making the first version of this commit (#1848).
2014-11-26Fix some undeclared global variablesCraig Davison2-6/+7
2014-11-26Only set the camera update keymap when using a debug buildrubenwardy1-1/+6
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-26Fix Android main menu crash, and user data directory check.Kodexky2-3/+5
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-26Increase step smoothing to fit 1:1 stairs (works well on slabs too)Calinou1-1/+1
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-26Fix client "double saving" simple singleplayer local mapsCraig Robbins3-4/+9
2014-11-25Fixes for Android build errors. Enable sensor landscape rotation.KodexKy5-14/+15
Fix typo in Android Makefile ndk path. Fix touchscreen parts of game.cpp to work after Zeno's refactor. Fix isdigit and isspace overload conflict with Android Irrlicht in string.h Enable sensor landscape rotation in Android Manifiest. Add mapgen v5 to Android build. Fix Makefile not checking leveldb. Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-25Adjust the values of dirs1 and dirs2 so that rotate_and_place orients ↵dvere1-2/+2
textures correctly According to doc/lua_api.txt if paramtype2 == "facedir" the two least significant bits of parm2 orient the texture around the axis. For dirs1 (looking at a wall) these would be 0, 1, 2, 3 and for dirs2 (looking at the ceiling) 2, 1, 0, 3
2014-11-23Make duplicate warning checks file and line specificShadowNinja1-6/+12
2014-11-23Fix console spaming by debug function on mod checking for global variable to ↵sapier1-2/+3
exist.
2014-11-23Port createForsythOptimizedMesh from Irrlicht 1.8RealBadAngel2-0/+654
Mesh rotation helpers.
2014-11-23Fix regression with USE_REDIS (refactor_main)Craig Robbins1-1/+1
2014-11-23refactor main.cppCraig Robbins1-916/+1210
2014-11-22Fix smooth lighting (ambient occlusion)Craig Robbins1-13/+18
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-22Fix compiling if no endian.h foundPavel Puchkin1-0/+3
f7d6509 introduces error when no endian.h found in the system. Since "CHECK_INCLUDE_FILE" returns empty string instead of "0", when "cmake_config.h" is generated it has "#define CMAKE_HAVE_ENDIAN_H " line. Later we have "#define HAVE_ENDIAN_H CMAKE_HAVE_ENDIAN_H" in the "config.h", an thus "HAVE_ENDIAN_H" is also empty sting. Because of this, "#if HAVE_ENDIAN_H" is incorrect preprocessor directive. Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-21Update credits menuShadowNinja1-3/+8
2014-11-21serialize.h: use machine native byte swapping if available, fall-back to ↵Rafael Reilova8-85/+115
previous generic method if not (supported for GCC using endian.h, detection done in cmake) write/readARGB8() - just write 32-bit color in one op, instead of 4 1-byte ops cleanup: removed unneeded buffer init for some serialize-out functions use a #define for the fixed point factor in read/writeF1000() nodemetadata.cpp, nodetimer.cpp optimzation: simpler deserialize node position method staticobject.cpp: cleanup: use util/serialize.h inlines instead of its own de/serialization serialize.cpp: minor optimization/cleanup: avoid generation of unneeded string temporary CMakeLists.txt, cmake_config.h.in: detection of endian.h config.h: added HAVE_ENDIAN_H Commits due to feedback squashed Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-21Optimise functions from CNodeDefManager and VoxelManipulatorCraig Robbins4-22/+28
CNodeDefManager::get() VoxelManipulator::addArea()
2014-11-21Optimise getTileInfo()Craig Robbins2-46/+40
getTileInfo() ~1.5x faster getSmoothLight ~2.0x faster
2014-11-20Mgv5 1 up 1 down overgeneration for biome surface continuityparamat1-16/+18
2014-11-20Mgv5 get ground level at point function. Fast spawn player versionparamat2-4/+38
2014-11-20Simplify loading of Android version of menuShadowNinja6-150/+136
2014-11-20Fix leaking global in texture pack menuShadowNinja1-4/+4
2014-11-20Fix raillike bug (currently manifests itself on Android), and minor ↵Kodexky1-7/+8
improvement to readability. NB: Minor edits to patch made by Zeno- (int to short and minor formatting)
2014-11-19Clean up rollbackShadowNinja12-1215/+848
2014-11-19Fix wallmounted mesh rotationsShadowNinja2-3/+3
2014-11-19Add strict moduleShadowNinja4-3/+51
Also fix leaking globals found by it.
2014-11-19Tweak core.serializeShadowNinja1-168/+154
This adds proper support for nested tables and improves performance a bit.
2014-11-19Add (optional) client-side saving of server map to disksfan54-0/+48
2014-11-19Fix Belarusian translation headerShadowNinja1-8/+8
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-19Add gettext to Travis buildShadowNinja1-2/+2
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-19Remove unused rangelim function (the macro still exists)Kahrl1-9/+0
2014-11-18Fix indonesian language errorsSmallJoker1-14/+1
Errors found by @Sokomine.
2014-11-18Update Indonesian Languagesrifqi1-89/+103
Signed-off-by: Craig Robbins <kde.psych@gmail.com>