mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
The 'Big Whine' patch:
Any use of a file from another package without a declared dependency will give a warning; Also added some more _LOCALE_123_ macros so we need less format_string calls git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@753 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ However some keys, like @mse version@ and @type@ must come first because they in
|
||||
|
||||
A heirachical file can contain a reference to another file:
|
||||
>>>include file: <em>filename</em>
|
||||
Where filename must be an absolute [[type:filename]].
|
||||
Where filename must be an absolute or relative [[type:filename]].
|
||||
|
||||
That file is included literally into the current one; except for indentation, the included file never escapes from the level the 'include file' line is on.
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ If @alpha@ is 1 the image stays the same, if @alpha@ is 0 the image becomes comp
|
||||
|
||||
--Examples--
|
||||
> set_alpha("image1.png", alpha: 0.5) == [[Image]]
|
||||
>>> set_mask(<img src="image1.png" alt='"image1.png"' style="border:1px solid black;vertical-align:middle;margin:1px;" />, alpha: 0.5) == <img src="image_set_alpha.png" alt='"image_set_alpha.png"' style="border:1px solid black;vertical-align:middle;margin:1px;" />
|
||||
>>> set_alpha(<img src="image1.png" alt='"image1.png"' style="border:1px solid black;vertical-align:middle;margin:1px;" />, alpha: 0.5) == <img src="image_set_alpha.png" alt='"image_set_alpha.png"' style="border:1px solid black;vertical-align:middle;margin:1px;" />
|
||||
|
||||
--See also--
|
||||
| [[fun:set_mask]] Set the transparancy mask of an image.
|
||||
|
||||
@@ -8,3 +8,13 @@ There are two types of filenames, relative and absolute:
|
||||
| <tt>/package/path/to/file</tt> An absolute filename includes the name of the package. This is a package somewhere in the MSE data directory.
|
||||
|
||||
Don't forget the double quotes (@""@) in scripts.
|
||||
|
||||
--Dependencies--
|
||||
When using an absolute filename to refer to a file from another [[file:package]],
|
||||
the [[type:dependency]] on that package must be declared.
|
||||
For example,
|
||||
>include file: /common.mse-include/something
|
||||
Will give a warning message, unless the file also lists
|
||||
>depends on:
|
||||
> package: common.mse-include
|
||||
> version: 2007-01-01
|
||||
|
||||
Reference in New Issue
Block a user