mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 21:06:59 -04:00
The DECLARE_TYPEOF(()) calls don't work in MSVC, I changed it to use a COMMA macro instead of ,
If this doesn't work in GCC, the COMMA definition could be made only for MSVC, then GCC sees DECLARE_TYPEOF(map<int COMMA string>). GCC doesn't need DECLARE_TYPEOF anyway. Keyword expansion now works, still todo: - marking parameters, e.g. "Cycling 2W" -> "Cycling <param-mana>2W</param-mana>" - user interface for toggling reminder text - user interface for keywords git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@210 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -9,8 +9,8 @@
|
||||
#include <data/action/symbol.hpp>
|
||||
#include <data/action/symbol_part.hpp>
|
||||
|
||||
DECLARE_TYPEOF_COLLECTION((pair<SymbolPartP,SymbolPartCombine>));
|
||||
DECLARE_TYPEOF_COLLECTION((pair<SymbolPartP,size_t >));
|
||||
DECLARE_TYPEOF_COLLECTION(pair<SymbolPartP COMMA SymbolPartCombine>);
|
||||
DECLARE_TYPEOF_COLLECTION(pair<SymbolPartP COMMA size_t >);
|
||||
DECLARE_TYPEOF_COLLECTION(SymbolPartP);
|
||||
DECLARE_TYPEOF_COLLECTION(ControlPointP);
|
||||
|
||||
@@ -204,11 +204,11 @@ void SymbolPartScaleAction::update() {
|
||||
// the size after the move
|
||||
newMin = newRealMin; newSize = newRealSize;
|
||||
if (constrain && scaleX != 0 && scaleY != 0) {
|
||||
// TODO : snapping
|
||||
Vector2D scale = newSize.div(tmpSize);
|
||||
scale = constrain_vector(scale, true, true);
|
||||
newSize = tmpSize.mul(scale);
|
||||
newMin += (newRealSize - newSize).mul(Vector2D(scaleX == -1 ? 1 : 0, scaleY == -1 ? 1 : 0));
|
||||
// TODO : snapping
|
||||
} else if (snap >= 0) {
|
||||
if (scaleX + scaleY < 0) {
|
||||
newMin = snap_vector(newMin, snap);
|
||||
|
||||
Reference in New Issue
Block a user