Lasse Öörni
|
ad7b7451b4
As latest SDL was found to be non-threadsafe in practice, removed the StaticMutex and the OBJECTTYPESTATIC constructs which were added to support multi-context use within a single process.
|
před 12 roky |
Lasse Öörni
|
7402da1ebd
Fixed menu item staying pressed and performing its action later if cursor was moved away from it with left button pressed.
|
před 12 roky |
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.
|
před 12 roky |
Lasse Öörni
|
c0dbf7f545
Generalized the factory category for all objects.
|
před 12 roky |
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.
|
před 12 roky |
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.
|
před 12 roky |
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.
|
před 12 roky |
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.
|
před 12 roky |
Wei Tjong Yao
|
4d66b554c3
Fixed exit crashes issue in Editor (manifested itself when 'Edit' menu has been popped up).
|
před 12 roky |
Wei Tjong Yao
|
1230087620
Implemented all the common edit functionalities under 'Edit' menu for UI-element with undo/redo support. Exposed Variant's SetUInt() and GetUInt() to script. Enhanced UIElement's CreateChild() and LoadXML() to insert newly created child at the request child index, added new FindChild() method and exposed it. Added new XMLElement's SetUInt() and GetUInt() methods and exposed them. Simplified the Menu's hover logic to resolve stability issue.
|
před 12 roky |
Wei Tjong Yao
|
d5ddc3b3d6
Implemented 'Create new UI Element' functionality in the editor with undo/redo support. Some cosmetic changes in editor. Enhanced UI Script API to be able to define element event sender. Enhanced Menu to auto popup child menu when parent menu item is being hovered.
|
před 12 roky |
Lasse Öörni
|
49b7b15ea6
Implement GetElementAt() exclusion with modal element without dynamic allocation.
|
před 12 roky |
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.
|
před 12 roky |
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.
|
před 12 roky |
Lasse Öörni
|
34df8b5e82
Fixed headless mode.
|
před 12 roky |
Lasse Öörni
|
5830f0e5d1
Convention change: prefer Enabled instead of Active where possible.
|
před 13 roky |
Lasse Öörni
|
da243eb31b
Applied UI & editor related patch from weitjong.
|
před 13 roky |
Lasse Öörni
|
a40fead7dc
Updated license for the new year.
|
před 13 roky |
Lasse Öörni
|
7d8558a51f
Applied massive patch from weitjong.
|
před 13 roky |
Lasse Öörni
|
88aaa46465
Corrected formatting issues. License.txt & Readme.txt encoded as UTF-8, source code uses ASCII encoding.
|
před 13 roky |
Lasse Öörni
|
9401ad8063
Removed UI serialization hacks related to the Menu & DropDownList popup element. To avoid layout problems, now it is never added as a child temporarily.
|
před 13 roky |
Lasse Öörni
|
85c14f96f9
Added checked attribute to CheckBox.
|
před 13 roky |
Lasse Öörni
|
4cef5395f5
Completed the UI element refactoring. Removed hardcoded SetStyle() functions which would read UI element attributes from XML.
|
před 13 roky |
Lasse Öörni
|
f0b6d55b28
Enclosed Urho3D classes inside Urho3D namespace to avoid clashes with external libraries.
|
před 13 roky |
Lasse Öörni
|
91f6f87472
Explicitly mark changed nodes to avoid going through the whole scene in PrepareNetworkUpdate().
|
před 13 roky |
Lasse Öörni
|
cc3ee34f58
Increased occlusion buffer depth bias.
|
před 14 roky |
Lasse Öörni
|
95a8c8bfa7
Added overloads to Variant & XMLElement that take char pointers.
|
před 14 roky |
Lasse Öörni
|
a341b9ea4f
Cleaned up Menu code.
|
před 14 roky |
Lasse Öörni
|
f58e2595bf
Rewrite node & component IDs when instantiating content from file.
|
před 14 roky |
Lasse Öörni
|
58843be1fa
Initial multiselection in the editor.
|
před 14 roky |