341 Commits

Author SHA1 Message Date
Craig Robbins
c587a15cb0 Address issues related to refactoring the_game
Fix time of day persistence
Fix wield item being updated every frame causing small performance hit
Rename some classes and variables
2014-11-03 13:57:56 +01:00
Kahrl
6b3bb1f324 Fix regression: mouse wheel couldn't scroll from last hotbar item to first 2014-11-02 21:59:56 +01:00
Craig Robbins
ab8deee11a Cleanup and (mostly) document util/string.h and (very) minor refactoring
Updated: Incorporated feedback from 'kahrl'
Updated: Moved MinetestApp::boolToCStr() from game.cpp into string.h renaming it bool_to_cstr()
2014-11-02 18:07:20 +01:00
Craig Robbins
52919bcebb Modified dtime calculation method in limitFps() 2014-11-02 02:20:06 +01:00
Craig Robbins
c55bb94220 Refactor the_game() to make it more understandable and maintainable.
The following is a record of 31 commits before squashing:

Revert "Remove m_ext_ptr in GUIFormSpecMenu, replaced by refcount mechanism"

This reverts commit b49e5cfc7013cef7e9af79d17e04f7e7e4c377d4.

Basic reformatting with astyle
-- additional formatting will be modified, manually, as the need for it is encountered

Start "outlining" what a MinetestApp class might look like

Add MinetestApp::shutdown()

Converted class member functions to camelCase and created protos for new functions

First stage of connect to server done

Add get itemdefs/nodedefs/media code

Init clouds, camera, sky, init GUI, HUD

Input handling

Client events, camera, sound, draw

Fix wield hand getting stuck digging and add debug text back

Fix FPS

Added profiler graph back

Fix FPS issue
Need to work out what went wrong and clean up the copy/paste stuff

Annotate

Various:
Rewrote limitFps()
Limited scope of some variables

Jitter calcs

Reduce scope of objects

Move some stuff out of ::run and minor formatting cleanup

Scope reduction

Function splits

Removed old (broken) limitFps()

Added exception handling back

Fixed some formatting

Reverted commented out unit tests (uncommented them)

Slow clouds down on loading and media screens so the behaviour is like the original the_game()

Formatting/style (no functional changes)

Manually reapply upstream b49e5cf: Remove m_ext_ptr in GUIFormSpecMenu, replaced by refcount mechanism

Fixed silly errors on my part
Minor formatting cleanups

Removed strange differentiation in FPS limiting when loading
FPS limiting was done differently if cloud_menu_background was true, which does not make sense

Cleaning up

