mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
'initial' property for color fields;
export options stored in settings; editor for export options. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@429 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -291,6 +291,14 @@ IMPLEMENT_REFLECTION(ChoiceStyle) {
|
||||
|
||||
// ----------------------------------------------------------------------------- : ChoiceValue
|
||||
|
||||
ChoiceValue::ChoiceValue(const ChoiceFieldP& field, bool initial_first_choice)
|
||||
: Value(field)
|
||||
, value( !field->initial.empty() ? field->initial
|
||||
: initial_first_choice ? field->choices->choiceName(0)
|
||||
: _("")
|
||||
, true)
|
||||
{}
|
||||
|
||||
String ChoiceValue::toString() const {
|
||||
return value();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user