优化ui,谱面替换,以及科研模糊

This commit is contained in:
FloatGaming
2026-02-25 03:44:41 +08:00
parent 332307d18c
commit 0b75e93f71
114 changed files with 160279 additions and 290 deletions
@@ -109,14 +109,14 @@ class UI_Panel_Character : MonoBehaviour
{ Image_Character_Illustration.rectTransform.anchoredPosition = new Vector2(value, pos1.y); },
startValue: Image_Character_Illustration.rectTransform.anchoredPosition.x - 200,
pos1.x, anim_Time);
Image_Character_Illustration.SetNativeSize();
// Image_Character_Illustration.SetNativeSize(); // 注释掉以保持自适应而不改变大小
var pos = Image_Character_Illustration_BG.rectTransform.anchoredPosition;
Image_Character_Illustration_BG.sprite = data.ally_hero_HD_image;
DOTween.To(value =>
{ Image_Character_Illustration_BG.rectTransform.anchoredPosition = new Vector2(value, pos.y); },
startValue: Image_Character_Illustration_BG.rectTransform.anchoredPosition.x - 200,
pos.x, anim_Time);
Image_Character_Illustration_BG.SetNativeSize();
// Image_Character_Illustration_BG.SetNativeSize(); // 注释掉以保持自适应而不改变大小
Image_Character_Illustration_BG.transform.localScale = new(2.7f, 2.7f, 2.7f);
+1 -1
View File
@@ -705,7 +705,7 @@ public class UI_Panel_Main : Singleton_Mono<UI_Panel_Main>
c_Character_Illustration_Anim = StartCoroutine(C_Character_Illustration_Anim(canvasGroup, () =>
{
image_Character.sprite = sprite;
image_Character.SetNativeSize();
// image_Character.SetNativeSize(); // 注释掉 SetNativeSize 以防改变目标图片大小
}));
}