Lasse Öörni
|
4c6bce8174
Make a backup (filename.old) in editor when saving XML format scenes, layouts or materials, delete after successful save. This prevents losing the file if XML save crashes. Closes #530.
|
11 years ago |
Aster@中国上海
|
84fe0946c8
Remove ShortStringHash, Now all of ShortStringHash are replaced by StringHash.
|
11 years ago |
Yao Wei Tjong 姚伟忠
|
b23069ffa5
Prevent any usage of windowless MessageBox.
|
12 years ago |
Yao Wei Tjong 姚伟忠
|
9db5f85daf
Route system exit request to Exit menu handler to perform exit check.
|
12 years ago |
Yao Wei Tjong 姚伟忠
|
9f0ae5cea6
For Travis CI - add NinjaSnowWar into test cases.
|
12 years ago |
Yao Wei Tjong 姚伟忠
|
92cb20e9f5
Enhance Editor to warn user actions that can potentially lose data.
|
12 years ago |
Yao Wei Tjong 姚伟忠
|
c776573796
Add new MessageBox class for showing short messages in a modal window.
|
12 years ago |
Yao Wei Tjong 姚伟忠
|
4eee3b8a96
Lower user-created UI elements' priority. Closes #60.
|
12 years ago |
Lasse Öörni
|
cf50bb9f39
Optionally remember last resource path in editor.
|
12 years ago |
Wei Tjong Yao
|
4c305a17a3
Renamed top-level 'UI-element' menu item to 'UI-layout' to be consistent with documentation. Removed option to expand/collapse hierarchy item by double-clicking because on certain condition it may accidentally trigger a drag-drop operation when the list view's panel scrolled due to the result of the expand/collapse. Anyway, we already have more than one way to expand/collapse hierarchy item.
|
12 years ago |
Wei Tjong Yao
|
703d4fb10d
Fixed text rendering in Chat example app due to DefaultStyle.xml changes (Bug exists in the last release tag v1.23). Minor documentation fixed on NinjaSnowWar app. Cleaned up DefaultStyle.xml even more to remove repeating attribute declaration by taking advantage of the style inheritance feature. Changed the semantic of UIElement's style property in Script.
|
12 years ago |
Wei Tjong Yao
|
7457923437
Minor code cleanup in Editor app.
|
12 years ago |
Wei Tjong Yao
|
7d2c5db872
Differentiate between scene-modified and individual ui-element file-modified in the Editor app.
|
12 years ago |
Wei Tjong Yao
|
1b2497dc10
Added new LoadChildXML() method to UIElement and exposed it to Script. Changed Editor app to call LoadChildXML() instead of LoadXML() to prevent child XML-chunk from accidentally modifying the parent element's tyle. Note: child XML-chunk does not require nested element tag anymore.
|
12 years ago |
Wei Tjong Yao
|
fe5b26abd7
Manipulation of UI-element's style in the Attribute Inspector's Style drop down list is now functional. At the moment new style is applied on top of existing attribute values (i.e. without first removing the effect of existing style). Adjusted DefaultStyle.xml to enable highlight on selected item in DropDownList.
|
12 years ago |
Wei Tjong Yao
|
521ee691c3
Enhanced DropDownList to support showing of placeholder text when there is no selection. The text could be used to show a 'Please choose ...' kind of prompt. Rearranged child XML-chunk resources responsible for Attribute Inspector to remove duplicate definition. Added new child XML-chunk to display and manipulate applied style of the UI-element in the Editor (not yet fully functional). Adjusted DefaultStyle.xml to distinguish between auto and non-auto types. Added new method in Serializable to remove instance default and in UIElement to return applied style name, in preparation for future work.
|
12 years ago |
Wei Tjong Yao
|
f5aa8898da
Fixed UIElement's SetParent() method which was exposed to the Script API with wrong signature previously. Added drag-and-drop support for UI-element in Editor app.
|
12 years ago |
Wei Tjong Yao
|
da08a0b451
Added New reset-to-default icon in the Attribute Editor. Fixed the reset-to-default functionality to call ApplyAttributes() method after modifying the attribute values.
|
12 years ago |
Wei Tjong Yao
|
184360dc82
Added new feature in the Editor's edit menu to reset-to-default selected serializable objects (nodes, components, UI-elements) to their default values with undo/redo support. Added new method ResetToDefault() in Serializable class and exposed it to Script. Fixed the constness in Serializable class and all the recently added filtering methods in UIElement descandant classes. Exposed AM_NODEID and AM_COMPONENTID to Script. Added new Keys() method in HashMap class. Fixed SetModel() method in StaticModel and AnimatedModel to accept null model pointer in order to make reset-to-default to work.
|
12 years ago |
Wei Tjong Yao
|
9bfb0019e3
Added logic to filter UI-style and implicit attributes from UI serialization result. Added logic to let Attribute Inspector to recognize derived values from UI-style file (so, only user modified and programmatically modified attributes are displayed using 'modified color'). Enhanced UI style file processing to support derived 'style' (see how 'ListView' style is derived from 'ScrollView' style and 'CloseButton' derived from 'Button' in file 'DefaultStyle.xml' as examples). Enhanced Serializable class to support instance-level default values (used in XML serialization filtering and also in Editor app). Enhanced Context class to support update of class-level default values during object registration in UIElement's descendant classes. Verified and fixed the attribute default values in RegisterObject() method for all UIElement's descendant classes. Added new method in XMLElement to remove attribute. Exposed new methods to Script API accordingly.
|
12 years ago |
Wei Tjong Yao
|
a16998dc41
Code cleanup.
|
12 years ago |
Wei Tjong Yao
|
5d698d9ad1
Turned on XPath feature in pugixml thirdparty library. Added new XPath query and resultset wrapper classes and exposed them to Script. Reimplemented UI-element serialization filtering function using XPath query.
|
12 years ago |
Wei Tjong Yao
|
2ffd92b9f0
Code cleanup.
|
12 years ago |
Wei Tjong Yao
|
e57bc3987b
Serialized UI-element's user variable names in its own UI-element file instead of in scene file. Automatically determine the right UI-element level to perform the serialization when it is being requested. Fixed a bug in Scene class to unregister all the scene variable names when the scene is being cleared.
|
12 years ago |
Wei Tjong Yao
|
0af8f6afda
Applied the UI-element child sorting fix recursively.
|
12 years ago |
Wei Tjong Yao
|
5106e4cf00
Fixed the UI-element editor issue caused by child sorting.
|
12 years ago |
Wei Tjong Yao
|
17714cb198
Further fine tuning on the UI subsystem.
|
12 years ago |
Wei Tjong Yao
|
05fd7419a7
Fixed UI-element debug draw overdrawing the modal element and menu popup. Refactored UI subsystem to support multiple modal elements and auto-dismissal of modal elements when ESC is pressed. The 'Is Modal' attribute of Window UI-element type can be tested in Editor.
|
12 years ago |
Wei Tjong Yao
|
0eced5780e
Implemented 'Save UI-element' functionality (currently the 'UI style' is also getting serialized, which is not preferable). Fixed UI debug draw from being rendered on top of modal window.
|
12 years ago |
Wei Tjong Yao
|
2e57e55e84
Fixed a bug in XMLElement::RemoveChild() method. Implemented 'Save child UI-element' functionality.
|
12 years ago |