mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 21:06:59 -04:00
Script support for AColors. All colors in script related code are now AColor.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@852 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
// ----------------------------------------------------------------------------- : Includes
|
||||
|
||||
#include <util/prec.hpp>
|
||||
#include <gfx/color.hpp>
|
||||
class Context;
|
||||
class Dependency;
|
||||
|
||||
@@ -55,7 +56,7 @@ class ScriptValue : public IntrusivePtrBaseWithDelete {
|
||||
/// Convert this value to a boolean
|
||||
inline operator bool() const { return (int)*this; }
|
||||
/// Convert this value to a color
|
||||
virtual operator Color() const;
|
||||
virtual operator AColor() const;
|
||||
|
||||
/// Explicit overload to convert to a string
|
||||
/** This is sometimes necessary, because wxString has an int constructor,
|
||||
|
||||
Reference in New Issue
Block a user