localize card links, add_link, remove_links

This commit is contained in:
GenevensiS
2025-12-16 19:05:33 +01:00
parent ee0a56f8c0
commit aeed54e4ba
15 changed files with 352 additions and 166 deletions
+23
View File
@@ -0,0 +1,23 @@
//+----------------------------------------------------------------------------+
//| Description: Magic Set Editor - Program to make Magic (tm) cards |
//| Copyright: (C) Twan van Laarhoven and the other MSE developers |
//| License: GNU General Public License 2 or later (see file COPYING) |
//+----------------------------------------------------------------------------+
// ----------------------------------------------------------------------------- : Includes
#include <util/prec.hpp>
#include <data/card_link.hpp>
// ----------------------------------------------------------------------------- : CardLink
CardLink::CardLink() {}
String CardLink::name() {
return selected.get() + _(" // ") + linked.get();
}
IMPLEMENT_REFLECTION_NO_GET_MEMBER(CardLink) {
REFLECT_LOCALIZED(selected);
REFLECT_LOCALIZED(linked);
}