Add some comments
2014-11-02 02:18:25 +01:00
Kahrl
deeaa9687e Remove m_ext_ptr in GUIFormSpecMenu, replaced by refcount mechanism 2014-10-24 21:14:48 +02:00
Craig Robbins
a126cb62e1 Move buttons upwards to accommodate for new configure keys button in the
pause menu
2014-10-18 17:30:17 +02:00
Mushiden
e3c7414022 Add in-game key change menu 2014-10-07 17:24:09 -04:00
RealBadAngel
600fc6c010 Bugfix: dont highlight (0,0,0) when theres no node pointed. 2014-10-03 16:03:14 +02:00
sapier
992c0a4155 Fix chat lines not word wrapped correct 2014-09-25 19:54:02 +02:00
BlockMen
f77a8a9408 Allow taking screenshots of formspecs and move message to chat 2014-09-21 19:15:48 +02:00
RealBadAngel
61b86590fc Node highlighting. 2014-09-17 22:06:13 +02:00
BlockMen
ea98c6f738 Change screenshot colorformat properly 2014-09-03 19:41:29 +02:00
BlockMen
a972e121cb Don't save alpha channel in screenshots (fixes #1451) 2014-09-03 11:39:29 +02:00
sapier
48dc6b044e Fix chat messages capturing mouse interactions for menu/formspecs 2014-08-23 00:23:14 +02:00
SmallJoker
0990680413 Use pause_fps_max also on multiplayer 2014-08-22 22:52:20 +02:00
SmallJoker
84ae0fa3b9 Reduce time of red screen when damaged
10 seconds in PvP is very long and annoying.
2014-08-22 22:19:07 +02:00
Perttu Ahola
05d88d20ae Remove FPS from being next to the version string 2014-07-05 11:55:13 +03: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
db462bda27 Fix wrong status text rectangle. Fix for #1412 2014-06-27 20:16:37 +02:00
sapier
0f9a702c01 Fix chat overlaying full screen, now it's gonna overlay only up to length of longest line 2014-06-20 15:18:45 +02:00
sapier
d2886ef662 Remove not really used guiTextInputMenu 2014-06-17 21:27:40 +02:00
RealBadAngel
35f8255694 Fix issue #1275 - wielded index greater than inv size. 2014-06-17 14:17:53 +02:00
sapier
85a33713d4 Fix HUD not visible if below ground blacked out 2014-06-12 23:38:34 +02:00
Perttu Ahola
270a18157f Fix switch from "skybox" to other sky types as triggered by player:set_sky() 2014-06-08 12:33:16 +03:00
sapier
1bc27bc115 Small cleanup of hud add/remove code 2014-05-31 22:32:44 +02:00
sapier
9b3401e782 Hide pause menu prior drawing "shutting down..." message 2014-05-24 13:45:05 +02:00
sapier
1d6a1f727d Add support for interlaced polarized 3d screens
Add (experimental) support for topbottom as well as sidebyside 3d mode
2014-05-18 01:08:13 +02:00
sapier
d9942236cd Fix error messages beeing shown on pressing cursor keys in various menus 2014-05-11 02:57:47 +02:00
sapier
d83d1a95b7 Fix heart + bubble bar size on different texture packs
Add DPI support for statbar
Move heart+bubble bar to Lua HUD
Add statbar size (based upon an idea by blue42u)
Add support for customizing breath and statbar
2014-05-07 21:46:27 +02:00
RealBadAngel
b14b428096 Bugfix: make waypoints respect camera offset 2014-05-05 09:03:37 +02:00
sapier
b1c81e8147 Add download rate to media progress bar (non http mode only!)
Minor coding style fixes
2014-04-29 20:45:16 +02:00
ShadowNinja
985868bf31 Make debug text adjust it's border to the screensize and fix a border update bug 2014-04-27 18:45:04 -04:00
sapier
f4753a9cd4 Add support for dpi based HUD scaling
Add support for (configurable) multiline hotbar
Improved screensize handling
Add userdefined gui scale by BlockMen
2014-04-27 21:53:13 +02:00
sapier
6afe874475 Fix lost pause support in singleplayer 2014-04-24 19:47:17 +02:00
sapier
b444ffd39a Fix formspec replacement handling for in game formspecs 2014-04-22 20:59:01 +02:00
sapier
bf5af77cd0 Fix red background missing in deathscreen 2014-04-21 20:10:23 +02:00
sapier
9798a75cb0 Replace deathscreen by formspec variant 2014-04-19 12:21:27 +02:00
proller
3c54ac4a38 Fix warnings 2014-04-19 02:24:45 +04:00
proller
495ed5ec8b Remove liquid_finite and weather 2014-04-18 21:56:48 +04:00
Sfan5
3f90a81374 Fix all warnings reported by clang 2014-04-15 21:34:53 +02:00
BlockMen
a5db2961b2 Add player:set_eye_offset() by @MirceaKitsune and clean up 2014-04-12 17:44:20 +02:00
BlockMen
8909fe913c Add third person view 2014-04-12 17:44:15 +02:00
Kahrl
a724edea29 Infer ipv6_server from bind_address; fix client connect to IN(6)ADDR_ANY 2014-04-10 22:03:42 +02:00
sapier
bc7084892d Cleanup client init states by bumping protocol version
Don't use TOSERVER_RECEIVED_MEDIA but TOSERVER_CLIENT_READY as indicatio for client ready
Handle clients with protocol version < 23 (almost) same way as before
Make client tell server about it's version
Add client state to not send bogus player position updates prior init complete
Add access to statistics information (peer connction time,rtt,version)
Fix clients standing stalled in world while preloading item visuals (new clients only)
Add get_player_information to read client specific information from lua
2014-04-08 21:12:20 +02:00
sapier
ba7f72d88c Performance optimized button to button mask evaluation 2014-04-03 20:26:26 +02:00
sapier
d4720dcb69 Fix lost change password button 2014-04-01 22:38:34 +02:00
RealBadAngel
9cf4f96fa7 Normal maps generation on the fly.
Parallax mapping with slope information.
Overriding normal maps.
2014-03-21 01:32:00 +01:00
Novatux
7b6d8c67fb Fix sound not being played at the correct place. 2014-03-15 16:25:34 +01:00