mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
Use underscores instead of spaces for all internal names. And renamed some script functions at the same time.
* cannocial_name_form now outputs "_", where it used to use " " * this simplifies reflectio and scripting code, because now C++ names are also MSE internal names * added 'caption' property to fields. This is used instead of the name in NativeLookEditor, since the latter will now contain underscores. * renamed text related script functions for consistency, since we were touching that part of the code anyway.
This commit is contained in:
@@ -423,12 +423,12 @@ class ApprCardRecord : public IntrusivePtrBase<ApprCardRecord> {
|
||||
ApprCardRecord::ApprCardRecord(const Card& card, const String& sets_) {
|
||||
name = untag_appr(card.value<TextValue>(_("name")).value);
|
||||
sets = sets_ + _("-") + card_rarity_code(card.value<ChoiceValue>(_("rarity")).value);
|
||||
cc = untag_appr(card.value<TextValue>(_("casting cost")).value);
|
||||
type = untag_appr(card.value<TextValue>(_("super type")).value);
|
||||
String subType = untag(card.value<TextValue>(_("sub type")).value);
|
||||
cc = untag_appr(card.value<TextValue>(_("casting_cost")).value);
|
||||
type = untag_appr(card.value<TextValue>(_("super_type")).value);
|
||||
String subType = untag(card.value<TextValue>(_("sub_type")).value);
|
||||
if (!subType.empty()) type += _(" - ") + subType;
|
||||
text = untag_appr(card.value<TextValue>(_("rule text")).value);
|
||||
flavor = untag_appr(card.value<TextValue>(_("flavor text")).value);
|
||||
text = untag_appr(card.value<TextValue>(_("rule_text")).value);
|
||||
flavor = untag_appr(card.value<TextValue>(_("flavor_text")).value);
|
||||
pt = untag_appr(card.value<TextValue>(_("pt")).value);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user