mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
implemented symbol font
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@81 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -50,7 +50,8 @@ class ScriptableImage {
|
||||
inline operator bool() const { return script; }
|
||||
|
||||
/// Generate an image, doesn't cache, and doesn't scale
|
||||
/** Image files are loaded from the given package */
|
||||
/** Image files are loaded from the given package.
|
||||
* The result is always valid. */
|
||||
ScriptImageP generate(Context& ctx, Package&) const;
|
||||
/// Generate an image, scaling it and optionally saturating it
|
||||
ScriptImageP generate(Context& ctx, Package&, UInt width, UInt height, PreserveAspect preserve_aspect = ASPECT_STRETCH, bool saturate = false) const;
|
||||
|
||||
@@ -93,7 +93,8 @@ class Scriptable {
|
||||
Scriptable() : value() {}
|
||||
Scriptable(const T& value) : value(value) {}
|
||||
|
||||
inline operator const T& () const { return value; }
|
||||
inline operator const T& () const { return value; }
|
||||
inline const T& operator ()() const { return value; }
|
||||
inline bool isScripted() const { return script; }
|
||||
|
||||
/// Updates the value by executing the script, returns true if the value has changed
|
||||
|
||||
Reference in New Issue
Block a user