krzys-h
e05fba22fd
Moved some interface controls around
2015-08-06 19:03:15 +02:00
krzys-h
ec3ded75b8
Removed unused LOD level setting
2015-08-06 18:35:56 +02:00
krzys-h
69c6e9d4be
Fixed level loading error message
2015-08-06 18:29:59 +02:00
krzys-h
7649731b49
Reimplemented hiding mouse during loading
2015-08-06 18:28:28 +02:00
krzys-h
dc9e2d2e8b
GUI loading error popup
...
Also added fireParticles option
2015-08-06 18:19:01 +02:00
krzys-h
b9bd075903
Drop (now unused) m_phase from CMainDialog
2015-08-06 16:20:29 +02:00
krzys-h
6e8266fd58
Always clear tooltip and highlighted object on phase change
2015-08-06 16:14:11 +02:00
krzys-h
50aaf04405
Don't rotate autosaves if not needed
2015-08-06 16:11:49 +02:00
krzys-h
711643b454
Refactored CMainDialog
2015-08-06 16:02:59 +02:00
Piotr Dziwinski
f29a826ad2
Fix Clang warnings about use of abs()
2015-08-06 14:31:40 +02:00
Piotr Dziwinski
654ef7ba59
Add proper initializers to common classes
2015-08-06 14:31:40 +02:00
Piotr Dziwinski
2906451d06
Indent style fix
2015-08-06 14:31:40 +02:00
Piotr Dziwinski
61ec101b11
Replace size_t with std::size_t
...
For some reason Clang's AST API doesn't like size_t
2015-08-06 14:31:40 +02:00
Piotr Dziwinski
6ca0757fec
Fix for Clang compilation
2015-08-06 14:31:40 +02:00
krzys-h
0dbfa027b1
Fixed dialog opening animation and particles
2015-08-06 14:04:33 +02:00
krzys-h
02417363e4
Fixed version text disappearing during loading
2015-08-06 14:03:07 +02:00
krzys-h
f0cfc35356
Fixed mouse particles appearing in simulation
2015-08-06 13:54:59 +02:00
krzys-h
d538b65ace
Fixed saving of selected object in autosaves
2015-08-06 13:53:03 +02:00
krzys-h
b20d589c87
Check available texture units in shadow mapping settings
2015-08-06 13:47:42 +02:00
Piotr Dziwinski
4faeffa77d
Fix for cursor particles in main menu
2015-08-06 13:25:56 +02:00
krzys-h
dc85aa2138
Moved all UI controls to a subdirectory
2015-08-06 13:25:24 +02:00
krzys-h
2b4210dcbc
Separated CMainUserInterface from CMainDialog
2015-08-06 12:59:09 +02:00
krzys-h
a322f46f00
Split CScreenSetup
2015-08-06 12:16:38 +02:00
Piotr Dziwinski
0c9cf51d81
Address comments on commit d7bc28a
2015-08-06 11:17:54 +02:00
Piotr Dziwinski
596bb49de0
Normalize static variables and functions
...
* get rid of some of them
* put the rest into anonymous namespaces
2015-08-06 10:12:20 +02:00
Piotr Dziwinski
bdeeaf690b
Get rid of memsets
2015-08-06 09:37:25 +02:00
Piotr Dziwinski
0c9e745213
Add proper initializations in remaining graphics classes
2015-08-06 09:33:27 +02:00
Piotr Dziwinski
c339838cd2
Add proper initializations in CWater, CTerrain and CCloud
...
Also make associated structs private
2015-08-06 08:22:11 +02:00
Piotr Dziwinski
d7bc28a595
Add proper initializations in CPlanet and refactor planet mode
2015-08-06 08:22:11 +02:00
Piotr Dziwinski
111d279de5
Add proper initializations in OpenGL classes
2015-08-06 08:22:11 +02:00
Piotr Dziwinski
91658c7df0
Add proper initializations in basic graphics structures
2015-08-06 08:22:11 +02:00
Piotr Dziwinski
7097ec38e3
Fix very subtle memory access bug
...
Some CScreen classes have functions which call ChangePhase() on
CRobotMain, which in turn calls ChangePhase() on CMainDialog, which in
turn deletes current CScreen object :(.
So the fix is to keep all CScreen objects created all the time and only
keep pointer to the currently active object.
This also makes it easy to clean up dependencies between CScreen classes
and get rid of all these ugly static variables and functions.
2015-08-06 08:18:22 +02:00
Piotr Dziwinski
c38ecd67ea
Fix crash in glDeleteTexture
2015-08-05 23:06:54 +02:00
krzys-h
95a438bcc6
Fixed cheat console and particles during loading
2015-08-05 22:54:13 +02:00
krzys-h
86caf4f098
Fixed a bug in 47d79c9977
2015-08-05 22:16:52 +02:00
Piotr Dziwinski
9ccb39ce66
Fix Clang compilation
2015-08-05 22:02:59 +02:00
krzys-h
2ef6d6caef
Updated submodule
2015-08-05 21:44:18 +02:00
Piotr Dziwinski
a9a643eea4
Add virtual destructor to CScreen to fix memory corruption issue
2015-08-05 20:59:49 +02:00
krzys-h
47d79c9977
Added #Include support in level files
2015-08-05 19:27:26 +02:00
krzys-h
6ad63e0f08
Updated submodule
2015-08-05 18:28:34 +02:00
Piotr Dziwinski
806ffdaf36
Fix segfault in unit tests
2015-08-05 10:27:39 +02:00
krzys-h
c62e583c12
Fixed log message
2015-08-04 23:34:39 +02:00
krzys-h
5e0cff29dc
Removed GetChapPassed from maindialog.h
2015-08-04 23:32:44 +02:00
krzys-h
54254e2158
Split CMainDialog
2015-08-04 23:29:18 +02:00
Piotr Dziwinski
c2387b4b56
Class naming fix
2015-08-04 20:58:03 +02:00
Piotr Dziwinski
18f9bfb575
Make saving screenshot thread- and exception-safe
...
* introduce ResourceOwningThread wrapper for safely passing resources
to new threads
* make CEventQueue thread-safe
* start screenshot saving thread using ResourceOwningThread
* change direct call at end of writing screenshot to thread-safe
event communication
2015-08-04 20:37:15 +02:00
MrSimbax
5005e760b9
Fix interrupting Me building when he's not selected ( fixes #548 )
2015-08-04 20:31:17 +02:00
krzys-h
3f48e4699d
Moved window position and font size storage from CRobotMain to CSettings
2015-08-04 13:09:34 +02:00
krzys-h
a4f12f1b11
Removed unused m_access* variables
2015-08-04 12:50:49 +02:00
krzys-h
4b271cee2d
Moved settings out of CMainDialog into a separate class
...
Also fixed some problems with resolution list selection after starting game
2015-08-04 12:46:54 +02:00