Commit Graph

187 Commits (e98d421aff046a2d9a9b87516779603dc170b209)

Author SHA1 Message Date
sapier 73907a2c7e Add srollbar formspec element 2014-07-16 15:02:56 +02:00
sfan5 aa1f637b86 Fix errors/warnings reported by valgrind 2014-07-06 16:33:02 +02:00
sapier 268ff61168 Add support for Android 2.3+
There have been plenty of ppl involved in creating this version.
I don't wanna mention names as I'm sure I'd forget someone so I
just tell where help has been done:
- The partial android versions done by various ppl
- Testing on different android devices
- reviewing code (especially the in core changes)
- testing controls
- reviewing texts

A big thank you to everyone helping this to be completed!
2014-06-29 18:17:56 +02:00
sapier 1f88af3b7a Add formspec api versioning 2014-06-29 12:13:55 +02:00
RealBadAngel d57e75ed2a Add setting for tooltips show delay. 2014-06-25 16:23:05 +02:00
RealBadAngel 1328c078f5 Tooltips rework.
Separate element for tooltips. Delayed showing,
use global color or given ones.
2014-06-24 22:11:47 +02:00
sapier d23ac22ad9 Support for scalable font and gui elements
Fix positioning of tabheader in order to be usable for scaling GUIs
WARNING: this changes position of current tabheaders, mods have to adjust!
2014-06-22 00:08:55 +02:00
RealBadAngel e2db7f5c90 Fix labels and vertlabels on some systems. 2014-06-20 21:30:48 +02:00
sapier c2bc32f83b Fix small memory leaks on shutdown 2014-06-20 19:50:47 +02:00
RealBadAngel bbaf49826e Add tooltips for button, imagebutton and checkbox. 2014-06-19 00:22:03 +02:00
sapier 2dfd8961bb Fix bounding rect for formspec elements label vertlabel and checkboxes 2014-06-18 22:38:29 +02:00
sapier a598053f73 Make dropdown formspec elements send their value same style as buttons on change 2014-06-18 18:47:41 +02:00
sapier 6558fc90e3 Add support for exiting formspecs by doubleclicking outside 2014-06-12 23:15:05 +02:00
sapier 8faebfae12 Improve performance by removing some temporary objects
Fix some coding style issues
2014-06-12 20:10:29 +02:00
sapier e2a88e15fd Add proper lua api deprecated handling 2014-04-29 22:49:04 +02:00
sapier b444ffd39a Fix formspec replacement handling for in game formspecs 2014-04-22 20:59:01 +02:00
RealBadAngel fa8860c9c1 make formspec textarea wordwrap
Thats updated #795
2014-04-22 19:57:32 +02:00
sapier c9e4b0445c Fix double sending of chat messages 2014-03-23 19:15:38 +01:00
BlockMen 5dab81cca6 Fix game pause in singleplayer 2014-03-13 14:06:18 +01:00
sapier 89c5163c02 Replace pause and message menu by formspec ones 2014-03-05 18:44:14 +01:00
Kahrl d58f5a0878 Add formspec table 2014-01-13 18:11:08 -05:00
BlockMen 6db3dc28d6 Fix formspec field labels 2013-12-17 01:13:16 +01:00
sapier 656c7f2683 Replace any direct curl usage by httpfetch 2013-12-13 18:05:46 +01:00
sapier 723f6e156a Implement search tab and version picker 2013-12-11 23:07:38 +01:00
PilzAdam 6651b3387c Check if width, height or start index of a list[] is negative 2013-12-09 22:39:24 +01:00
PilzAdam fc831c5418 Dont move item back when not clicking on a slot 2013-12-03 18:05:36 +01:00
Kahrl ceca056e77 Fix crash when pressing Enter key in formspec menu 2013-11-23 00:37:32 +01:00
BlockMen 1b7420e0a5 Fix formspec background padding when clipped 2013-11-14 19:03:55 +01:00
sapier f687511f36 Fix win32/msvc i18n (quite UGLY version, blame Microsoft) 2013-11-11 19:56:49 +01:00
sapier 6b98489ed9 Fix "TODO read modinfo" in modmanager to improve ui usability 2013-11-10 19:37:45 +01:00
BlockMen 395bc5c25e Fix typo 2013-11-03 22:33:06 +01:00
BlockMen 18314f400f Reworked formspecs and kahrl's hexcolor parser 2013-11-03 22:14:37 +01:00
Novatux 5db8c1b5d9 Send a on_receive_fields event when formspec is closed, with fields.quit = "true" 2013-11-03 11:53:59 +01:00
RealBadAngel 773cf884e3 FIx wrong error message on invalid use of the formspec element image_button 2013-10-07 22:50:26 +02:00
Kahrl fb1f510c3f Change mainmenu texture handling + small misc changes
Texture names must now be escaped in formspec elements image[],
background[], image_button[], image_button_exit[].

