Commit Graph

8534 Commits (objectmenu)
 

Author SHA1 Message Date
Nicolas Hake 8579c0d522 MSVC: Sort individual projects into folders 2016-01-23 13:49:04 +01:00
Sven Eberhardt fcf870672c Fix overflow when calling DoEnergy with large values #1646 2016-01-22 22:52:09 -05:00
Maikel de Vries a32cfc2072 Parkour goal: methods to get the number of checkpoints a player completed 2016-01-22 20:55:06 +01:00
Maikel de Vries cfe8008f32 Array.c: add functions to get minimum and maximum of an array (with ints) 2016-01-22 20:54:18 +01:00
Maikel de Vries 5b04eef7f2 fix handling of parkour respawn for removed players 2016-01-22 00:43:33 +01:00
Maikel de Vries 70f74626b9 add option to transfer contents on parkour relaunch 2016-01-22 00:14:59 +01:00
Maikel de Vries 686b37660d fix script errors for wrong parameter types in tele glove 2016-01-22 00:14:59 +01:00
Nicolas Hake c2dbd319bb VS 2015: Enable Edit-and-Continue for 64 bit builds
Visual Studio 2015 supports Edit-and-Continue for 64 bit builds, so we
can enable it.
2016-01-21 23:18:10 +01:00
David Dormagen 8418da86d6 custom GUIs: fixed scrollbar offset with active upper board (#1612)
I guess the UI elements expect their position to already be corrected by cgo.X/Y. Or they never cared because they were in front of the upper board.
I am not sure, maybe the correct solution would be to actually position all elements lower (instead of adjusting for it when passing mouse input or drawing)? Currently the position is relative to the upper board's edge.

Anyway, this works for now.
2016-01-21 22:17:47 +01:00
Sven Eberhardt 80676c7ab5 Fix force redirection behavior of non-clonks on permeable SolidMasks.
E.g. if you put a shovel on a wooden bridge, it would always slide left.
2016-01-20 22:49:56 -05:00
Sven Eberhardt b3c0afd521 Add missing string table entries for CON_FallThrough(_Desc). 2016-01-20 21:35:37 -05:00
Sven Eberhardt 2ce3daf84a Add missing sound for snapping line #1644
Sound original from CosmicEmbers (http://freesound.org/people/CosmicEmbers/sounds/161650/); cropped and pitch adjusted.
2016-01-20 21:24:05 -05:00
David Dormagen 8ba1e042a0 script GUIs: fixed clipping with active upper board
I know that the issue was noticable starting from https://git.openclonk.org/openclonk.git/commit/cd57e474935b283e58c7ae7edd137c049f87f90c
I don't know WHY it was not noticable before, though. It had probably always been a defect.
2016-01-20 22:30:35 +01:00
Maikel de Vries 8cabf67845 clean up tests: remove Teams.txt fix some titles 2016-01-20 19:44:28 +01:00
Maikel de Vries db9e3aa133 remove grapple bow test
Seems to be outdated and can be tested in rope test
2016-01-20 19:30:33 +01:00
Maikel de Vries ac122e4aa3 remove pump test scenario
Does not do anything and the pump is sufficiently tested in the power test.
2016-01-20 19:23:12 +01:00
Clonkonaut 7538a5bd12 Added simple testing scenario for permeable solid masks.
In there, it's also activated for basements and bridges.
2016-01-20 19:17:45 +01:00
Julius Michaelis 711df05e1a Add button X to fade through half solidmasks.
Enabled on the elevator case for testing.
2016-01-20 18:58:11 +01:00
Maikel de Vries d9dccd01ad fix construction previewer showing green in front of existing sites 2016-01-20 16:32:05 +01:00
Maikel de Vries d500218a02 fix shape of basement construction preview and site (#1586) 2016-01-20 15:40:19 +01:00
Maikel de Vries 4114738b45 add power information to interaction menu for flagpole (#1579) 2016-01-20 13:21:02 +01:00
Maikel de Vries d23328f2c7 power library: methods to for storage information and balance updates 2016-01-20 13:19:37 +01:00
Maikel de Vries 775746d78d fix power system tests (due to object changes) 2016-01-20 12:07:46 +01:00
David Dormagen 5f25baa058 producers: show progress of current product (#1549)
This is solved via another entry in the production menu (below the products), which is updated by an effect, that is being told the menu ID/target by the interaction menu through a callback.
This setup allows for very intrusive changes to the interaction menu with only few lines of code!
2016-01-20 10:36:50 +01:00
David Dormagen 9292718ca5 script GUIs: fix auto-height window size with pure text windows
Otherwise, if a window was GUI_FitChildren and the text would NOT trigger a scrollbar, the window height was set to 0 (because the text height was only taken into account when rawTextHeight - 1 > rcBounds.Hgt).
2016-01-20 10:33:11 +01:00
Armin Burgmeier b698557163 Replace obsolete GL_MAX_TEXTURE_UNITS (#1641)
The replacement is GL_MAX_TEXTURE_IMAGE_UNITS.
2016-01-19 18:05:57 -08:00
Matthias Rottländer 3810937867 Merge branch 'master' of ssh://git.openclonk.org/openclonk 2016-01-20 00:25:00 +01:00
Matthias Rottländer 7be85cf9d4 + modified rock_smooth to fit other textures a little bit better 2016-01-20 00:23:36 +01:00
David Dormagen a7b674f662 tutorial guide: use full width for text when not showing buttons (related to #1612)
A little rant about why I 'hardcoded' the value 2.9em:
If you are using constants to specify some positions, please give the meaningful names so that other people can work with them. E.g. calling something "menu_height" and then using it to adjust the X position AND the Y position of a BUTTON probably means it's not the "menu_height"...
I believe that the current "dynamic layout" will terribly break if someone would e.g. decide that the menu should be one line higher (because hey, then everything else would also move).

The real solution is to rewrite the layout of the menu to be dynamic and use constants (because currently it isn't and doesn't, it just tries to.).
2016-01-19 20:39:39 +01:00
Maikel de Vries 91e7da6fbd update license of Sky.jpg in Clonkomotive to cc-by 3.0 2016-01-19 19:11:13 +01:00
Clonkonaut ce7d8014ec Clonkomotive: German translation (#1632).
I also took the liberty of renaming "HeavyCrumb" to "Boulder". I have never heard the word 'crumb' used in this context.
2016-01-19 18:17:03 +01:00
Sven Eberhardt 29f439a508 Fight for Gidl: Fix script error on statue death #1610 2016-01-18 23:49:38 -05:00
Sven Eberhardt d9f1c90b47 TreasureHunt: Some map simplification and adjustments for ShapeMaps. More torches, food and weapons. Pyrit skin fix #1296 2016-01-18 23:45:21 -05:00
David Dormagen cd57e47493 script GUIs: fixed text clipping and scrolling (#1605, related to #1612)
Previously, text windows would just change their own size and leave cropping and scrolling to their parent. This made the code easier, but was apparently unintuitive for scripters.
Now text windows do not change their size but show a scrollbar themselves (unless GUI_FitChildren or GUI_NoCrop of course).

This implied some other changes, because now parents without a scroll bar need to clip, too. (Or the clipping needs to be moved to the child window. But then it would have to be made sure that menu decoration can still go out of the bounds.)
And this also needed some script fixes where scripters assumed the text windows would not scroll (and thus made them smaller than 1em).

related to https://git.openclonk.org/openclonk.git/commit/46ad28ea652fad34814a866f3b9c305aa7cc6faa
2016-01-18 21:39:54 +01:00
Armin Burgmeier 4b98e71271 Fix GL state reset of wireframe mode (#1636)
Not sure why this broke, maybe glGetIntegerv does not return the current
polygon mode anymore. Either way, we don't need to remember the previous
setting but can just always reset it to GL_FILL afterwards.
2016-01-17 21:32:48 -08:00
Armin Burgmeier d3d3bb848e Fix index buffer offset calculation (#1635)
This fixes rendering of some meshes with more than one submesh.
2016-01-17 21:14:41 -08:00
Sven Eberhardt e6a153f5d5 DeepSeaMining: Fix construction plans for players joining during intro 2016-01-17 23:36:19 -05:00
Sven Eberhardt b88339a84c Use sched_yield instead of pthread_yield in png save wait loop [cfkoch] 2016-01-17 23:15:34 -05:00
Sven Eberhardt 38dad0dd9d Prevent jump action during crew creation to avoid command failure sounds in intro sequences with contained clonks. 2016-01-17 23:01:57 -05:00
Sven Eberhardt 2c834e6993 DeepSeaMining: Clonks tumble in intro when falling from sky after section change 2016-01-17 22:38:50 -05:00
Sven Eberhardt 47add34d8f Use less annoying lobby countdown sounds 2016-01-17 22:35:59 -05:00
Sven Eberhardt 62dd3aafd6 Activate wealth display in scenarios with Rule_BuyAtFlagpole.
Most missions with home base were missing the display.
2016-01-17 22:28:57 -05:00
Sven Eberhardt eb333bd8db Fix extra slot object check in object interaction menu 2016-01-17 22:15:23 -05:00
Sven Eberhardt f6583ee754 Fix nil pointer in interaction menu when object transfer removes target container. 2016-01-17 22:09:27 -05:00
Sven Eberhardt af5d9903bd Fix Pyrit falling out of plane in some mission sequences. 2016-01-17 22:01:03 -05:00
Günther Brammer aa2e660094 Merge branch 'cmake' 2016-01-18 01:12:59 +01:00
Günther Brammer debc559bc7 CMake: Fix building mape on systems with more than one GTK+ CPP flag 2016-01-18 01:12:41 +01:00
Günther Brammer e4b96c49d4 CMake: Remove unmaintained list of dependency packages 2016-01-17 23:34:29 +01:00
Günther Brammer 8257264415 Avoid a gtk runtime warning on empty statusbar text
(openclonk:12546): Gtk-CRITICAL **: gtk_statusbar_push: assertion 'text != NULL' failed
2016-01-17 23:34:29 +01:00
Tobias Zwick 240815bc7c correct Philipp Kern's name in the credit screen 2016-01-17 23:10:35 +01:00