From 22b43e97a4eeec0c54961f1c5b5a754b2eafe64d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=80=9D=E6=B5=B7?= <10001@qq.com> Date: Fri, 21 Feb 2025 14:42:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=BC=E6=A8=BA=E5=AF=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Runtime/Constant/FrameworkPublishSettings.cs | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/Runtime/Constant/FrameworkPublishSettings.cs b/Runtime/Constant/FrameworkPublishSettings.cs index c90f561..21da74f 100644 --- a/Runtime/Constant/FrameworkPublishSettings.cs +++ b/Runtime/Constant/FrameworkPublishSettings.cs @@ -22,14 +22,28 @@ namespace AlicizaX.Runtime public RemoteURLConfigSetting GetConfig() { - RemoteURLConfigSetting configSetting = Configs.Find(s => s.Version_Type == AppStageType); - return configSetting; + return Configs.Find(s => s.Version_Type == AppStageType); } - System.Collections.IEnumerable GetAllType + + [ValueDropdown("GetResMode")] [BoxGroup("发布设置")] [LabelText("资源模式")] + public int ResMode; + + [BoxGroup("发布设置")] [LabelText("默认语言")] public Language Language = Runtime.Language.ChineseSimplified; + + private System.Collections.IEnumerable GetAllType { get { return Configs.Select(a => a.Version_Type).ToList(); } } + + + private static System.Collections.IEnumerable GetResMode = new ValueDropdownList() + { + { "EditorSimulateMode", 0 }, + { "OfflinePlayMode", 1 }, + { "HostPlayMode", 2 }, + { "WebPlayMode", 3 }, + }; }