Instead of special-case handling of texture loading (and unloading
which was missing) in guiFormSpecMenu.cpp, use the newly created
ISimpleTextureSource interface which is a minimal subset of
ITextureSource. There is an implementation of this interface
used by GUIEngine (MenuTextureSource).

Fix an off-by-one bug in unescape_string; it caused requests for a
texture called "\0".
2013-09-11 00:08:56 +02:00
sapier be372cf498 Fix crash on lua exception 2013-09-05 00:45:00 +02:00
PilzAdam 136e0697bc Use wstring for vertlabels 2013-08-31 21:07:53 +02:00
BlockMen 2d363dbbf3 Fix gettext for tabs (windows) 2013-08-19 15:59:09 +02:00
Kahrl bfa1eb913f GUIFormSpecMenu focus fixes 2013-08-19 15:49:36 +02:00
BlockMen 40fbbf8fb2 Reenable image scaling in formspecs 2013-08-18 15:52:04 +02:00
sapier 281dc6a502 Add translation for main menu
Add engine.gettext() and remove gettext() calls in guiFormspecMenu.cpp
2013-08-17 16:01:43 +02:00
PilzAdam 3b098b7c95 Remove debug output 2013-08-16 02:48:50 +02:00
Kahrl 4f886514a7 Don't automatically scroll listbox when selecting an item in the middle 2013-08-16 00:58:03 +02:00
Kahrl b7be31b051 Formspec textlist: Black Irrlicht magic to detect fake doubleclicks 2013-08-16 00:08:19 +02:00
Novatux c0a089d4ac Fix formspec escaping, add escaping to info.txt for texture packs. 2013-08-15 22:12:51 +02:00
Kahrl ee90d438b8 Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenu 2013-08-14 21:03:33 +02:00
Kahrl 3ec3564770 Fix various memory access problems detected by valgrind 2013-08-07 19:48:31 +02:00
Kahrl bbc9a5091a Fix uninitialized irr::SEvent fields in guiFormSpecMenu.cpp 2013-08-07 01:36:19 +02:00
BlockMen aa3bf1886a Fix formspec label issues in win builds (MSVC) 2013-08-04 20:49:23 +02:00
BlockMen bbe6259cb7 Add support of pressed_texture of image_button
Fix params number

Add pressed texture name

Fix string def

