You've already forked Commercialization.topon
升级sdk至 2.1.1
This commit is contained in:
@@ -126,6 +126,8 @@ namespace AnyThink.Scripts.IntegrationManager.Editor
|
||||
warningIcon.LoadImage(warningIconData);
|
||||
|
||||
loadPluginData();
|
||||
//热更新
|
||||
ATIntegrationHotFix.Instance.loadHotFixData();
|
||||
}
|
||||
|
||||
//这个方法在插件启动时会调用,然后脚本重新加载时也会重新调用,所以加载数据放在Awake中
|
||||
@@ -359,27 +361,30 @@ namespace AnyThink.Scripts.IntegrationManager.Editor
|
||||
|
||||
private void DrawAndroidXUI()
|
||||
{
|
||||
if (!ATConfig.isSelectedChina()) {
|
||||
return;
|
||||
}
|
||||
|
||||
bool isChina = ATConfig.isSelectedChina();
|
||||
// if (!ATConfig.isSelectedChina()) {
|
||||
// return;
|
||||
// }
|
||||
EditorGUILayout.LabelField("AndroidX (Only for Android)", titleLabelStyle);
|
||||
GUILayout.Space(4);
|
||||
using (new EditorGUILayout.HorizontalScope("box"))
|
||||
{
|
||||
GUILayout.Space(5);
|
||||
|
||||
bool enableAndroidX = ATIntegrationManager.Instance.enableAndroidX(pluginData);
|
||||
string[] options = new string[] { "Disable", "Enable" };
|
||||
int androidXSetting = ATIntegrationManager.Instance.getAndroidXSetting(pluginData);
|
||||
string[] options = new string[] { "Default", "Enable", "Disable" };
|
||||
if (!isChina) {
|
||||
options = new string[] { "Default", "Enable" };
|
||||
}
|
||||
// 创建Dropdown组件
|
||||
int lastDropdownIndex = enableAndroidX ? 1 : 0;
|
||||
int lastDropdownIndex = androidXSetting;
|
||||
int curDropdownIndex = EditorGUILayout.Popup("Enable AndroidX:", lastDropdownIndex, options);
|
||||
|
||||
//变化才设置
|
||||
if (curDropdownIndex != lastDropdownIndex)
|
||||
{
|
||||
ATLog.log("DrawAndroidXUI() >>> curDropdownIndex: " + curDropdownIndex + " lastDropdownIndex: " + lastDropdownIndex);
|
||||
ATIntegrationManager.Instance.saveAndroidXSetting(pluginData, curDropdownIndex == 1);
|
||||
ATIntegrationManager.Instance.saveAndroidXSetting(pluginData, curDropdownIndex);
|
||||
}
|
||||
GUILayout.Space(5);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user