158 Commits

Author SHA1 Message Date
Kahrl
cb626ae5b5 Fix logic of checkbox formspec element validity checking 2015-01-09 16:57:54 +01:00
sapier
0bf6a77c3b Fixes for android
Copy only minetest_game to apk by default
Don't copy .git and .svn folders to apk
Fix bouncing asset copy scrollbar due to long filepaths
Reenable font scaling to fix broken menu on high dpi screens
Implement minetest loglevel to android loglevel mapping
Disable touch digging while moving around
2015-01-06 16:13:39 +01:00
sapier
bc0db96dd8 Fix rounding error in font size making main menu and in game font sizes inconsistent 2015-01-02 16:52:02 +01:00
Kahrl
a90dcfbb1e Fix segfault when dragging mouse out of mainmenu window (#1910) 2014-12-13 00:39:07 +01:00
Kodexky
a4dce04911 Responsive tooltip offset for Android.
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-12-13 00:43:37 +10:00
Craig Robbins
b6235a1aa3 (INTERIM) Make sizes of the font in formspecs consistent and not so large
Until a permanent fix can be developed
2014-12-05 02:35:21 +10:00
Craig Robbins
a72877a132 Right mouse button behaviour for craft/inventory If right mousebutton clicked once then don't drop single items into slots. If right mouse button has been clicked and held a second time, drop items as the mouse is moved. In the second case (automatically drop/place items as mouse is moved) only auto-drop into blank slots, or slots that contain the same item. 2014-12-04 23:30:53 +10:00
sapier
71a289a979 Make hud use fontengine too
Fix non coding style conforming glb_fontengine to g_fontengine
Fix fonts never been deleted due to grabbed to often
2014-11-30 18:06:54 +01:00
Zefram
dfee893fae Scale form elements consistently
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-30 17:50:09 +01:00
sapier
794909cbe8 Implement proper font handling 2014-11-30 17:50:09 +01:00
kwolekr
4002201c79 Fix uninitialized variable warning 2014-10-30 02:53:20 -04:00
Kahrl
deeaa9687e Remove m_ext_ptr in GUIFormSpecMenu, replaced by refcount mechanism 2014-10-24 21:14:48 +02:00
Craig Robbins
32fbb12906 Fix use of unitialized variables in mouse button handling 2014-10-08 14:56:29 -04:00
BlockMen
efa7ad44fa Add [colorize modifier 2014-10-05 16:49:52 +02:00
BlockMen
0adf21b84d Standardize tooltip row detection 2014-09-28 10:10:43 +02:00
BlockMen
799b3c74e3 Fix multilined description in tooltips (fixes #1688) 2014-09-28 08:44:05 +02:00
ShadowNinja
f275e2853e Fix GCC reorder warning
Caused by a020d1b653f94fbcaac06c15f9dbab4521fda355.
2014-09-21 15:23:36 -04:00
sruz25
5688b3b53d Add inventory right click drag and drop 2014-09-21 15:23:27 -04:00
BlockMen
f77a8a9408 Allow taking screenshots of formspecs and move message to chat 2014-09-21 19:15:48 +02:00
Zefram
2120e7d6bb Make tooltip_show_delay=0 work 2014-07-16 18:06:31 +02:00
Zefram
912ab06484 Permit non-integer sizes for item_image[] 2014-07-16 17:37:12 +02:00
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