mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
3c4729aaa2
Added 'pack type', intended for playtesting (random boosters/starters); Added 'default(_image)' property to ImageStyle, and added the frame fillers for magic; Added blurring and bold printing (rather hacky) to the text rendering functions (used for "double click to add image" text); Added 'symmetric overlay' combine mode, which will look really nice for hybrids; Moved the watermark choices from the game to an include file in magic-watermarks; Working on a replacement for the image scripting system that plays nicer with the rest of the code. In particular, it will be possible to compare generated images quickly, so they can be updated continuously. This is a work in progress, currently there are two versions of everything. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@327 0fc631ac-6414-0410-93d0-97cfa31319b6
47 lines
1.5 KiB
C++
47 lines
1.5 KiB
C++
//+----------------------------------------------------------------------------+
|
|
//| Description: Magic Set Editor - Program to make Magic (tm) cards |
|
|
//| Copyright: (C) 2001 - 2007 Twan van Laarhoven |
|
|
//| License: GNU General Public License 2 or later (see file COPYING) |
|
|
//+----------------------------------------------------------------------------+
|
|
|
|
// ----------------------------------------------------------------------------- : Includes
|
|
|
|
#include <data/field/image.hpp>
|
|
|
|
// ----------------------------------------------------------------------------- : ImageField
|
|
|
|
IMPLEMENT_FIELD_TYPE(Image)
|
|
|
|
String ImageField::typeName() const {
|
|
return _("image");
|
|
}
|
|
|
|
IMPLEMENT_REFLECTION(ImageField) {
|
|
REFLECT_BASE(Field);
|
|
}
|
|
|
|
|
|
// ----------------------------------------------------------------------------- : ImageStyle
|
|
|
|
IMPLEMENT_REFLECTION(ImageStyle) {
|
|
REFLECT_BASE(Style);
|
|
REFLECT_N("mask", mask_filename);
|
|
REFLECT_N("default", default_image);
|
|
}
|
|
|
|
bool ImageStyle::update(Context& ctx) {
|
|
return Style ::update(ctx)
|
|
| mask_filename.update(ctx)
|
|
| default_image.update(ctx);
|
|
}
|
|
|
|
// ----------------------------------------------------------------------------- : ImageValue
|
|
|
|
String ImageValue::toString() const {
|
|
return filename.empty() ? wxEmptyString : _("<image>");
|
|
}
|
|
|
|
IMPLEMENT_REFLECTION_NAMELESS(ImageValue) {
|
|
if (fieldP->save_value || tag.scripting()) REFLECT_NAMELESS(filename);
|
|
}
|