Commit Graph

10192 Commits

Author SHA1 Message Date
Wei Tjong Yao
fad0ce5a3f Fixed loading child UIElement. 2013-04-03 16:56:47 +00:00
Wei Tjong Yao
3599b1e038 Fixed the editor crash when recreating var with existing var name. Fixed editing problem with multi-coordinate user-defined variable (Vector3 and Color). 2013-04-03 15:50:47 +00:00
Wei Tjong Yao
eead67f02b Fixed handling of user-defined variables for UIElement in attribute inspector, hide editor internal variables (id, filename, modification flag). 2013-04-03 13:17:49 +00:00
Lasse Öörni
b492108ff0 Fixed missing enum attribute list null termination for Text. 2013-04-03 11:08:44 +00:00
Wei Tjong Yao
7d5fbf6759 Created new event for UIElement name changed. Enhanced Hierarchy window to update the list item when the UIElement's 'Name' and 'Is Visible' attribute value changes. Changed editor to ignore other shortcut keys (except ESC) when file selector is modal. 2013-04-03 10:25:13 +00:00
Wei Tjong Yao
2349fabdb4 Modified ESC key handling to give priority to dismiss file selector when it is displayed. 2013-04-03 07:46:02 +00:00
Wei Tjong Yao
030454b57f Cleaned up the code. 2013-04-03 07:31:36 +00:00
Wei Tjong Yao
edc8e78aa6 Cleanup the code. 2013-04-03 07:12:35 +00:00
Lasse Öörni
835da8b073 Fixed missing undo action for importing a model. 2013-04-02 20:43:03 +00:00
Lasse Öörni
c3f36b0886 Fixed missing undo action for pasting a component. 2013-04-02 20:38:49 +00:00
Lasse Öörni
ae9fd63bac Removed unnecessary enum from undo actions.
Fixed UIElement editor targets not getting correctly retrieved.
Enable undo/redo of UIElement attributes.
2013-04-02 20:28:26 +00:00
Lasse Öörni
1a98b50646 Undo actions for attribute edit, node/component enable and gizmo drag. 2013-04-02 19:49:18 +00:00
Wei Tjong Yao
8c6808d237 When have multi-selection of mixed UIElement types, hides the non-common attribute editors. 2013-04-02 17:58:37 +00:00
Lasse Öörni
9f2c01a1cc Undo actions for component create & remove.
Store undo actions for instantiating builtin or loaded nodes.
2013-04-02 17:47:08 +00:00
Wei Tjong Yao
4b8aab55f7 Reverted attribue editor count logic as it does not work for all cases. 2013-04-02 17:34:46 +00:00
Wei Tjong Yao
3bb6fd5f40 Adjusted attribute editor count when the editor is being removed. 2013-04-02 17:27:32 +00:00
Wei Tjong Yao
c999748cea Fixed multi-selection of mixed UIElement type. 2013-04-02 17:13:05 +00:00
Lasse Öörni
5375254f0b Exposed functions to create nodes & components with specified IDs. This should make it unnecessary to handle ID rewriting in undo/redo. 2013-04-02 16:55:08 +00:00
Lasse Öörni
eb54a29d8f Check that modal element is parented to root, as the input exclusion does not work right otherwise.
Allow currently modal element to unset its own modal status.
2013-04-02 15:45:50 +00:00
Lasse Öörni
49b7b15ea6 Implement GetElementAt() exclusion with modal element without dynamic allocation.
Fixed popup element of a modal window not getting input.
GetVar() code shortening.
2013-04-02 15:29:11 +00:00
Wei Tjong Yao
a76a3b1ab7 Reordered UIElement's attributes, common attributes got registered first. Enhanced Attribute Inspector to show UIElement's attributes for single selection case. Multiple selection is still WIP. 2013-04-02 14:19:35 +00:00
Wei Tjong Yao
58aaf96eeb Reverted back partial changes in the Editor. 2013-04-02 04:40:34 +00:00
Wei Tjong Yao
738eef3de9 Revert back partial changes in the Editor. 2013-04-02 04:23:57 +00:00
Wei Tjong Yao
de9b19d6d4 Script subsystem prints the stack strace automatically on exception. 2013-04-02 04:21:42 +00:00
Wei Tjong Yao
276bbb1590 Updated documentation. 2013-04-02 03:49:55 +00:00
Wei Tjong Yao
e086e23383 Added PrintCallStack() function to script. 2013-04-02 03:48:46 +00:00
Wei Tjong Yao
ca227d27f3 Exposed the Window's modal shade color as property to Script and as attribute. Adjusted the shade color to match the default style theme. 2013-04-02 01:50:42 +00:00
Wei Tjong Yao
ec0658f1fe Reverted back changes in UI.cpp. Reapplied back the logic to Window.cpp so it could shade other UI elements as well. 2013-04-02 01:18:57 +00:00
Wei Tjong Yao
80794575ad Shade the UI root element when it has a modal element set to make it more stands out. 2013-04-02 00:56:37 +00:00
Lasse Öörni
4945c612f8 Started work on undo/redo. Attribute editing & component add/remove not undoable yet.
Ensure that node or component IDs are never reused.
2013-04-02 00:35:30 +00:00
Lasse Öörni
188867739c Fixed hierarchy window not updating correctly when component is removed. 2013-04-02 00:17:45 +00:00
Wei Tjong Yao
2bf7facaa7 Laying the groundwork in the Attribute Inspector for showing the UIElement's attributes (still need more work). Enhanced UI subsystem to support modal element, currently only support modal Window. Exposed a new Variant readonly property to test for 'empty' variant. New UIElement's method to get a child by matching the child's user-defined variant map and exposed it to script, also exposed the existing GetVar() method to script. 2013-04-01 16:04:41 +00:00
Lasse Öörni
0705a15c11 Further small fixes to the main loop documentation. 2013-04-01 15:22:55 +00:00
Lasse Öörni
9532e7fdd1 Renamed documentation page. 2013-04-01 15:14:59 +00:00
Lasse Öörni
a963ce7d37 Documented missing LogName parameter. 2013-04-01 14:54:03 +00:00
Lasse Öörni
b28621a3a4 Documented engine initialization parameters. 2013-04-01 14:33:38 +00:00
Lasse Öörni
3803983c3b Fixed Assimp's BoostWorkAround for GCC. 2013-03-31 23:19:33 +00:00
Lasse Öörni
42448b8924 Updated to AngelScript 2.26.2.
Small fixes to "Quickstart in C++" documentation.
2013-03-31 22:09:28 +00:00
Lasse Öörni
34df8b5e82 Fixed headless mode.
Allow StringHash & ShortStringHash to be constructed implicitly.
Code cleanup related to the above.
2013-03-31 21:41:50 +00:00
Lasse Öörni
ce562fb894 Refactored Engine to use a startup parameters VariantMap.
Enhanced VariantMap to accept indexing via strings.
2013-03-31 13:14:21 +00:00
Lasse Öörni
217682a696 Require Ogre .mesh.xml & .skeleton.xml files to have correctly named root elements. 2013-03-31 10:46:16 +00:00
Wei Tjong Yao
89bc93069a Refactored EditorUI.as to use funcdef callback for menu handling. 2013-03-31 08:42:34 +00:00
Wei Tjong Yao
8bdd0d7a5b Added new file for the UI element editor. 2013-03-31 01:50:05 +00:00
Lasse Öörni
31abcd7158 Fixed warning & off-by-one error. 2013-03-30 22:44:04 +00:00
Lasse Öörni
6a7ffdcd19 Updated to newest AssImp from git repository.
Fixed File::GetChecksum() logging numerous errors if file open in write mode. This prevented AssetImporter scene mode from working properly.
Fixed DocConverter asserting in debug mode. Added safe IsAlpha() & IsDigit() functions to StringUtils and exposed them to script.
2013-03-30 22:35:11 +00:00
Lasse Öörni
1c533b5611 Fixed camera position incorrectly depending on view angle in CharacterDemo first person mode. 2013-03-30 19:41:39 +00:00
Lasse Öörni
3539fcd26e Improved the final error message printed when an include file is missing.
Split CharacterDemo into multiple files.
Fixed missing VectorBuffer.h include in AnimationController.h.
2013-03-30 18:56:53 +00:00
Wei Tjong Yao
29b23c16d9 Cleanup source code indentation. 2013-03-30 14:11:05 +00:00
Wei Tjong Yao
75df330fe3 Started work on UI element editor, pardon the dust. Added 'traversalMode' property to UIElement and exposed it to ScriptAPI to control the children UI batches generation. Enhanced Scene to safe keep the filename used in last serialization, fixed to perform a Clear() before Load()/LoadXML(). Exposed String's Clear() method to Script API. Fixed ListView to insert multiple top-level items in hierarchy mode correctly. 2013-03-30 13:59:47 +00:00
Lasse Öörni
895f909297 Include cleanup. 2013-03-30 00:54:14 +00:00