From 912ad6b04511d0b5e0f71ddd8cb896c7e8839274 Mon Sep 17 00:00:00 2001 From: "ALIENJACK\\alien" Date: Thu, 21 Nov 2024 17:03:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=83=8C=E6=99=AF=E9=A2=9C?= =?UTF-8?q?=E8=89=B2=E6=9C=AA=E8=AE=BE=E7=BD=AE=E6=97=B6,=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E9=BB=98=E8=AE=A4=E9=A2=9C=E8=89=B2=E7=9A=84=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E9=94=99=E8=AF=AF=20rename=20BgSetting=5FColor.cs->UI?= =?UTF-8?q?=5FBgSettingItem=5FColor.cs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Assets/Script/Manager/AppSettings/BgColorSettings.cs | 2 +- .../{BgSetting_Color.cs => UI_BgSettingItem_Color.cs} | 5 ++++- ...gSetting_Color.cs.meta => UI_BgSettingItem_Color.cs.meta} | 0 3 files changed, 5 insertions(+), 2 deletions(-) rename AxibugEmuOnline.Client/Assets/Script/UI/BgSettingsUI/{BgSetting_Color.cs => UI_BgSettingItem_Color.cs} (93%) rename AxibugEmuOnline.Client/Assets/Script/UI/BgSettingsUI/{BgSetting_Color.cs.meta => UI_BgSettingItem_Color.cs.meta} (100%) diff --git a/AxibugEmuOnline.Client/Assets/Script/Manager/AppSettings/BgColorSettings.cs b/AxibugEmuOnline.Client/Assets/Script/Manager/AppSettings/BgColorSettings.cs index 4055080..49b8a3f 100644 --- a/AxibugEmuOnline.Client/Assets/Script/Manager/AppSettings/BgColorSettings.cs +++ b/AxibugEmuOnline.Client/Assets/Script/Manager/AppSettings/BgColorSettings.cs @@ -19,7 +19,7 @@ namespace AxibugEmuOnline.Client var color1 = PlayerPrefs.GetString($"{nameof(BgColorSettings)}.{nameof(CurrentColor)}.{nameof(CurrentColor.color1)}", null); var color2 = PlayerPrefs.GetString($"{nameof(BgColorSettings)}.{nameof(CurrentColor)}.{nameof(CurrentColor.color2)}", null); var name = PlayerPrefs.GetString($"{nameof(BgColorSettings)}.{nameof(CurrentColor)}.{nameof(CurrentColor.Name)}", null); - if (color1 == null || color2 == null || name == null) + if (string.IsNullOrWhiteSpace(color1) || string.IsNullOrWhiteSpace(color2) || string.IsNullOrWhiteSpace(name)) return DEFAULT; else return new XMBColor(name, color1, color2); diff --git a/AxibugEmuOnline.Client/Assets/Script/UI/BgSettingsUI/BgSetting_Color.cs b/AxibugEmuOnline.Client/Assets/Script/UI/BgSettingsUI/UI_BgSettingItem_Color.cs similarity index 93% rename from AxibugEmuOnline.Client/Assets/Script/UI/BgSettingsUI/BgSetting_Color.cs rename to AxibugEmuOnline.Client/Assets/Script/UI/BgSettingsUI/UI_BgSettingItem_Color.cs index 2943e65..52c8bbd 100644 --- a/AxibugEmuOnline.Client/Assets/Script/UI/BgSettingsUI/BgSetting_Color.cs +++ b/AxibugEmuOnline.Client/Assets/Script/UI/BgSettingsUI/UI_BgSettingItem_Color.cs @@ -8,7 +8,10 @@ using UnityEngine; namespace AxibugEmuOnline.Client { - public class BgSetting_Color : MenuItem, IVirtualItem + /// + /// ±³¾°ÑÕÉ«ÉèÖÃUI + /// + public class UI_BgSettingItem_Color : MenuItem, IVirtualItem { public int Index { get; set; } public BgColorSettings Datacontext { get; private set; } diff --git a/AxibugEmuOnline.Client/Assets/Script/UI/BgSettingsUI/BgSetting_Color.cs.meta b/AxibugEmuOnline.Client/Assets/Script/UI/BgSettingsUI/UI_BgSettingItem_Color.cs.meta similarity index 100% rename from AxibugEmuOnline.Client/Assets/Script/UI/BgSettingsUI/BgSetting_Color.cs.meta rename to AxibugEmuOnline.Client/Assets/Script/UI/BgSettingsUI/UI_BgSettingItem_Color.cs.meta