浏览代码

修改标签布局

jet 8 年之前
父节点
当前提交
58fc487b18
共有 3 个文件被更改,包括 30 次插入39 次删除
  1. 3 2
      Assets/Resource/Logo.unity
  2. 15 15
      Assets/Resource/Prefab/PrefabUI/SkillItem.prefab
  3. 12 22
      Assets/Script/Manage/ManaVisit.cs

+ 3 - 2
Assets/Resource/Logo.unity

@@ -445,8 +445,9 @@ MonoBehaviour:
   m_Script: {fileID: 11500000, guid: f1828554d8ffa12449b221fe29b2c32c, type: 3}
   m_Name: 
   m_EditorClassIdentifier: 
-  DebugMode: 0
-  DebugModeGo: {fileID: 0}
+  DebugMode: 1
+  DebugModeGo: {fileID: 1264531325540048, guid: b22fd2d9abc702d43ac62a412537d4e9,
+    type: 2}
 --- !u!4 &1833966245
 Transform:
   m_ObjectHideFlags: 0

+ 15 - 15
Assets/Resource/Prefab/PrefabUI/SkillItem.prefab

@@ -419,7 +419,7 @@ MonoBehaviour:
   m_Name: 
   m_EditorClassIdentifier: 
   m_Material: {fileID: 0}
-  m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
+  m_Color: {r: 1, g: 1, b: 1, a: 1}
   m_RaycastTarget: 0
   m_OnCullStateChanged:
     m_PersistentCalls:
@@ -439,7 +439,7 @@ MonoBehaviour:
     m_HorizontalOverflow: 0
     m_VerticalOverflow: 0
     m_LineSpacing: 1
-  m_Text: New Text
+  m_Text: "\u70ED\u5356"
 --- !u!114 &114823576705235868
 MonoBehaviour:
   m_ObjectHideFlags: 1
@@ -452,15 +452,15 @@ MonoBehaviour:
   m_Name: 
   m_EditorClassIdentifier: 
   m_Material: {fileID: 0}
-  m_Color: {r: 1, g: 1, b: 1, a: 1}
+  m_Color: {r: 1, g: 0.39215687, b: 0.27450982, a: 1}
   m_RaycastTarget: 0
   m_OnCullStateChanged:
     m_PersistentCalls:
       m_Calls: []
     m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
       Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
-  m_Sprite: {fileID: 0}
-  m_Type: 0
+  m_Sprite: {fileID: 21300000, guid: 9581ccebf924e0d40bc15fdadc255351, type: 3}
+  m_Type: 1
   m_PreserveAspect: 0
   m_FillCenter: 1
   m_FillMethod: 4
@@ -687,7 +687,7 @@ RectTransform:
   m_GameObject: {fileID: 1753077593704228}
   m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
   m_LocalPosition: {x: 0, y: 0, z: 0}
-  m_LocalScale: {x: 1, y: 1, z: 1}
+  m_LocalScale: {x: 0.5, y: 1, z: 1}
   m_Children:
   - {fileID: 224680618114388086}
   m_Father: {fileID: 224859775814496456}
@@ -695,8 +695,8 @@ RectTransform:
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
   m_AnchorMin: {x: 0.5, y: 0.5}
   m_AnchorMax: {x: 0.5, y: 0.5}
-  m_AnchoredPosition: {x: 39.8, y: 17.999992}
-  m_SizeDelta: {x: 88.475, y: 36}
+  m_AnchoredPosition: {x: 45.04, y: -16.11}
+  m_SizeDelta: {x: 136.4, y: 29.2}
   m_Pivot: {x: 0.5, y: 0.5}
 --- !u!224 &224621018139970486
 RectTransform:
@@ -741,17 +741,17 @@ RectTransform:
   m_PrefabParentObject: {fileID: 0}
   m_PrefabInternal: {fileID: 100100000}
   m_GameObject: {fileID: 1571775833425854}
-  m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
+  m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
   m_LocalPosition: {x: 0, y: 0, z: 0}
-  m_LocalScale: {x: 1, y: 1, z: 1}
+  m_LocalScale: {x: 2, y: 1, z: 1}
   m_Children: []
   m_Father: {fileID: 224416091010794476}
   m_RootOrder: 0
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
-  m_AnchorMin: {x: 0, y: 0}
-  m_AnchorMax: {x: 1, y: 1}
-  m_AnchoredPosition: {x: 0, y: 0}
-  m_SizeDelta: {x: 0, y: 0}
+  m_AnchorMin: {x: 0, y: 0.5}
+  m_AnchorMax: {x: 1, y: 0.5}
+  m_AnchoredPosition: {x: -0.000030517578, y: 0.09999466}
+  m_SizeDelta: {x: -81.19998, y: 29}
   m_Pivot: {x: 0.5, y: 0.5}
 --- !u!224 &224762394635763476
 RectTransform:
