فهرست منبع

剧情对话文字显示优化

guodong 3 سال پیش
والد
کامیت
f8f3008cf6

+ 1 - 1
FGUIProject/assets/Main/componentsDialog/CompDialogHead.xml

@@ -4,7 +4,7 @@
     <image id="n13_nmnb" name="bg" src="nmnb2r" fileName="imagesDialog/dhjm_jqdh_2.png" xy="0,0"/>
     <image id="n18_f4xv" name="n18" src="nmnb2q" fileName="imagesDialog/dhjm_jqdh_1.png" xy="-33,-128"/>
     <text id="n15_nmnb" name="txtName" xy="53,-83" size="302,76" font="ui://eg2y0ldpj48o97" fontSize="58" color="#fef5e3" autoSize="none" autoClearText="true" text="名字五个字"/>
-    <text id="n16_nmnb" name="txtContent" xy="267,57" size="679,157" fontSize="38" color="#97825c" vAlign="middle" ubb="true" autoSize="none" autoClearText="true" text="hi"/>
+    <text id="n16_nmnb" name="txtContent" xy="267,75" size="679,51" fontSize="38" color="#97825c" leading="6" ubb="true" autoSize="height" autoClearText="true" text="hi"/>
     <component id="n17_nmnb" name="iconNext" src="nmnb33" fileName="componentsDialog/CompArrow.xml" xy="887,301"/>
     <component id="n19_f4xv" name="comphead" src="ndrd7j" fileName="componentsDialog/Component1.xml" xy="-48,2"/>
   </displayList>

+ 1 - 1
FGUIProject/assets/Main/componentsDialog/CompDialogName.xml

@@ -4,7 +4,7 @@
     <image id="n9_nmnb" name="bg" src="nmnb2r" fileName="imagesDialog/dhjm_jqdh_2.png" xy="0,0"/>
     <image id="n13_f4xv" name="n13" src="nmnb2q" fileName="imagesDialog/dhjm_jqdh_1.png" xy="-33,-128"/>
     <text id="n10_nmnb" name="txtName" xy="53,-83" size="302,76" font="ui://eg2y0ldpj48o97" fontSize="58" color="#fef5e3" autoSize="none" autoClearText="true" text="名字五个字"/>
-    <text id="n11_nmnb" name="txtContent" xy="49,57" size="909,157" fontSize="38" color="#97825c" vAlign="middle" ubb="true" autoSize="none" autoClearText="true" text="hi"/>
+    <text id="n11_nmnb" name="txtContent" xy="49,75" size="909,51" fontSize="38" color="#97825c" leading="6" ubb="true" autoSize="height" autoClearText="true" text="hi"/>
     <component id="n12_nmnb" name="iconNext" src="nmnb33" fileName="componentsDialog/CompArrow.xml" xy="887,301"/>
   </displayList>
 </component>

+ 1 - 1
FGUIProject/assets/Main/componentsDialog/CompDialogText.xml

@@ -2,7 +2,7 @@
 <component size="1008,458">
   <displayList>
     <image id="n9_f4xv" name="n9" src="nmnb2s" fileName="imagesDialog/dhjm_jqdh_3.png" xy="0,0"/>
-    <text id="n7_nmnb" name="txtContent" xy="49,57" size="909,157" fontSize="38" color="#e5d2ad" vAlign="middle" ubb="true" autoSize="none" autoClearText="true" text="你好"/>
+    <text id="n7_nmnb" name="txtContent" xy="49,75" size="909,51" fontSize="38" color="#e5d2ad" leading="6" ubb="true" autoSize="height" autoClearText="true" text="你好"/>
     <component id="n8_nmnb" name="iconNext" src="nmnb33" fileName="componentsDialog/CompArrow.xml" xy="887,301"/>
   </displayList>
 </component>

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Net/Proxy/LoginProxy.cs

@@ -17,7 +17,7 @@ namespace GFGGame
             ViewManager.Show<ModalStatusView>("连接中...");
             Get(API_HI, (LoginResult result) => {
                 ViewManager.Hide<ModalStatusView>();
-                if(result.version == GameConst.SERVER_VERSION)
+                if(result.version == GameConst.SERVER_VERSION || Application.isEditor)
                 {
                     callback(result);
                 }

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryDialogView.cs

@@ -405,6 +405,7 @@ namespace GFGGame
         {
             _isShowLetters = true;
             _arrow.target.visible = false;
+            _wordTextField.verticalAlign = VertAlignType.Top;
             _wordTextField.text = "";
             ArrayList letters = StoryUtil.GetLettersList(_currentWords);
             Timers.inst.Add(GameConst.LETTERS_INTERVAL_MAX/_speedAutoPlay, 0, UpdateLetters, letters);

BIN
GameClient/Assets/ResIn/UI/Main/Main_fui.bytes