Günther Brammer
2fded23a1b
Editor: Get function autocomplete names from proplists instead of scripts
2012-05-18 17:49:38 +02:00
Günther Brammer
c865021716
gtk: Fold C4GtkWindow into C4Window
2012-04-11 04:15:33 +02:00
Günther Brammer
40de33ca3c
win32: Make sdl-mainloop option work
...
As it doesn't have the editor, this is only useful for compiling
more of our code on more platforms.
2012-03-23 22:53:56 +01:00
Günther Brammer
25bbaef7d2
sdl-mainloop: Draw things again
2012-03-25 01:54:07 +01:00
Günther Brammer
b895bbad31
Consolidate some random platform abstraction functions into a single file
...
That way, the windows variants can be used without requiring the Win32
C4Window implementation.
2012-03-12 20:43:27 +01:00
Günther Brammer
3ec624bb7a
win32: Clean up some leftover old frontend User Messages
2012-03-04 19:15:16 +01:00
Günther Brammer
89bf0fc35a
Remove obsolete C4ConsoleGUI::SetCaption wrapper
...
The old windows editor is gone and doesn't need to find the engine with
FindWindow anymore.
2012-02-29 23:49:45 +01:00
Günther Brammer
dfea0914a9
Merge the functions pointer branch
2012-03-09 17:42:48 +01:00
Günther Brammer
9f180dffee
Script: Remove ScriptGo, ScriptCounter, goto and the ScriptN callbacks
...
No scenario uses them, and ScheduleCall provides an alternative.
2011-09-19 21:33:05 +02:00
Günther Brammer
0cd46a2ebc
Wrap C4AulFunc::Name in C4AulFunc::GetName()
2011-10-14 00:40:55 +02:00
Günther Brammer
469eb4ddbc
editor: Do copy the scenario before saving as a scenario
...
The deletion only happened when saving as a savegame.
C4Console::SaveScenario also is a much more natural place to do the
copying, since it already contained the part where the new path was copied
to Game.ScenarioFilename.
2011-10-12 20:47:08 +02:00
Günther Brammer
d835ab002a
Rename CStdWindow to C4Window
2011-08-27 23:12:01 +02:00
Günther Brammer
8039a35791
Rename CStdApp to C4AbstractApp
2011-08-27 16:20:39 +02:00
Günther Brammer
1f160083d7
editor: Do not copy and delete the scenario before saving
2011-09-28 01:10:31 +02:00
Günther Brammer
9bc61db360
copyright notices update 2011
2011-09-01 16:58:52 +02:00
Nicolas Hake
fe747db554
Clean up copyright notices
...
Use real names for copyright attribution wherever they are known,
drop duplicates
2011-09-01 12:47:54 +02:00
Günther Brammer
6e5332517d
editor: File/Save (As) again uses Game.ScenarioFile for saving ( #611 )
...
This should make it work again without having to understand what exactly
went wrong.
2011-06-24 14:25:30 +02:00
Günther Brammer
c70013b208
editor: File/Save Game As correctly preserves the Origin
2011-05-15 19:40:14 +02:00
Günther Brammer
3c943479ab
editor: File/Save creates a savegame when the original scenario was one
2011-05-15 19:38:47 +02:00
Günther Brammer
e537296829
editor: Change FileSelect abstraction to use StdStrBuf
...
Of course, windows still uses a buffer on the stack, but at least the other
versions don't.
2011-04-08 23:52:40 +02:00
Günther Brammer
b5dea20dae
Remove some dead code
2011-03-27 18:15:10 +02:00
Armin Burgmeier
2a2408f9a8
Change .c4p extension to .ocp
2011-03-13 16:39:48 +01:00
Armin Burgmeier
eaf62f71f9
Change .c4f extension to .ocf
2011-03-13 16:38:33 +01:00
Armin Burgmeier
e282bf9a9c
Change .c4s extension to .ocs
2011-03-13 16:11:55 +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
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
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
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
20afa7b470
console mode: Move keyboard input to CStdInProc, make it compile again
2011-01-10 00:01:17 +01:00
Günther Brammer
6d3feabe69
Reduce #includes so that C4Include.h doesn't include C4Value.h
...
This should avoid many complete rebuilds.
2011-01-08 17:04:20 +01:00
Günther Brammer
00db064ad5
SDL: updates for the editor and CStdWindow::Init changes
2011-01-08 02:18:36 +01:00
Günther Brammer
a03f849a4f
application: Simplify the way startup and game initialization works a bit
...
The editor now uses the same methods to start a game startup uses. Startup
no longer uses a nested main loop. Without a game running in the editor,
the application is in startup mode.
2011-01-07 00:51:35 +01:00
Günther Brammer
4d218d46da
editor: Simplify net menu API
2011-01-04 20:31:55 +01:00
Günther Brammer
be342d4a51
copyright notices update 2010
...
This time with more manual checking and using git blame -M -C, so that
a few cases of copied code get a copyright notice corresponding to
their initial introduction.
2010-12-23 01:01:24 +01:00
Günther Brammer
8c2d2d3cc1
editor: consolidate the four status text fields in one function
...
Only a very minor improvement in terms of lines-of-code, but still.
2010-12-14 02:06:23 +01:00
Martin Plicht
44928f1a8d
Platform-specific code in C4Console.cpp gets factored out into C4Console(Win32/GTK).cpp
2010-12-11 19:50:38 +01:00
Günther Brammer
9bf3288c77
Rewrite ParseCommandLine to work on argc/argv instead of a single string
...
Using the standard utility function on windows to split the line and the
operating system provided argc/argv on the others.
Also move the function to C4Application. It's not a huge win because the
flags are spread out between C4Game and C4Application pretty evenly, but
eventually most of them should move to a more appropriate place.
2010-10-04 21:39:19 +02:00
Günther Brammer
93a1e82907
Split out viewport stuff from C4GraphicsSystem to a new C4ViewportList
2010-09-29 03:44:05 +02:00
Armin Burgmeier
bd2f63bf1d
Add an option to build against GTK+ 3
2010-09-22 17:11:19 +02:00
Armin Burgmeier
9f65838ae8
Fix a couple of compiler warnings
2010-04-28 23:43:25 +02:00
Armin Burgmeier
70ac17c040
Mingw64 build fixes
2010-04-18 22:02:01 +02:00
Benjamin Herr
4378de147c
Rerun astyle with missing \ added
2010-03-28 20:58:01 +02:00
Günther Brammer
c40456b55e
Delete window surfaces before breaking the connection to the X server
...
Otherwise, destroying the OpenGL context would crash.
2010-03-25 20:58:46 +01:00
Günther Brammer
b4e37b070b
Change all indentation with spaces to use tabs instead
...
This is a whitespace-only patch. Hopefully, it'll only affect rarely-changed
parts of the engine, since all regularly maintained pieces should already
use tabs.
2010-03-27 17:05:02 +01:00
Benjamin Herr
f553e3f4d4
Use same file filter for Open/Open with players
...
Previously, the gtk /console window would not let me open scenarios
using the Open with players dialog.
2010-03-22 18:00:47 +01:00
Günther Brammer
4204e2fa44
Move the console-window-update-hack to SetInitProgress
...
This avoids drawing to a surface while the surface is created, or during
other DebugLog stuff. SetInitProgress should be called during relatively
stable points.
2010-03-05 01:13:06 +01:00
Nicolas Hake
0b137e8cd5
msvc: Build fixes for x64 compatibility
...
I don't know whether it works, because I don't have 64 bit libraries at the
moment. But at least the syntax errors are gone.
2010-02-27 14:48:01 +01:00
Benjamin Herr
f3b35227ea
avoid lots of gcc warnings
2010-01-25 05:00:59 +01:00
Tobias Zwick
edec15d64f
merge
2009-11-30 17:24:14 +01:00