@@ -828,7 +828,7 @@ RectTransform:
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
   m_AnchorMin: {x: 0, y: 0}
   m_AnchorMax: {x: 0, y: 0}
-  m_AnchoredPosition: {x: 0, y: 0}
+  m_AnchoredPosition: {x: 400, y: 225.08}
   m_SizeDelta: {x: 489, y: 72}
   m_Pivot: {x: 0.5, y: 0.5}
 --- !u!224 &224932934460238738

+ 12 - 22
Assets/Script/Manage/ManaVisit.cs

@@ -688,7 +688,7 @@ public class ManaVisit
 
         int slot = 1;
 
-        int newLevel = Random.Range(1, 300);
+        int newLevel = Random.Range(1, 301);
         
         XmlNodeList nodeList = doc.SelectSingleNode("PlayerConfig").SelectSingleNode("SkillList").ChildNodes;
 
@@ -751,40 +751,30 @@ public class ManaVisit
         XmlNode xmlNode = doc.SelectSingleNode("PlayerConfig").SelectSingleNode("DressData");
         xmlNode.Attributes[0].Value = "";
 
-        float rate = Random.Range(0f, 1f);
 
-        if (rate < 0.33f)
+        xmlNode.Attributes[0].Value = ManaPlayer.CloseUnitDic[Random.Range(2, (int) Mathf.Lerp(2, 30, newLevel/300f)+1)].ArmatureName;
+        xmlNode.Attributes[1].Value = ManaPlayer.CloseUnitDic[Random.Range(201, (int) Mathf.Lerp(201, 217, newLevel/300f)+1)].ArmatureName;
+        xmlNode.Attributes[2].Value = ManaPlayer.CloseUnitDic[Random.Range(401, (int) Mathf.Lerp(401, 415, newLevel/300f)+1)].ArmatureName;
+        xmlNode.Attributes[3].Value = ManaPlayer.CloseUnitDic[Random.Range(601, (int) Mathf.Lerp(601, 612, newLevel/300f)+1)].ArmatureName;
+        xmlNode.Attributes[4].Value = ManaPlayer.CloseUnitDic[Random.Range(801, (int) Mathf.Lerp(801, 817, newLevel/300f)+1)].ArmatureName;
+        xmlNode.Attributes[7].Value = ManaPlayer.CloseUnitDic[Random.Range(1001, (int) Mathf.Lerp(1001, 1003, newLevel/300f)+1)].ArmatureName;
+
+        float eyeMouseRate = Random.Range(0f, 1f);
+
+        if (eyeMouseRate <= 0.33f)
         {
-            xmlNode.Attributes[0].Value = "脑壳1";
-            xmlNode.Attributes[1].Value = "裙子1";
-            xmlNode.Attributes[2].Value = "鞋子1";
-            xmlNode.Attributes[3].Value = "头饰品1";
-            xmlNode.Attributes[4].Value = "上衣1";
             xmlNode.Attributes[5].Value = "眼睛1";
             xmlNode.Attributes[6].Value = "嘴巴1";
-            xmlNode.Attributes[7].Value = "Empty";
         }
-        else if (rate < 0.66f)
+        else if (eyeMouseRate <= 0.66f)
         {
-            xmlNode.Attributes[0].Value = "脑壳2";
-            xmlNode.Attributes[1].Value = "裙子2";
-            xmlNode.Attributes[2].Value = "鞋子2";
-            xmlNode.Attributes[3].Value = "头饰品2";
-            xmlNode.Attributes[4].Value = "上衣2";
             xmlNode.Attributes[5].Value = "眼睛2";
             xmlNode.Attributes[6].Value = "嘴巴2";
-            xmlNode.Attributes[7].Value = "Empty";
         }
         else
         {
-            xmlNode.Attributes[0].Value = "脑壳3";
-            xmlNode.Attributes[1].Value = "裙子3";
-            xmlNode.Attributes[2].Value = "鞋子3";
-            xmlNode.Attributes[3].Value = "头饰品3";
-            xmlNode.Attributes[4].Value = "上衣3";
             xmlNode.Attributes[5].Value = "眼睛3";
             xmlNode.Attributes[6].Value = "嘴巴3";
-            xmlNode.Attributes[7].Value = "Empty";
         }
 
         return doc.OuterXml;