From 767b850c938d37e39e13fcde9bf9d1897de968c6 Mon Sep 17 00:00:00 2001 From: Patrick Wieth Date: Sun, 17 Mar 2024 20:11:22 +0100 Subject: [PATCH] improved onboard preview --- src/views/CardCreatorPage.vue | 61 +++++++++++++++++++++++++---------- 1 file changed, 44 insertions(+), 17 deletions(-) diff --git a/src/views/CardCreatorPage.vue b/src/views/CardCreatorPage.vue index b2bb3509..9f308499 100644 --- a/src/views/CardCreatorPage.vue +++ b/src/views/CardCreatorPage.vue @@ -181,12 +181,10 @@ @dragleave.prevent="dragActive = false" @paste="onPaste" > -
-
+
+
@@ -952,6 +953,32 @@ export default { isEmpty(a) { return R.isEmpty(a); }, + getOBMask() { + console.log("model", this.model.type) + switch(this.model.type) { + case "Place": + return OBPlaceMask + case "Entity": + return OBEntityMask + case "Headquarter": + return OBHQMask + case "Action": + return OBActionMask + } + }, + getOBFrame() { + console.log("model", this.model.type) + switch(this.model.type) { + case "Place": + return OBPlace + case "Entity": + return OBEntity + case "Headquarter": + return OBHQ + case "Action": + return OBAction + } + }, getHQDelayRange() { return R.range( this.cardRules.Card.children[this.getRulesType()].children.Delay.min ||