From bee11a106ebe6d521753c82e439b1ab0e7d80b7d Mon Sep 17 00:00:00 2001
From: surprise <15810472099@163.com>
Date: 星期四, 18 四月 2024 19:44:41 +0800
Subject: [PATCH] 三角网,瓦片坐标添加

---
 src/components/props/militaryPlot.vue |   58 +++++++++++++++-------------------------------------------
 1 files changed, 15 insertions(+), 43 deletions(-)

diff --git a/src/components/props/militaryPlot.vue b/src/components/props/militaryPlot.vue
index b8bc70c..2cca8ff 100644
--- a/src/components/props/militaryPlot.vue
+++ b/src/components/props/militaryPlot.vue
@@ -4,7 +4,7 @@
        id="moved2"
        @mousedown="moved">
     <div class="top">
-      <span style="font-weight: bold">鎬佸娍鏍囩粯</span>
+      <span style="font-weight: bold">缃戞牸鏄剧ず</span>
       <span class="close"
             @click="showtuli">X</span>
     </div>
@@ -44,45 +44,19 @@
       value2: false,
       ishowtuli: false,
       scale: 2.13,
+      tileCoordinates: true,
       Option: [
         {
-          name: '绮楃洿绠ご',
-          type: 'StraightArrow',
-          value: 'polygon',
+          name: '鐡︾墖鍧愭爣',
+          type: '1',
+
+        },{
+          name: '鍦板舰涓夎缃�',
+          type: '2',
+
         },
-        {
-          name: '鐕曞熬鐩寸澶�',
-          type: 'SwallowtailArrow',
-          value: 'polygon',
-        },{
-          name: '閽冲嚮绠ご',
-          type: 'PincerArrow',
-          value: 'polygon',
-        },{
-          name: '闆嗙粨鍦�',
-          type: 'GatheringPlace',
-          value: 'polygon',
-        },{
-          name: '鍦嗚鐭╁舰',
-          type: 'RoundedRectangle',
-          value: 'polygon',
-        },
-        {
-          name: '鎵囧舰',
-          type: 'Sector',
-          value: 'polygon',
-        },{
-          name: '寮撳舰',
-          type: 'Bow',
-          value: 'polygon',
-        },{
-          name: '鏀诲嚮绠ご',
-          type: 'AttackArrow',
-          value: 'polygon',
-        },{
-          name: '娓呴櫎',
-          type: 'Clear',
-        }
+
+
       ],
 
     };
@@ -125,13 +99,11 @@
       //娓呴櫎绯荤粺鍙扮珯锛岀洃娴嬬珯锛実b
     },
     setMenuClick (res) {
-      if(res.type=='Clear') {
-        sgworld.Creator.ClearMilitaryStandard();
-        return
+      if(res.type=='1') {
+        window.sgworld.tileCoordinates=!window.sgworld.tileCoordinates;
+      } else if(res.type=='2') {
+        window.sgworld.wireframe=!window.sgworld.wireframe;
       }
-
-      sgworld.Creator.militaryPlotting(res.type,res.value,(entity) => {
-      });
     }
   },
   mounted () {

--
Gitblit v1.9.3