Commit Graph

954 Commits (b8d3b00d90c3fa333906cb253bcc9b233e0fa11b)

Author SHA1 Message Date
Nicolas Hake b8d3b00d90 Move TinyXML into thirdparty/ 2011-01-25 21:28:44 +01:00
Günther Brammer 742b5ae855 Call ::GameScript.Default at the end of Game.Clear to prevent hang on exit
This even more closely resembles the order before GameScript became a
global. It's probably not save to call Default() function before
ScriptEngine.Clear().
2011-01-28 01:38:21 +01:00
Günther Brammer 7771a58f38 Do not include SDL_mixer.h from headers
In case the header is included but not used by a program compiled without
sound support.
2011-01-24 01:17:06 +01:00
Armin Burgmeier 58d3682678 Fix a crash when script players join the game (#571) 2011-01-27 01:12:56 +01:00
Armin Burgmeier 34e6e45864 Fix the netpuncher build on Windows
Making the nightly builds work again
2011-01-27 01:15:48 +01:00
Günther Brammer 14f90d0fc1 editor/gtk: Fix scrollbars of zoomed viewports 2011-01-25 20:21:49 +01:00
Günther Brammer 76370cb0ec gtk: Fixes for newer GTK+ 3 versions 2011-01-24 01:06:34 +01:00
Günther Brammer 7c56940c4b gtk: use gtk_show_uri to open a browser if possible 2011-01-23 23:03:57 +01:00
Günther Brammer 829874e011 editor/gtk: Migrate to non-deprecated APIs 2011-01-23 23:04:40 +01:00
Günther Brammer 8b989e414a Move C4ViewportWindow initialization to C4ViewportWindow::Init 2011-01-23 23:02:23 +01:00
Günther Brammer 60b3415624 sdl: update for refresh rate API changes 2011-01-24 23:32:51 +01:00
Martin Plicht cdc29a593a Mac: Fix build by adding refresh rate parameter (ignoring it) 2011-01-24 12:11:18 +01:00
Martin Plicht 208f283512 C4FullScreen: Initialization: Use CStdWindow::W_Fullscreen 2011-01-10 11:48:05 +01:00
Martin Plicht ae447c30c1 Mac: Fix wrong method signature for ClonkAppDelegate makeFakeArgs 2011-01-10 02:21:09 +01:00
Martin Plicht 2aed52a6fb Mac: Cocoa: Add "Reset Zoom" menu item to set zoom level of active viewport to 1 2011-01-13 21:21:19 +01:00
Nicolas Hake d1b2f1a325 win32: Default to current desktop display settings (#484, #493)
Previously, the graphics code tried to set a refresh rate as close to
85 Hz as possible. This led to black screens when the display driver
would report a refresh rate that was not actually supported by the
monitor.
This change also uses the currently set monitor orientation, instead
of always selecting a non-rotated display mode.
2011-01-20 15:43:19 +01:00
Günther Brammer 91b6201d85 Do not load Rank.bmp anymore, Rank.png suffices 2011-01-19 23:53:14 +01:00
Günther Brammer 5151177d44 Move some BMP-loading helpers to C4Landscape.cpp 2011-01-19 23:52:46 +01:00
Günther Brammer cb34973ffc Remove loading of BMP definition graphics and portraits
OpenClonk does not use that feature anymore. PNGs are enough.
2011-01-19 23:31:24 +01:00
Günther Brammer 83322f596a Move Mesh loaders from src/platform to src/lib
They are entirely platform-independent.
2011-01-19 22:55:18 +01:00
Günther Brammer 8d3692e093 editor/gtk: Ask before overwriting a scenario
Previously, this was commented out because GTK 2.4 did not have the
convenience API, but Clonk requires a newer GTK now.
2011-01-19 02:16:48 +01:00
Günther Brammer d3ddc171ee editor/win32: Remove Components menu in favour of external editors 2011-01-19 02:14:59 +01:00
Günther Brammer 5acda62b71 Do not initialize ::GameScript from ::Game
In case Game was constructed first, this could crash.
2011-01-19 02:13:51 +01:00
Armin Burgmeier d2b93d96d6 Fix the build with gcc 4.4.3
making the Linux nightly build work again
2011-01-18 01:25:09 +01:00
Günther Brammer 5b3fe189ea editor/gtk: Save the clipboard on exit
Normally, this is done by gtk_main with a private function. Since Clonk
does not use gtk_main, that function is copied and slightly changed to use
the public API and compile as C++.
2011-01-16 21:30:59 +01:00
Günther Brammer 2c612c6425 Script: GetMaterialVal and friends return a definition when appropiate
This was accidentally changed with the C4Id rewrite.
2011-01-16 21:28:24 +01:00
Günther Brammer ec7e35a25a Script: Optional warnings about deprecated functions and 0->nil conversion 2011-01-16 21:26:18 +01:00
Günther Brammer f10e01a01c config: Remove unused General.Record 2011-01-16 17:21:48 +01:00
Günther Brammer 5e156a07d1 Script: == works when one side is an object with proplist type label
I don't actually know how to get to that situation in script, but when it
happens, everything else expecting an object would correctly accept it
despite the proplist label.
2011-01-15 23:03:01 +01:00
Günther Brammer b7d8eb8959 netpuncher: Make it compile again 2011-01-15 19:11:48 +01:00
Günther Brammer 91e85c04f8 editor/gtk: Wrap text instead requiring horizontal scrollbars 2011-01-14 00:50:36 +01:00
Günther Brammer 4e01716f28 editor: Automatically open landscape tools dialog
The landscape tools is mostly useless without the dialog, whereas the other
modes are useful without the dialog.

But mostly this is a side effect of removing PropertyDlg.Active along with
the C4PropertyDlg class.
2011-01-13 18:21:59 +01:00
Günther Brammer 49241e4512 editor/win32: Get id to reload on demand instead of every selection change 2011-01-13 01:16:30 +01:00
Günther Brammer a2015e0db1 editor: Move function autocompletion list generation to C4AulScriptEngine
This actually removes some code duplication and makes the ScriptEngine
API smaller.
2011-01-13 01:09:06 +01:00
Günther Brammer 3ef004506c editor: Store the selected objects only in EditCursor 2011-01-12 23:40:22 +01:00
Günther Brammer 58a257f763 editor: Display object properties well readable 2011-01-13 17:55:58 +01:00
Günther Brammer 94335b6a49 editor: Move object debug information into C4Object(List) 2011-01-12 23:43:05 +01:00
Günther Brammer 05ccd857e3 editor/gtk: ObjectListDlg opens object properties on double click 2011-01-12 22:09:28 +01:00
Günther Brammer b64653d003 editor/gtk: Pipette updates material combobox
This was lost in the editor source split.
2011-01-13 17:56:46 +01:00
Günther Brammer 8a0cc8d072 editor/gtk: Move ObjectListDlg to the front when activated while open
Previously, the menu entry did nothing when the dialog was open
2011-01-12 22:09:16 +01:00
Günther Brammer c908c47ca5 editor: Immediately update information about selected objects
This avoids resetting the selection of the object list dialog. Previously,
after selecting object in the list, C4EditCursor::Execute would set the
object list selection to what the user just had selected.
2011-01-12 21:31:10 +01:00
Günther Brammer b1cc96d6ce Fix a mismatched malloc/delete resulting from StdStdBuf::GrabPointer usage 2011-01-12 19:58:33 +01:00
Günther Brammer 173d247b4f x11: Restore argc/argv saving accidentally removed two commits ago 2011-01-10 15:52:50 +01:00
Günther Brammer 476439a1d4 editor/gtk: Hide unimplemented menu entries and object list pictures
The components menu entries never got implemented for the gtk editor mode
and probably never will, given their limited utility. The object list
pictures are simply broken.
2011-01-10 00:03:56 +01:00
Günther Brammer 20afa7b470 console mode: Move keyboard input to CStdInProc, make it compile again 2011-01-10 00:01:17 +01:00
Martin Plicht 0226c11f12 Mac: Cocoa: Allow resizing the game window. Aspect ratio enforced, no actual resolution switching 2011-01-06 17:56:04 +01:00
Martin Plicht 50c69ebedb Mac: Cocoa: Keyboard input: Feed whole utf8-string to C4GuiScreen::CharIn 2011-01-02 18:57:11 +01:00
Martin Plicht acf5480ac9 Mac: Cocoa: Multisampling 2011-01-02 02:13:09 +01:00
Martin Plicht 89a59b5453 Mac: Remove references to MacUtility.h in SDL files 2010-12-23 01:47:20 +01:00
Martin Plicht 776dd7060b Mac: Magnify gesture to toggle fullscreen mode when in the menus 2010-12-21 03:14:45 +01:00