Commit Graph

9869 Commits

Author SHA1 Message Date
Lasse Öörni
20e6dd0da6 Resource dependency tracking for reloading resources. Currently implemented for ScriptFile. 2013-03-16 16:31:21 +00:00
Lasse Öörni
55f249e548 Automatically show compatible script object variables as ScriptInstance attributes and file-serialize them.
Separate script object functions for file and network serialization.
Fixed crashes in some factory instantiated classes when running without all subsystems.
Fixed crash if calling BringToFront() for a detached UI element.
Always create UI root element, even in headless mode.
Do not abort binary format scene loading if loading a component fails, as it is being read from a nested buffer and we can skip to the next.
2013-03-16 12:53:40 +00:00
Wei Tjong Yao
44d663ba41 Added new Print() variant in script API to print a Variant. Fixed StringUtils from erroneously converting numerical string to int/uint using base 8 or base 16 when the string is started with '0' or '0x'. Fixed the same/diff value evaluation for ResourceRefList, VariantVector, and VariantMap. 2013-03-16 08:17:26 +00:00
Lasse Öörni
18ecfc6486 Fixed incorrect exposing of Viewport's rect. 2013-03-15 19:48:48 +00:00
Wei Tjong Yao
990428ca4d Changed Append() methods implementation in String class so they can be chained together in a statement. Added new Join() methods and exposed it to Script API. Refactored Attribute Inspector to take advantage of the new exposed Join() method. 2013-03-15 16:36:23 +00:00
Wei Tjong Yao
9ed0c43919 Exposed math objects construction from an array of float/int and methods to get back the array buffer to the Script API. Enhanced the Attribute Inspector to multi-edit same value at coordinate level for attributes that have multiple coordinates, e.g. Vector3, Color, etc. Different value at coordinate level is non-editable as before. 2013-03-14 19:00:09 +00:00
Wei Tjong Yao
37cd015353 Further improvement. 2013-03-14 11:25:40 +00:00
Lasse Öörni
83c5586b53 Applied patch to Maxscript exporter. 2013-03-14 09:13:55 +00:00
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. 2013-03-14 08:14:38 +00:00
Lasse Öörni
b296951980 Allow alternate extension .material for material files in the editor. 2013-03-13 12:27:46 +00:00
Lasse Öörni
21dd4b6c70 Updated the Maxscript exporter.
Reduce DOT graph depth in the documentation.
2013-03-13 08:27:08 +00:00
Lasse Öörni
04620cc75f Updated the modified MaxscriptExporter. 2013-03-12 17:09:47 +00:00
Lasse Öörni
5e443328ac Added recursive -parameter to Node::GetComponents() to get components of specific type also from child nodes. 2013-03-12 17:08:07 +00:00
Wei Tjong Yao
b3f1da148d Upgraded the Doxyfile configuration file to remove outdated option and turned on the HAVE_DOT,CALL/CALLER_GRAPH options. Added option to convert doxygen files to HTML in the update document batch/shell file. Replaced '' with '' in the shell scripts to support argument with spaces (just in case). 2013-03-12 15:30:27 +00:00
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. 2013-03-12 13:55:40 +00:00
Lasse Öörni
4652de45fd Compile AngelScript library in arm mode on Android to ensure compatibility with newest NDK's. 2013-03-11 23:03:40 +00:00
Lasse Öörni
97a30bbe78 Cleaned up ListView content resize in regard to automatic scrollbar visibility. 2013-03-11 07:48:37 +00:00
Lasse Öörni
938356ed28 Removed unnecessary nullchecks. 2013-03-11 00:19:52 +00:00
Lasse Öörni
dbac4f482b Fix to scrollbar autovisibility and possible infinite recursion. 2013-03-11 00:04:13 +00:00
Lasse Öörni
07c0f7228a Added flag to ScrollView / ListView whether to set scrollbar visibility automatically. Default true. Calling SetScrollBarsVisible() disables this. 2013-03-10 19:31:34 +00:00
Wei Tjong Yao
14c06b3dc5 Added ability to edit attributes of multiple selected nodes, only mutual attribute values are editable. Modify script API for VariantMap's Erase() method to return bool. Fixed one of the Print() function in IOAPI to use the 'error' parameter. 2013-03-10 17:54:20 +00:00
Lasse Öörni
b1b8a00ace Moved checking for script file name & printing usage inside Application::Run().
Fixed some command line options (-prepass and -deferred) not being printed.
2013-03-10 16:22:43 +00:00
Lasse Öörni
8461f151d5 Removed redundant comment. 2013-03-10 13:56:01 +00:00
Lasse Öörni
0762154240 Fixed shadows when not reusing shadowmaps (missing call to ResetShadowMapAllocations()). 2013-03-10 13:52:57 +00:00
Lasse Öörni
c513645a1a Added modified Ogre Maxscript Exporter contributed by Vladimir Pobedinskij, which outputs materials in Urho3D .xml format. 2013-03-10 12:34:38 +00:00
Lasse Öörni
ab4a9d16c9 Removed unnecessary calling of static function via pointer in exposing the Log object to script.
Fixed trying to write into an unopened file in DocConverter.
2013-03-10 12:08:29 +00:00
Wei Tjong Yao
51c0b76c6b Code cleanup (pardon the dust). 2013-03-10 08:06:06 +00:00
Wei Tjong Yao
4d72b5a609 ScriptAPIDumper dumps to console when output file is not provided. Removed caveat from have to compile with ENABLE_LOGGING. Exposed variants to print to stderr to script. Added shell script for calling ConvertDocsToWiki executable. Fixed Editor application to handle exit on error gracefully. Updated documentation and wiki accordingly. 2013-03-10 06:16:12 +00:00
Lasse Öörni
20619d01b1 Converted Log into a monostate to allow logging without a Context pointer.
Made Time::GetSystemTime() and Time::GetTimeStamp() static as they don't use any instance data.
2013-03-09 22:23:23 +00:00
Lasse Öörni
6e90c6ea13 Fixed bug in win32 ScanDir implementation, which did not scan subdirs if filter was not *.*.
Added Extras directory for contributions which are not strictly Urho3D core.
Added OgreBatchConverter utility from Carlo Carollo, modified to use Urho3D classes to be crossplatform compatible.
2013-03-09 20:42:45 +00:00
Wei Tjong Yao
88cfb4ac4f Fixed the component title labeling bug when more than one node are selected. 2013-03-09 18:51:28 +00:00
Wei Tjong Yao
fb2d208d28 Added new partial UI layout for the component child container. 2013-03-09 18:29:37 +00:00
Wei Tjong Yao
38d12c122c Added functionality to show multiple components in the atribute editor when a node or nodes are selected in the hierarchy window. Remove 'editable' parameter in the attribute creation functions as now whether an attribute is editable or not is dynamically set when loading the attribute value and not at the time of its editor creation. Exposed to all the UIElement-derived class a new function to load (partial) UI layout. 2013-03-09 18:25:35 +00:00
Lasse Öörni
5ef102695d Fixed poor script performance in NinjaSnowWar, which was caused by each AI controller scanning for new target each frame. Now choose target only once, or when old target has died. 2013-03-09 15:21:50 +00:00
Wei Tjong Yao
4efdfc87dc Tidied up AttributeEditor.as, better way to handle attribute that has multiple components. Exposed a few more math constants to script. 2013-03-09 12:39:01 +00:00
Wei Tjong Yao
96f8cdabd0 Attribute with different values from multi-select is shown as non-editable and its value strikes out (if possible). Renamed 'Node / component edit' window to 'Attribute inspector'. 2013-03-09 06:18:54 +00:00
Wei Tjong Yao
9f674d25d9 Removed left-over code. 2013-03-09 00:59:10 +00:00
Lasse Öörni
53d87516b5 Documentation update.
Code formatting consistency.
Handle underscore escaping in DocConverter.
2013-03-08 21:43:14 +00:00
Lasse Öörni
b756022eb6 DocConverter improvements: ä / ouml; handling, [] escaping, and removal of automatic links from upper-camelcase words. 2013-03-08 19:47:29 +00:00
Lasse Öörni
6b28127751 DocConverter improvements. 2013-03-08 16:49:13 +00:00
Lasse Öörni
424e1750f4 Added note of online Doxygen documentation. 2013-03-08 15:58:56 +00:00
Wei Tjong Yao
34a849e00e Speed up TTF loading time. Tidied up code for loading/getting bitmap font. 2013-03-08 15:08:14 +00:00
Lasse Öörni
5064b43c1a Fix multithreading page. 2013-03-08 14:50:41 +00:00
Lasse Öörni
783ad6e147 Documentation fixes. 2013-03-08 14:46:55 +00:00
Lasse Öörni
57ab758ffd DocConverter fixes / additions. 2013-03-08 14:41:15 +00:00
Lasse Öörni
22ead3645c Started work on doxygen-to-wiki conversion for Urho3D documentation. 2013-03-08 14:23:46 +00:00
Wei Tjong Yao
c6bbe91faa Set the execute-bit on for *.sh. 2013-03-07 15:36:29 +00:00
Wei Tjong Yao
8957ef2126 Slightly darker background for non-editable LineEdit element. 2013-03-07 13:40:20 +00:00
Lasse Öörni
ecd89d7442 Fixed GCC build. 2013-03-06 21:47:40 +00:00
Lasse Öörni
c55c9cf064 Exposed AnimationTriggerPoint to script.
Exposed Material::SetTechnique() to script.
Added camera functions from Magic.Lixin.
2013-03-06 19:50:42 +00:00