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 gadi atpakaļ |
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 gadi atpakaļ |
Lasse Öörni
|
56fbf5a1e9
Added attributes to Text3D.
|
12 gadi atpakaļ |
Lasse Öörni
|
5bd757850f
Added functionality to Text3D. Attributes yet missing.
|
12 gadi atpakaļ |
Lasse Öörni
|
b492108ff0
Fixed missing enum attribute list null termination for Text.
|
12 gadi atpakaļ |
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.
|
12 gadi atpakaļ |
Wei Tjong Yao
|
06f3580948
Enhanced the Attribute Inspector to show the 'Is Enabled' check box on the node/component 'title bar' instead of in the attribute list; and small refactoring to reduce the number of parameters being passed in a number of functions. Refactored to modify AttributeInfo's name to become a String. Exposed 'internal' property of UIElement to Script API. Enhanced Text class so that it renders the selected text being hovered by mouse a little differently than those without.
|
12 gadi atpakaļ |
Lasse Öörni
|
e9aacd1df9
Removed the AttributeListChanged event for now, as it was causing stack overflows in the editor. It was only needed to track changed attributes on script file reload.
|
12 gadi atpakaļ |
Wei Tjong Yao
|
cb357e8859
Fixed the default UIBatch constructor to init all new member variables. Reapply speed optimisation logic in Text batch.
|
12 gadi atpakaļ |
Lasse Öörni
|
895819e8d2
Removed use of the UIQuad intermediate structure. Instead construct vertex data directly.
|
12 gadi atpakaļ |
Lasse Öörni
|
5160610e25
Refactored freely rotating / scaling UIElements into a separate Sprite class; removed rotation from the base class as it would not work correctly with element hierarchies in most cases.
|
12 gadi atpakaļ |
Wei Tjong Yao
|
d7f6b4d0b6
Enhanced UIElement to be able to set a default style file for later reference by children elements, added horizontal indentation feature, and added new E_LAYOUTUPDATED event. Enhanced ListView to better support hierarchy mode and added feature to show 'expansion triangle' in hierarchy mode. Fixed a bug in ScrollView to update view size correctly when resizing content element. Fixed a bug in Log's WriteRaw() method so it sends error message to stderr even in quite mode. Refactored Editor to take advantage of the enhancement.
|
12 gadi atpakaļ |
Lasse Öörni
|
9ef8625e33
Fixed BorderImage attributes (tiled, blendmode) missing from script API.
|
12 gadi atpakaļ |
Wei Tjong Yao
|
37cd015353
Further improvement.
|
12 gadi atpakaļ |
Wei Tjong Yao
|
5544602c9e
Enhance Font class to support saving of font (TTF or bitmap type) as another bitmap font resource in xml format. For bitmap font type, saving yet to another bitmap font is only meaningful when called with the optional parameter turned on to save only used glyphs. Refactored UIBatch class to enable better performance in Text class UI batch generation in relation to multi-pages/textures font.
|
12 gadi atpakaļ |
Wei Tjong Yao
|
a9209956cd
DocConverter skips when wiki output path does not exist. Font support multi-textures (pages) for both TTF and Bitmap font type. Combine the task to dump script API and convert doc to wiki into one process in a new batch file/script. Fixed the attribute index out of bound error when scene node is included as one of the multiple editable nodes.
|
12 gadi atpakaļ |
Lasse Öörni
|
ebcc766ac0
Minor code cleanup. Added GetAttribute() to Context, which returns a named attribute.
|
12 gadi atpakaļ |
Lasse Öörni
|
12bddee240
Whether to use derived opacity can be configured per UI element. By default true, except for Text.
|
12 gadi atpakaļ |
Lasse Öörni
|
1eda3844f0
Applied further UI and editor patch from weitjong. Text is now shown at full opacity in the editor, and the min/max opacity is also configurable.
|
12 gadi atpakaļ |
Lasse Öörni
|
da243eb31b
Applied UI & editor related patch from weitjong.
|
12 gadi atpakaļ |
Lasse Öörni
|
a40fead7dc
Updated license for the new year.
|
13 gadi atpakaļ |
Lasse Öörni
|
7d8558a51f
Applied massive patch from weitjong.
|
13 gadi atpakaļ |
Lasse Öörni
|
88aaa46465
Corrected formatting issues. License.txt & Readme.txt encoded as UTF-8, source code uses ASCII encoding.
|
13 gadi atpakaļ |
Lasse Öörni
|
4cef5395f5
Completed the UI element refactoring. Removed hardcoded SetStyle() functions which would read UI element attributes from XML.
|
13 gadi atpakaļ |
Lasse Öörni
|
0a16099532
UIElement serialization / deserialization.
|
13 gadi atpakaļ |
Lasse Öörni
|
83e90ae61c
Started work on UI element attributes.
|
13 gadi atpakaļ |
Lasse Öörni
|
f0b6d55b28
Enclosed Urho3D classes inside Urho3D namespace to avoid clashes with external libraries.
|
13 gadi atpakaļ |
Lasse Öörni
|
d66fb61091
Fixed texts defined in XML not showing.
|
14 gadi atpakaļ |
Lasse Öörni
|
01d893df98
Decode the text from UTF8 once during Text::SetText() for easier processing.
|
14 gadi atpakaļ |
Lasse Öörni
|
50226cfdb0
Started work toward Unicode compatibility.
|
14 gadi atpakaļ |