Fix syntax error
2013-07-24 01:02:43 +02:00
BlockMen 46de1fea8d Add gettext translation for image_button 2013-07-24 01:01:56 +02:00
sapier 4ca213127f Remove lots of debug output from modmgr
Fix RUN_IN_PLACE=0 mod install (now mods are saved in user folder in that case)
Fix text of field element not unescaped correctly
2013-07-12 22:46:27 +02:00
sapier 0d365fa327 Fix serverlist 2013-07-09 22:55:39 +02:00
kwolekr a7099f4f68 Revert "Fix serverlist not beeing escaped correctly"
This reverts commit 39d03148e5d98ef5f9a31b131a79ff2bbd71a877.
2013-07-08 20:21:09 -04:00
sapier 2c345afd1d Fix serverlist not beeing escaped correctly
Always use address for server
Fix first (empty) element beeing selected after deleting last world
2013-07-08 19:58:17 -04:00
sapier 4f7abcbafa Fix many formspec menu bugs 2013-07-07 19:49:52 -04:00
Sfan5 66c8125f40 Fix parseColor, change remaining colorkeys to new format, fix Contributor list 2013-07-07 19:59:18 +02:00
Sfan5 67b58fa494 Use hexadecimal RRGGBB instead of colorkeys, rename getColor to parseColor 2013-07-06 10:32:58 +02:00
sapier 62794622d6 Replace C++ mainmenu by formspec powered one 2013-07-02 19:58:20 -04:00
Kahrl 46340cbbe0 Remove texture atlas / AtlasPointer, rename getTextureRaw to getTexture 2013-07-02 03:03:10 +02:00
Kahrl e671961d03 Formspec: Don't perform black magic if selected item fits the guess 2013-06-18 01:32:11 +02:00
Kahrl 5183edb4c1 Fix calculation of selected item (for not drawing it) in formspec
The previous code did not work when the list did not start at index 0
of the inventory list (issue #779).
2013-06-18 01:18:54 +02:00
MetaDucky f4aaebce86 Fix editbox default text being pre-selected in some cases 2013-06-01 01:59:48 +02:00
sapier c1e756aff9 fix memory leaks introduced by invalid gettext usage 2013-04-07 22:50:53 -04:00
kwolekr 950c0e60e2 Allow any character in formspec strings with escape char 2013-03-05 23:25:02 -05:00
Sfan5 3fab3825aa Update Copyright Years 2013-02-24 20:15:24 +01:00
PilzAdam 269f01224b Change Minetest-c55 to Minetest 2013-02-24 18:49:03 +01:00
Ilya Zhuravlev 62bb8ceb72 "or" should be "||". Don't use "or", "and", etc.. It breaks build. 2013-01-04 23:39:12 +04:00
Jeija 1e6c042c4c Implement textarea in formspec, a multiline input field 2013-01-04 20:09:09 +01:00
RealBadAngel 7b23ddb3be Bugfixes to item_image formspec method 2013-01-02 18:29:08 +04:00
Perttu Ahola e187e834c3 On-demand item meshes and textures 2012-12-02 00:38:26 +02:00
RealBadAngel 983b4a6797 New elements in formspec, item_image and item_image_button.
Fixed also game bug drawing dragged item behind fields, buttons etc.
2012-12-01 20:39:41 +02:00
Jürgen Doser 0cc67f2b05 Make dragged itemstack following the mouse cursor much smoother
by using the cursor coordinates directly, instead of updating them only when a mouse event is seen.
2012-11-30 22:07:30 +02:00
MirceaKitsune 348ceb211f A bunch of fixes
No longer hide players who are dead. With models, a death animation should be used instead

Some changes requested by celeron55

Rename a lot of things in the code, and use better lua api function names

Minor code corrections

Bump protocol version up, since the models / animations / attachments code creates new client<->server messages
2012-11-25 19:14:24 +02:00
MirceaKitsune 987a4e06dc Update attachments at the ending of the addToScene function for parents. And with this... *drum roll* Client-side attachments are at last functional and stick visibly.
Fix the last segmentation fault (apparently). So far attachments seem to be fully functional, although removing the parent causes children to go to origin 0,0,0 and possibly still cause such a fault (though this should already be addressed)

Fix a bug in falling code where entities get stuck

Also check if the parent has been removed server-side, and detach the child if so. Fixes children going to origin 0,0,0 when their parent is removed.

Unset all attachment properties when permanently detaching (on both the client and server). Also store less data we don't need

Create a separate function for detaching, and also update lua api documentation

When a child is detached, update its position from the server to clients. This WILL cause it to get positioned slightly differently client side, as the server attachment system only copies parent origin and knows not about mesh / bone transformation. This prevents different clients seeing the object detached in different spots which is most correct

Update the position of attached players to clients. An attached player will see himself move, but this is currently VERY ugly and laggy as it is done by the server (it probably must stay this way too)

Use a different approach for locally attached players. This allows for smooth positio transitions to work, as well at the player turning around freely. Still buggy however
2012-11-25 19:14:24 +02:00
xyzz afc89f1f90 Merge pull request #268 from khonkhortisan/image_button
Allow transparent image_buttons
2012-11-22 09:13:18 -08:00
RealBadAngel 4bafba37ac Adding background to Formspec 2012-11-08 19:22:37 +01:00
RealBadAngel 3e5fcb21ee Formspec: Draw images before inventories. Allows to use image as background. 2012-11-04 21:18:28 +01:00
Kyle 99258a7ed8 Allow transparent image_buttons 2012-10-18 12:06:47 -07:00
Perttu Ahola c10d6f12a9 Make inventory GUI do sane things when server-side inventory acts unusually 2012-09-02 22:51:38 +03:00
Perttu Ahola 787c49f0e7 Fix bug in moving a larger sized stack in inventory on top of another
- You have 2 stacks: a with x items and b with y<x items
- Take a with your mouse and place it on b
- Whole stack a moves to b
- (y * 2 - x) items move from b to a
- (x - y) items are left to the mouse cursor
2012-09-02 20:24:45 +03:00
Perttu Ahola a68ac1a230 Restore focus to formspec menu when pressing a button 2012-07-25 18:28:40 +03:00
Perttu Ahola ff59bdf9f4 Improve formspec positioning 2012-07-25 16:30:23 +03:00
Perttu Ahola 1b2ae34ed4 Detached inventory callbacks and reworked node metadata callbacks 2012-07-25 02:36:54 +03:00
Perttu Ahola c2cb98c1a6 Detached inventories 2012-07-24 20:57:17 +03:00
Perttu Ahola f1e67f44ca Formspec button_exit[] and image_button_exit[] 2012-07-22 17:40:48 +03:00
darkrose a3ba145339 Implement formspec 2012-07-22 17:40:41 +03:00