Difference between revisions of "InsertXML"
Jump to navigation
Jump to search
m
no edit summary
imported>Kyoma m |
imported>Kyoma m |
||
Line 4: | Line 4: | ||
(success:bool) InsertXML contentAndComponent:formatString menuType:int | (success:bool) InsertXML contentAndComponent:formatString menuType:int | ||
Inserts the xml file or xml content into the given menu. The | Inserts the xml file or xml content into the given menu. The string consists of two parts, each seperated by a pipe character. First the <tt>xmlFile</tt> or <tt>xmlString</tt> you wish to insert. Then the component path where it is to be inserted. | ||
== Examples == | == Examples == | ||
Line 17: | Line 17: | ||
== Notes == | == Notes == | ||
* If calling from the console, replace the pipe character with the '@' character. | |||
* The component path can be omitted, in which case it gets inserted at top-level | |||
* The filepath is relative to Data\Menus\Prefabs | * The filepath is relative to Data\Menus\Prefabs | ||
==See also== | ==See also== |