Commit graph

5887 commits

Author SHA1 Message Date
Erik Ogenvik
9cff275fdb Fixed test. 2011-12-11 22:45:44 +01:00
Erik Ogenvik
c6bbd3bca6 Updated model definitions. 2011-12-11 22:40:43 +01:00
Erik Ogenvik
d9af7d1b6c Use the new action activation system. 2011-12-11 21:51:37 +01:00
Erik Ogenvik
38cffd62ee Added activation concept to actions.
This determines when the action should be played.
2011-12-11 21:50:06 +01:00
Erik Ogenvik
03e0b8cdc1 Fix leaking connection. 2011-12-11 21:45:02 +01:00
Erik Ogenvik
2a10f63257 Better docs. 2011-12-11 21:44:51 +01:00
Erik Ogenvik
5eecfc053d Removed MousePicker. 2011-12-10 22:58:56 +01:00
Erik Ogenvik
ea373ffe01 Fixed issue with terrain editor segfault. 2011-12-10 22:16:27 +01:00
Erik Ogenvik
f642accc2e Catch any Ogre material exceptions. 2011-12-10 22:02:15 +01:00
Erik Ogenvik
b8006c57c6 Added a mouse press down event.
The main world entity listener will only listen to click and pressed
events, but some of the authoring listeners will want the press start
event instead.

Also fixed issue where window focus was incorrectly removed for all kind
of pick types.
2011-12-10 21:58:26 +01:00
Erik Ogenvik
b898de04b2 Default to no mask. 2011-12-10 21:57:19 +01:00
Erik Ogenvik
6f21d07b66 Improve pick listening. 2011-12-10 20:39:47 +01:00
Erik Ogenvik
7f44ec8d8c Improve markings.
We now provide a colour for when the marker is being actively moved.
2011-12-10 20:03:55 +01:00
Erik Ogenvik
f0365e94b8 Only react on press event. 2011-12-10 16:29:47 +01:00
Erik Ogenvik
843a2ce096 Fixed broken terrain editor. 2011-12-10 16:29:40 +01:00
Erik Ogenvik
20cb4053b3 Made click threshold configurable. 2011-12-10 14:10:09 +01:00
Erik Ogenvik
2787cb290e Fixed various compiler warnings. 2011-12-06 21:36:13 +01:00
Erik Ogenvik
7bbf89f92e Removed obsolete file. 2011-12-06 21:09:22 +01:00
Erik Ogenvik
14f9016b70 Make sure we use virtual inheritance for trackable. 2011-12-06 21:07:03 +01:00
Erik Ogenvik
68b65ad46d Position the overlay slightly above cursor. 2011-12-04 21:21:35 +01:00
Erik Ogenvik
1d41a877cc Write to the game console when toching an entity. 2011-12-04 21:21:04 +01:00
Erik Ogenvik
64e3ec8155 Added helper function for Lua.
This makes it easier to call GUIManager::AppenAvatarImaginary::emit(...)
from Lua.
2011-12-04 21:20:06 +01:00
Erik Ogenvik
69e1f51bcb Ignore m4 directory. 2011-12-03 22:36:42 +01:00
Erik Ogenvik
df4e011a00 Rename and move to better place. 2011-12-03 22:26:26 +01:00
Erik Ogenvik
8307cd4ba6 Removed obsolete method. 2011-12-03 22:07:53 +01:00
Erik Ogenvik
4036f05097 Separate cursor interaction from GUIManager.
We should also rename the class.
2011-12-03 22:06:02 +01:00
Erik Ogenvik
6290adde29 Show a tool tip when hovering. 2011-12-03 21:40:53 +01:00
Erik Ogenvik
a87b9d49f5 Added a listener for hovering.
This will handle emitting hovering actions when it's detected that the
mouse is hovering over the world.
2011-12-03 21:40:03 +01:00
Erik Ogenvik
20c84386f2 Added a hover type of clicking.
This is when the mouse hovers over the world for a certain time.
2011-12-03 21:38:39 +01:00
Erik Ogenvik
bb267b9e0b Added some smaller fonts. 2011-12-03 21:36:48 +01:00
Erik Ogenvik
ecf2c9b284 Added missing types. 2011-12-03 21:36:05 +01:00
Erik Ogenvik
c9900f87fb Removed duplicate method. 2011-12-03 11:12:10 +01:00
Erik Ogenvik
cd9639ed9b Emit touch events when clicking.
Changed the way the user interacts. When clicking in the world, the user
will send touch actions to the clicked entity. If the user however press
and hold, the action menu will show up.
2011-12-02 23:30:08 +01:00
Erik Ogenvik
69b6b7c07e Hide OgreGuiRenderer in GUIManager.
Instead of exposing it we'll just expose a createTexture method.
Also cleaned up some cruft.
2011-12-02 23:28:37 +01:00
Erik Ogenvik
2d524c704e Fixed UI scripts after class removal. 2011-11-30 22:31:22 +01:00
Erik Ogenvik
5b78d602d9 Place in the middle of the world.
We'll thus always get full sunlight. As the server send data about the
location of the world this should be updated to properly parse and act
on it.
2011-11-30 22:16:07 +01:00
Erik Ogenvik
fa0ed64c96 Completely removed WorldEmberEntity. 2011-11-30 22:15:53 +01:00
Erik Ogenvik
3adb3c3211 Removed unused event. 2011-11-30 22:01:07 +01:00
Erik Ogenvik
08a81ef7a7 Split interfaces to separate file. 2011-11-30 21:37:59 +01:00
Erik Ogenvik
5a3a562cb9 Update environment when Calendar changes. 2011-11-30 21:24:20 +01:00
Erik Ogenvik
6316cd2cf3 Removed Time service.
Instead we'll have the Eris::Calendar entity handled by the World class.
2011-11-27 12:00:51 +01:00
Erik Ogenvik
78ccffa8d7 Removed script bindings for Application.
Since this class should never be accessed by something else.
2011-11-26 21:07:58 +01:00
Erik Ogenvik
fcae77791a Moved all exposed symbols to MainLoopController.
The objective here is to make sure that nothing refers back to
Application.
2011-11-26 20:48:52 +01:00
Erik Ogenvik
e9ade00de7 Moved loop control to separate class. 2011-11-26 20:17:06 +01:00
Erik Ogenvik
38a0182cc7 Removed WorldEmberEntity.
Also moved some more events to World.
2011-11-26 17:43:20 +01:00
Erik Ogenvik
ee9e1fa34f Moved Foliage creation to World. 2011-11-26 17:03:29 +01:00
Erik Ogenvik
ed4f6fe1b8 Removed the use of WorldEmberEntity. 2011-11-26 16:09:26 +01:00
Erik Ogenvik
14277df1f7 Moved more functionality from WorldEmberEntity.
This class will be removed completely, and the functionality moved
mainly to TerrainEntityManager.
2011-11-26 15:10:39 +01:00
Erik Ogenvik
fcca86f810 Moved terrain handling to separate manager.
The overall idea here is to flatten the EmberEntity class hierarchy and
to remove some of the tangle that exists.
2011-11-23 20:57:39 +01:00
Erik Ogenvik
6b60421b08 Use the dev channel for master branch. 2011-11-22 22:33:34 +01:00