Explorar o código

item显示界面样式修改

huangxiaoyue %!s(int64=2) %!d(string=hai) anos
pai
achega
cc198de2e2

+ 2 - 2
GameClient/Assets/Game/HotUpdate/Views/Poem/PoemGalleryRewardView.cs

@@ -76,9 +76,9 @@ namespace GFGGame
                 obj.data = new ItemView(obj as GComponent);
             }
             (obj.data as ItemView).SetData(reward);
-            (obj.data as ItemView).SetComItemScale = 0.72f;
+            //(obj.data as ItemView).SetComItemScale = 0.72f;
             // (obj.data as ItemView).SetTxtCountScale = 0.8f;
-            (obj.data as ItemView).SetTxtCountPos(185, 155);
+            //(obj.data as ItemView).SetTxtCountPos(185, 155);
         }
     }
 }

+ 2 - 2
GameClient/Assets/Game/HotUpdate/Views/Poem/PoemGalleryRuleView.cs

@@ -81,9 +81,9 @@ namespace GFGGame
                 obj.data = new ItemView(obj as GComponent);
             }
             (obj.data as ItemView).SetData(reward);
-            (obj.data as ItemView).SetComItemScale = 0.72f;
+            //(obj.data as ItemView).SetComItemScale = 0.72f;
             // (obj.data as ItemView).SetTxtCountScale = 0.8f;
-            (obj.data as ItemView).SetTxtCountPos(185, 155);
+            //(obj.data as ItemView).SetTxtCountPos(185, 155);
         }
     }
 }

BIN=BIN
GameClient/Assets/ResIn/UI/Poem/Poem_fui.bytes


+ 0 - 56
GameClient/Assets/ThirdParty/FairyGUI/Scripts/Core/DisplayObject.cs

@@ -1874,61 +1874,5 @@ namespace FairyGUI
             if (displayObject != null)
                 displayObject._flags |= DisplayObject.Flags.GameObjectDisposed;
         }
-
-        //public static string FontName;
-
-        //private void LoadLocalizationFont()
-        //{
-        //    switch (GameEntry.Localization.Language)
-        //    {
-        //        case GameFramework.Localization.Language.ChineseSimplified:
-        //        case GameFramework.Localization.Language.ChineseSimplified:
-        //            LoadFont2("FZZCH_GBK");
-        //            break;
-        //        case GameFramework.Localization.Language.ChineseSimplified:
-        //            LoadFont2("MyFont");
-        //            break;
-        //        default:
-        //            LoadFont2("IMPACT");
-        //            break;
-        //    }
-        //}
-
-        //private void LoadFont2(string fontName)
-        //{
-
-        //    BaseFont newFont = FontManager.GetFont(fontName);
-
-        //    if (newFont == null)
-        //    {
-        //        Debug.Log("字体:" + fontName + ",不存在Resources或Resources/Fonts文件夹下");
-        //        return;
-        //    }
-        //    FGuiForm.setMainFont(fontName);
-        //}
-
-        //public static void SetMainFont(string fontName)
-        //{
-        //    FontName = fontName;
-        //}
-
-        //private void SetFont()
-        //{
-        //    DisplayObjectInfo[] displayObjectInfos = GetComponentsInChildren<DisplayObjectInfo>(true);
-        //    foreach (var item in displayObjectInfos)
-        //    {
-        //        if (item.displayObject.GetType() == typeof(TextField))
-        //        {
-        //            TextField textField = item.displayObject as TextField;
-        //            textField.textFormat.font = FontName;
-        //            textField.ApplyFormat();
-        //        }
-        //        else if (item.displayObject.GetType() == typeof(InputTextField))
-        //        {
-        //            InputTextField textField = item.displayObject as InputTextField;
-        //            textField.textFormat.font = FontName;
-        //        }
-        //    }
-        //}
     }
 }