From 3d65c94eef52e8b97b55cc174c70c452522a71df Mon Sep 17 00:00:00 2001 From: yurui <952870061@qq.com> Date: Thu, 15 Aug 2024 13:31:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=A4=9A=E4=B8=AAUI=E5=BC=95?= =?UTF-8?q?=E7=94=A8=E5=90=8C=E4=B8=80=E4=B8=AA=E6=A8=A1=E7=B3=8A=E8=83=8C?= =?UTF-8?q?=E6=99=AF=E5=AF=BC=E8=87=B4=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UI/Fonts/SourceHanSansCN-Medium SDF.asset | 4 ++-- .../UI_TeamAndSkillSelectController.cs | 2 +- .../Draw/UI_CardPoolDetailsPanelController.cs | 2 +- .../UI/Draw/UI_ExchangePanelController.cs | 2 +- .../Gameplay/UI/Guide/UI_GuideTipController.cs | 2 +- .../LevelFight/FightReady/UIPauseController.cs | 2 +- .../UI/LevelFight/UIDefeatGameController.cs | 2 +- .../UI/LevelFight/UIPassGameController.cs | 4 ++-- .../UI/LevelFight/UI_GetItemSettleController.cs | 2 +- .../Gameplay/UI/Mail/UI_EmailController.cs | 4 ++-- .../Gameplay/UI/PVP/UI_PVPRankInfoController.cs | 2 +- .../UI/PVP/UI_PVPRankRewardController.cs | 2 +- .../Gameplay/UI/Shop/UI_PurchaseController.cs | 2 +- .../UI/ShowAllCharacter/UIAdvanceController.cs | 2 +- .../ShowAllCharacter/UIFavorableController.cs | 2 +- .../UI/ShowAllCharacter/UILevelUpController.cs | 2 +- .../UI/ShowAllCharacter/UIPosterController.cs | 2 +- .../UI/ShowAllCharacter/UIRankController.cs | 2 +- .../UISkill_LevelUpController.cs | 2 +- .../UI/SignUp/UI_DailyBonusController.cs | 4 ++-- .../Scripts/Gameplay/UI/SkinChangeController.cs | 2 +- .../UI/UICameraAndPosterChangeController.cs | 4 ++-- .../Gameplay/UI/UI_BackReturnController.cs | 2 +- .../Gameplay/UI/UI_BuyDiamondController.cs | 2 +- .../Gameplay/UI/UI_BuyEnergyController.cs | 2 +- .../Gameplay/UI/UI_ChoosePersonController.cs | 2 +- .../Gameplay/UI/UI_LevelDetailController.cs | 2 +- .../Scripts/Gameplay/UI/UI_LongTipController.cs | 2 +- .../UI/UI_NameConfirmWindowController.cs | 2 +- .../Scripts/Gameplay/UI/UI_NoticeController.cs | 2 +- .../Scripts/Gameplay/UI/UI_SettingController.cs | 4 ++-- .../Gameplay/UI/UI_WriteNameController.cs | 3 ++- .../UI_VehicleLevelUpController.cs | 2 +- .../Code/Scripts/Gameplay/Utils/CommonUtils.cs | 17 ++++++++++++++--- 34 files changed, 54 insertions(+), 42 deletions(-) diff --git a/ProjectNLD/Assets/Art/UI/Fonts/SourceHanSansCN-Medium SDF.asset b/ProjectNLD/Assets/Art/UI/Fonts/SourceHanSansCN-Medium SDF.asset index f0e49f49a97..5f4496a8ca1 100644 --- a/ProjectNLD/Assets/Art/UI/Fonts/SourceHanSansCN-Medium SDF.asset +++ b/ProjectNLD/Assets/Art/UI/Fonts/SourceHanSansCN-Medium SDF.asset @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:378da19e7c0295bd0debe2e4ce05d8f6e82c3eed41e1997892dfee63d6ccb72b -size 17423055 +oid sha256:1ce2998dcec688e6ea608164e4c1308c380c59572a3aef2ac21d94f4a347c86c +size 17423528 diff --git a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/CommandSkill/CommandAndTeamSelect/UI_TeamAndSkillSelectController.cs b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/CommandSkill/CommandAndTeamSelect/UI_TeamAndSkillSelectController.cs index b1e1203b402..f3f144fa31e 100644 --- a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/CommandSkill/CommandAndTeamSelect/UI_TeamAndSkillSelectController.cs +++ b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/CommandSkill/CommandAndTeamSelect/UI_TeamAndSkillSelectController.cs @@ -537,7 +537,7 @@ public class UI_TeamAndSkillSelectController : UIWindow curIndex = skillIndex; - rawImageGaussianBlurMask.texture = CommonUtils.screenTexture; + rawImageGaussianBlurMask.texture = CommonUtils.GetScreenTexture2D(); uint[] skillIds = team.GetPlayerSkillIDs(); curSelectSkillID = (int)skillIds[skillIndex]; diff --git a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/Draw/UI_CardPoolDetailsPanelController.cs b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/Draw/UI_CardPoolDetailsPanelController.cs index 4bea0be3e47..3bfccb40e21 100644 --- a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/Draw/UI_CardPoolDetailsPanelController.cs +++ b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/Draw/UI_CardPoolDetailsPanelController.cs @@ -117,7 +117,7 @@ public class UI_CardPoolDetailsPanelController : UIWindow textProbability = GetComponent("Image_Bg/Scroll View/Viewport/Content/Probability/Text_Info"); textRule = GetComponent("Image_Bg/Scroll View/Viewport/Content/Rule/Text_Info"); - rawImageGaussianBlurMask.texture = CommonUtils.screenTexture; + rawImageGaussianBlurMask.texture = CommonUtils.GetScreenTexture2D(); Transform tsCharacterRoot = FindObj("Image_Bg/Scroll View/Viewport/Content/Title/CharacterRoot").transform; for (int i = 0; i < tsCharacterRoot.childCount; ++i) diff --git a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/Draw/UI_ExchangePanelController.cs b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/Draw/UI_ExchangePanelController.cs index cdb48e3ad79..a5d72294007 100644 --- a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/Draw/UI_ExchangePanelController.cs +++ b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/Draw/UI_ExchangePanelController.cs @@ -159,7 +159,7 @@ public class UI_ExchangePanelController : UIWindow textPatioCount = GetComponent("Image_Bg/DebrailsInfo/TextDebrails"); recycleView = GetComponent("Image_Bg/ScrollView"); - rawImageGaussianBlurMask.texture = CommonUtils.screenTexture; + rawImageGaussianBlurMask.texture = CommonUtils.GetScreenTexture2D(); recycleView.Init(RefreshItem); diff --git a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/Guide/UI_GuideTipController.cs b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/Guide/UI_GuideTipController.cs index 7ad7f05fce7..1a180e2d0bc 100644 --- a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/Guide/UI_GuideTipController.cs +++ b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/Guide/UI_GuideTipController.cs @@ -136,7 +136,7 @@ public class UI_GuideTipController : UIWindow textNextPage = GetComponent("ImageBg/ButtonNextPage/Text"); textTip = GetComponent("ImageBg/ImageTip/TextTip"); - rawImageGaussianBlurMask.texture = CommonUtils.screenTexture; + rawImageGaussianBlurMask.texture = CommonUtils.GetScreenTexture2D(); bannerView.Init(OnChangeBanner); CommonUtils.BindButton(buttonPrePage, OnPrePage); diff --git a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/LevelFight/FightReady/UIPauseController.cs b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/LevelFight/FightReady/UIPauseController.cs index ef05ad6d643..13a54c7308a 100644 --- a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/LevelFight/FightReady/UIPauseController.cs +++ b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/LevelFight/FightReady/UIPauseController.cs @@ -59,7 +59,7 @@ public class UIPauseController : UIWindow rawImageGaussianBlurMask = GetComponent("GaussianBlurMask"); Go_Clock = FindObj("UI_Clock"); - rawImageGaussianBlurMask.texture = CommonUtils.screenTexture; + rawImageGaussianBlurMask.texture = CommonUtils.GetScreenTexture2D(); for (int i = 0; i < 3; i++) { diff --git a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/LevelFight/UIDefeatGameController.cs b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/LevelFight/UIDefeatGameController.cs index d9c3d1c3ee5..2866a4c4233 100644 --- a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/LevelFight/UIDefeatGameController.cs +++ b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/LevelFight/UIDefeatGameController.cs @@ -55,7 +55,7 @@ public class UIDefeatGameController : UIWindow{ UIDefeatGameBinder.GetComponents(this); rawImageGaussianBlurMask = GetComponent("GaussianBlurMask"); - rawImageGaussianBlurMask.texture = CommonUtils.screenTexture; + rawImageGaussianBlurMask.texture = CommonUtils.GetScreenTexture2D(); _txtTips = new() { diff --git a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/LevelFight/UIPassGameController.cs b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/LevelFight/UIPassGameController.cs index 18c7086522a..32a35637a42 100644 --- a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/LevelFight/UIPassGameController.cs +++ b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/LevelFight/UIPassGameController.cs @@ -117,9 +117,9 @@ public class UIPassGameController : UIWindow textDialogue = GetComponent("Image_WinBG/Image_PosterLu/Image_ActorLineBG/Text_Describe"); rawImageGaussianBlurMask = GetComponent("GaussianBlurMask"); - rawImageGaussianBlurMask.texture = CommonUtils.screenTexture; + rawImageGaussianBlurMask.texture = CommonUtils.GetScreenTexture2D(); - BindButton("Button_Close", _OnClickClose); + BindButton("Button_Close", _OnClickClose); _imgWinStar = new List(); _imageFailedStart = new List(); diff --git a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/LevelFight/UI_GetItemSettleController.cs b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/LevelFight/UI_GetItemSettleController.cs index 1846f330877..196d89c39b3 100644 --- a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/LevelFight/UI_GetItemSettleController.cs +++ b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/LevelFight/UI_GetItemSettleController.cs @@ -80,7 +80,7 @@ public class UI_GetItemSettleController : UIWindow UI_GetItemSettleBinder.GetComponents(this); rawImageGaussianBlurMask = GetComponent("GaussianBlurMask"); - rawImageGaussianBlurMask.texture = CommonUtils.screenTexture; + rawImageGaussianBlurMask.texture = CommonUtils.GetScreenTexture2D(); _goScrollViewContent = CommonUtils.GetGameObject(ScrollView_Reward.gameObject, "Viewport/Content"); _displayItemFirstList = new List(); diff --git a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/Mail/UI_EmailController.cs b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/Mail/UI_EmailController.cs index d0751d369b2..33161096a16 100644 --- a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/Mail/UI_EmailController.cs +++ b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/Mail/UI_EmailController.cs @@ -609,8 +609,8 @@ public class UI_EmailController : UIWindow mailContent = new MailContent(FindObj("Image_EmailBG/Right"), OnDelMail, OnGetMail); - rawImageGaussianBlurMask.texture = CommonUtils.screenTexture; - recycleView.Init(RefreshItem); + rawImageGaussianBlurMask.texture = CommonUtils.GetScreenTexture2D(); + recycleView.Init(RefreshItem); BindButton(Button_GetAll,OnGetAllMail); BindButton(Button_DeleteAll, OnDeleteAllMail); diff --git a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/PVP/UI_PVPRankInfoController.cs b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/PVP/UI_PVPRankInfoController.cs index ca93e7468a5..9ea5d9f0d23 100644 --- a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/PVP/UI_PVPRankInfoController.cs +++ b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/PVP/UI_PVPRankInfoController.cs @@ -86,7 +86,7 @@ public class UI_PVPRankInfoController : UIWindow rawImageGaussianBlurMask = GetComponent("GaussianBlurMask"); - rawImageGaussianBlurMask.texture = CommonUtils.screenTexture; + rawImageGaussianBlurMask.texture = CommonUtils.GetScreenTexture2D(); _scrollViewPage = GetComponent("Image_RankBG/LeftRank/ScrollViewPage"); _scrollViewList = GetComponent("Image_RankBG/RightRank/ScrollViewInfo"); diff --git a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/PVP/UI_PVPRankRewardController.cs b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/PVP/UI_PVPRankRewardController.cs index b6b17c40329..03ac616f068 100644 --- a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/PVP/UI_PVPRankRewardController.cs +++ b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/PVP/UI_PVPRankRewardController.cs @@ -74,7 +74,7 @@ public class UI_PVPRankRewardController : UIWindow rawImageGaussianBlurMask = GetComponent("GaussianBlurMask"); - rawImageGaussianBlurMask.texture = CommonUtils.screenTexture; + rawImageGaussianBlurMask.texture = CommonUtils.GetScreenTexture2D(); _pageList = new List(); for (TabType tab = 0; tab < TabType.Max; tab++) diff --git a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/Shop/UI_PurchaseController.cs b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/Shop/UI_PurchaseController.cs index ff171494aec..d0854e665e6 100644 --- a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/Shop/UI_PurchaseController.cs +++ b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/Shop/UI_PurchaseController.cs @@ -104,7 +104,7 @@ public class UI_PurchaseController : UIWindow genericItem = new GenericItem(FindObj("Image_BG/Image_ItemRect/GenericItem")); - rawImageGaussianBlurMask.texture = CommonUtils.screenTexture; + rawImageGaussianBlurMask.texture = CommonUtils.GetScreenTexture2D(); BindButton(Button_Close, OnCloseBtnClick); BindButton(Button_Min, OnMinBtnClick); diff --git a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/ShowAllCharacter/UIAdvanceController.cs b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/ShowAllCharacter/UIAdvanceController.cs index 7eb846f0f6c..84768e46b9f 100644 --- a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/ShowAllCharacter/UIAdvanceController.cs +++ b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/ShowAllCharacter/UIAdvanceController.cs @@ -206,7 +206,7 @@ public class UIAdvanceController : UIWindow rawImageGaussianBlurMask = GetComponent("GaussianBlurMask"); Transform tsMateralRoot = FindObj("Image_BG/UI_Materals").transform; - rawImageGaussianBlurMask.texture = CommonUtils.screenTexture; + rawImageGaussianBlurMask.texture = CommonUtils.GetScreenTexture2D(); for (int i = 0; i < tsMateralRoot.childCount; ++i) { diff --git a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/ShowAllCharacter/UIFavorableController.cs b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/ShowAllCharacter/UIFavorableController.cs index a45d24c42e7..c67c93788be 100644 --- a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/ShowAllCharacter/UIFavorableController.cs +++ b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/ShowAllCharacter/UIFavorableController.cs @@ -82,7 +82,7 @@ public class UIFavorableController : UIWindow UIFavorableBinder.GetComponents(this); rawImageGaussianBlurMask = GetComponent("GaussianBlurMask"); - rawImageGaussianBlurMask.texture = CommonUtils.screenTexture; + rawImageGaussianBlurMask.texture = CommonUtils.GetScreenTexture2D(); BindButton(Button_Back, OnButton_BackClick); BindButton(Button_Home, OnClickHome); diff --git a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/ShowAllCharacter/UILevelUpController.cs b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/ShowAllCharacter/UILevelUpController.cs index 0d8e84e0381..bfa233476ae 100644 --- a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/ShowAllCharacter/UILevelUpController.cs +++ b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/ShowAllCharacter/UILevelUpController.cs @@ -159,7 +159,7 @@ public class UILevelUpController : UIWindow rawImageGaussianBlurMask = GetComponent("GaussianBlurMask"); - rawImageGaussianBlurMask.texture = CommonUtils.screenTexture; + rawImageGaussianBlurMask.texture = CommonUtils.GetScreenTexture2D(); dialogue = new(FindObj("Image_ActorLineBG")); diff --git a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/ShowAllCharacter/UIPosterController.cs b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/ShowAllCharacter/UIPosterController.cs index 7eaf04d0fc1..bb73aa79950 100644 --- a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/ShowAllCharacter/UIPosterController.cs +++ b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/ShowAllCharacter/UIPosterController.cs @@ -82,7 +82,7 @@ public class UIPosterController : UIWindow rawImageGaussianBlurMask = GetComponent("GaussianBlurMask"); - rawImageGaussianBlurMask.texture = CommonUtils.screenTexture; + rawImageGaussianBlurMask.texture = CommonUtils.GetScreenTexture2D(); BindButton(Button_Back, OnButton_BackClick); BindButton(Button_Poster, OnButton_Poster); diff --git a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/ShowAllCharacter/UIRankController.cs b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/ShowAllCharacter/UIRankController.cs index f1f84d3a5e3..ffdf0b2d9a0 100644 --- a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/ShowAllCharacter/UIRankController.cs +++ b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/ShowAllCharacter/UIRankController.cs @@ -151,7 +151,7 @@ public class UIRankController : UIWindow Transform tsMateralRoot = FindObj("Image_BG/UI_Materals").transform; mLightRectObj = FindObj("Image_BG/LightRect/1"); - rawImageGaussianBlurMask.texture = CommonUtils.screenTexture; + rawImageGaussianBlurMask.texture = CommonUtils.GetScreenTexture2D(); for (int i = 0; i < tsMateralRoot.childCount; ++i) { diff --git a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/ShowAllCharacter/UISkill_LevelUpController.cs b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/ShowAllCharacter/UISkill_LevelUpController.cs index da69196d9a9..20ff14f9515 100644 --- a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/ShowAllCharacter/UISkill_LevelUpController.cs +++ b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/ShowAllCharacter/UISkill_LevelUpController.cs @@ -133,7 +133,7 @@ public class UISkill_LevelUpController : UIWindow rawImageGaussianBlurMask = GetComponent("GaussianBlurMask"); Transform tsMateralRoot = FindObj("Image_BG/UI_Materals").transform; - rawImageGaussianBlurMask.texture = CommonUtils.screenTexture; + rawImageGaussianBlurMask.texture = CommonUtils.GetScreenTexture2D(); for (int i = 0; i < tsMateralRoot.childCount; ++i) { diff --git a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/SignUp/UI_DailyBonusController.cs b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/SignUp/UI_DailyBonusController.cs index ffb32458235..11f375f46ff 100644 --- a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/SignUp/UI_DailyBonusController.cs +++ b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/SignUp/UI_DailyBonusController.cs @@ -154,8 +154,8 @@ public class UI_DailyBonusController : UIWindow rawImageGaussianBlurMask = GetComponent("GaussianBlurMask"); - rawImageGaussianBlurMask.texture = CommonUtils.screenTexture; - _recycleView = GetComponent("ImageBG/Reward/ScrollView"); + rawImageGaussianBlurMask.texture = CommonUtils.GetScreenTexture2D(); + _recycleView = GetComponent("ImageBG/Reward/ScrollView"); BindButton("ImageBG/Button_Close", _OnClickClose); } diff --git a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/SkinChangeController.cs b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/SkinChangeController.cs index 430411b37d9..c8248a9aa35 100644 --- a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/SkinChangeController.cs +++ b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/SkinChangeController.cs @@ -193,7 +193,7 @@ public class SkinChangeController : UIWindow UpperUI = FindObj("Image_BG/UpperUI"); rawImageGaussianBlurMask = GetComponent("GaussianBlurMask"); - rawImageGaussianBlurMask.texture = CommonUtils.screenTexture; + rawImageGaussianBlurMask.texture = CommonUtils.GetScreenTexture2D(); Image_Poster.GetComponent().sizeDelta = Vector2.zero; PinchZoom = GetComponent("Image_BG/Image_Poster"); diff --git a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/UICameraAndPosterChangeController.cs b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/UICameraAndPosterChangeController.cs index dfcbf7763cd..c26510869af 100644 --- a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/UICameraAndPosterChangeController.cs +++ b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/UICameraAndPosterChangeController.cs @@ -167,9 +167,9 @@ public class UICameraAndPosterChangeController : UIWindow _sceneObj = FindObj("ImageBG/SceneChange"); _posterObj = FindObj("ImageBG/PosterChange"); - rawImageGaussianBlurMask.texture = CommonUtils.screenTexture; + rawImageGaussianBlurMask.texture = CommonUtils.GetScreenTexture2D(); - SceneScrollView.SetScrollRect(GetComponent("ImageBG/SceneChange/SceneScrollView")); + SceneScrollView.SetScrollRect(GetComponent("ImageBG/SceneChange/SceneScrollView")); SceneScrollView.InitItemCellList(SceneScrollView.SceneItemCount()); _scrollPosterPool = GetComponent("ImageBG/PosterChange/ChangeHeadPic/PosterScrollView"); diff --git a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/UI_BackReturnController.cs b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/UI_BackReturnController.cs index 9d9d85cbcf7..084c749784d 100644 --- a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/UI_BackReturnController.cs +++ b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/UI_BackReturnController.cs @@ -44,7 +44,7 @@ public class UI_BackReturnController : UIWindow rawImageGaussianBlurMask.gameObject.IsScaleShow(false); await CommonUtils.CaptureScreenshot(); - rawImageGaussianBlurMask.texture = CommonUtils.screenTexture; + rawImageGaussianBlurMask.texture = CommonUtils.GetScreenTexture2D(); rawImageGaussianBlurMask.gameObject.IsScaleShow(true); } diff --git a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/UI_BuyDiamondController.cs b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/UI_BuyDiamondController.cs index 0886a7bde6b..f8820ccef15 100644 --- a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/UI_BuyDiamondController.cs +++ b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/UI_BuyDiamondController.cs @@ -78,7 +78,7 @@ public class UI_BuyDiamondController : UIWindow { UI_BuyDiamondBinder.GetComponents(this); rawImageGaussianBlurMask = GetComponent("GaussianBlurMask"); - rawImageGaussianBlurMask.texture = CommonUtils.screenTexture; + rawImageGaussianBlurMask.texture = CommonUtils.GetScreenTexture2D(); mCurrentScrollViewContentObj = FindObj("Image_BG/PhxhScrollView/Viewport/Content"); _mCurrentScrollView = GetComponent("Image_BG/PhxhScrollView"); UI_ShortTip = FindObj("Image_BG/UI_ShortTip"); diff --git a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/UI_BuyEnergyController.cs b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/UI_BuyEnergyController.cs index f5c50bab445..45b20554da2 100644 --- a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/UI_BuyEnergyController.cs +++ b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/UI_BuyEnergyController.cs @@ -237,7 +237,7 @@ public class UI_BuyEnergyController : UIWindow UI_BuyEnergyBinder.GetComponents(this); rawImageGaussianBlurMask = GetComponent("GaussianBlurMask"); - rawImageGaussianBlurMask.texture = CommonUtils.screenTexture; + rawImageGaussianBlurMask.texture = CommonUtils.GetScreenTexture2D(); BindButton(); BindInputFieldListener(); diff --git a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/UI_ChoosePersonController.cs b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/UI_ChoosePersonController.cs index 48d4bb28fbc..88bbbb62777 100644 --- a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/UI_ChoosePersonController.cs +++ b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/UI_ChoosePersonController.cs @@ -93,7 +93,7 @@ public class UI_ChoosePersonController : UIWindow goSelect1 = FindObj("Image_BG/ButtonModel1/ImageSelect"); goSelect2 = FindObj("Image_BG/ButtonModel2/ImageSelect"); - rawImageGaussianBlurMask.texture = CommonUtils.screenTexture; + rawImageGaussianBlurMask.texture = CommonUtils.GetScreenTexture2D(); selectModelId = 0; OnModel(0); diff --git a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/UI_LevelDetailController.cs b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/UI_LevelDetailController.cs index 786c532b61b..9bacb7c70c4 100644 --- a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/UI_LevelDetailController.cs +++ b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/UI_LevelDetailController.cs @@ -152,7 +152,7 @@ public class UI_LevelDetailController : UIWindow // _numItem = FindObj("Image_BG/RewardAndSweep/Text_Sweep/SweepNum/ItemNum"); _maskObj = FindObj("Image_BG/ImageMask"); - rawImageGaussianBlurMask.texture = CommonUtils.screenTexture; + rawImageGaussianBlurMask.texture = CommonUtils.GetScreenTexture2D(); //test _maskObj.gameObject.SetActive(true); diff --git a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/UI_LongTipController.cs b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/UI_LongTipController.cs index def7b322f99..d3366d0b55f 100644 --- a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/UI_LongTipController.cs +++ b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/UI_LongTipController.cs @@ -52,7 +52,7 @@ public class UI_LongTipController : UIWindow UI_LongTipBinder.GetComponents(this); rawImageGaussianBlurMask = GetComponent("GaussianBlurMask"); - rawImageGaussianBlurMask.texture = CommonUtils.screenTexture; + rawImageGaussianBlurMask.texture = CommonUtils.GetScreenTexture2D(); } //invoke when open window diff --git a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/UI_NameConfirmWindowController.cs b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/UI_NameConfirmWindowController.cs index 5d3d5e7bb20..116950a8b38 100644 --- a/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/UI_NameConfirmWindowController.cs +++ b/ProjectNLD/Assets/Code/Scripts/Gameplay/UI/UI_NameConfirmWindowController.cs @@ -79,7 +79,7 @@ public class UI_NameConfirmWindowController : UIWindow buttonClose = GetComponent