future 1 year ago
parent
commit
f01b8c0d83

+ 7 - 7
assets/resources/ui/home.prefab

@@ -3696,7 +3696,7 @@
     "_lpos": {
       "__type__": "cc.Vec3",
       "x": 540,
-      "y": -30,
+      "y": -20,
       "z": 0
     },
     "_lrot": {
@@ -3737,7 +3737,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 0,
-      "height": 63
+      "height": 75.6
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -3762,11 +3762,11 @@
     "__prefab": {
       "__id__": 156
     },
-    "_lineHeight": 50,
-    "_string": "<color=#00ff00></color><color=#1B3A84></color>",
+    "_lineHeight": 60,
+    "_string": "",
     "_horizontalAlign": 0,
-    "_verticalAlign": 0,
-    "_fontSize": 50,
+    "_verticalAlign": 1,
+    "_fontSize": 60,
     "_fontColor": {
       "__type__": "cc.Color",
       "r": 27,
@@ -3779,7 +3779,7 @@
     "_font": null,
     "_isSystemFontUsed": true,
     "_userDefinedFont": null,
-    "_cacheMode": 0,
+    "_cacheMode": 2,
     "_imageAtlas": null,
     "_handleTouchEvent": true,
     "_id": ""

+ 2 - 2
assets/resources/ui/setting.prefab

@@ -149,7 +149,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 1080,
-      "height": 1920
+      "height": 1920.0000000000002
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -3225,7 +3225,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 1080,
-      "height": 1920
+      "height": 1920.0000000000002
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",

+ 3 - 2
assets/script/ui/home/home_guangbo.ts

@@ -29,7 +29,8 @@ export class home_guangbo extends Component {
             this.cur_index = 0
         }
         let cur_content = this.data_list[this.cur_index].title
-        cur_content = '<b>' + cur_content + '</b>' // 加粗
+        // cur_content = '<b>' + cur_content + '</b>' // 加粗(<b><\b>)CHAR模式,无效
+        // console.log('cur_content=',cur_content)
         this.setLabContent(cur_content)
         let cur_content_width = this.lab_content.getComponent(UITransform).contentSize.width
         // console.log('cur_content_width=',cur_content_width)
@@ -47,7 +48,7 @@ export class home_guangbo extends Component {
         let cur_content_width = this.computeLabelTextWidth(cur_content,lab_component.fontSize,lab_component.lineHeight)
         // console.log('cur_content_width=',cur_content_width)
         let cur_content_height = this.lab_content.getComponent(UITransform).contentSize.height
-        this.lab_content.getComponent(UITransform).setContentSize(new Size(cur_content_width,cur_content_height))
+        this.lab_content.getComponent(UITransform).setContentSize(new Size(cur_content_width,cur_content_height))            
         this.lab_content.setPosition(this.screen_width/2+this.left_padding,this.lab_content.getPosition().y,0)
         this.runContent(cur_content_width)
     }