111
This commit is contained in:
@@ -30,7 +30,6 @@ namespace Stary.Evo.Editor
|
||||
[MenuItem("Evo/Art/Art资源打包工具", false, 1)]
|
||||
static void ShowWindows()
|
||||
{
|
||||
|
||||
window = (BuildArtAssetWindow)EditorWindow.GetWindow(typeof(BuildArtAssetWindow));
|
||||
window.Show();
|
||||
}
|
||||
@@ -96,12 +95,10 @@ namespace Stary.Evo.Editor
|
||||
|
||||
#region BuildAssetLogin
|
||||
|
||||
[ShowIf("@ buildAssetType== Stary.Evo.BuildOriginality.BuildAssetType.Login")]
|
||||
[BoxGroup("Login", showLabel: false)]
|
||||
[OnValueChanged("SetWebRequestInfo")]
|
||||
[ShowIf("IsLogin")] [BoxGroup("Login", showLabel: false)] [OnValueChanged("SetWebRequestInfo")]
|
||||
public string ip, userName, password;
|
||||
|
||||
[ShowIf("@ buildAssetType== Stary.Evo.BuildOriginality.BuildAssetType.Login")]
|
||||
[ShowIf("IsLogin")]
|
||||
[BoxGroup("Login", showLabel: false)]
|
||||
[Button("登录", ButtonSizes.Large)]
|
||||
[InfoBox("@ message", InfoMessageType.Info)]
|
||||
@@ -156,7 +153,7 @@ namespace Stary.Evo.Editor
|
||||
}
|
||||
|
||||
[BoxGroup("Build", showLabel: false)]
|
||||
[ShowIf("@ buildAssetType== Stary.Evo.BuildOriginality.BuildAssetType.Build")]
|
||||
[ShowIf("IsBuild")]
|
||||
[Title("包裹列表", titleAlignment: TitleAlignments.Centered)]
|
||||
[HorizontalGroup("Build/BuildPipeline"), HideLabel]
|
||||
[ValueDropdown("GetBuildPackageNames")]
|
||||
@@ -164,7 +161,7 @@ namespace Stary.Evo.Editor
|
||||
public string selectedPackageNames;
|
||||
|
||||
[BoxGroup("Build", showLabel: false)]
|
||||
[ShowIf("@ buildAssetType== Stary.Evo.BuildOriginality.BuildAssetType.Build")]
|
||||
[ShowIf("IsBuild")]
|
||||
[Title("当前打包平台", titleAlignment: TitleAlignments.Centered)]
|
||||
[ReadOnly]
|
||||
[HorizontalGroup("Build/BuildPipeline"), HideLabel]
|
||||
@@ -175,7 +172,7 @@ namespace Stary.Evo.Editor
|
||||
|
||||
[Title("版本号", titleAlignment: TitleAlignments.Centered)]
|
||||
[HorizontalGroup("Build/PackageVersion"), HideLabel]
|
||||
[ShowIf("@ buildAssetType== Stary.Evo.BuildOriginality.BuildAssetType.Build")]
|
||||
[ShowIf("IsBuild")]
|
||||
[OnValueChanged("OnPackageValueChanged")]
|
||||
public string _packageVersion;
|
||||
|
||||
@@ -253,13 +250,13 @@ namespace Stary.Evo.Editor
|
||||
#region Update
|
||||
|
||||
[BoxGroup("Build", showLabel: false)]
|
||||
[ShowIf("@ buildAssetType== Stary.Evo.BuildOriginality.BuildAssetType.Build")]
|
||||
[ShowIf("IsBuild")]
|
||||
[Title("打包本地资源", titleAlignment: TitleAlignments.Centered)]
|
||||
[HideLabel]
|
||||
public BuildAssetEntity onBuildPipelineEntity;
|
||||
|
||||
[BoxGroup("Build", showLabel: false)]
|
||||
[ShowIf("@ buildAssetType== Stary.Evo.BuildOriginality.BuildAssetType.Build")]
|
||||
[ShowIf("IsBuild")]
|
||||
[Title("上传资源", titleAlignment: TitleAlignments.Centered)]
|
||||
[HideLabel]
|
||||
public BuildAssetEntity onUpdateBuildPipelineEntity;
|
||||
@@ -428,9 +425,8 @@ namespace Stary.Evo.Editor
|
||||
EditorUtility.ClearProgressBar();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
} else if (resResultMessage.code == 200)
|
||||
}
|
||||
else if (resResultMessage.code == 200)
|
||||
|
||||
{
|
||||
EditorUtility.DisplayDialog("提示",
|
||||
@@ -518,5 +514,15 @@ namespace Stary.Evo.Editor
|
||||
onBuildPipelineEntity.SetButtonName($"打包资源包【版本:{_packageVersion}】");
|
||||
onUpdateBuildPipelineEntity.SetButtonName($"更新至服务器【版本:{_packageVersion}】");
|
||||
}
|
||||
|
||||
private bool IsLogin()
|
||||
{
|
||||
return buildAssetType == Stary.Evo.BuildOriginality.BuildAssetType.Login;
|
||||
}
|
||||
|
||||
private bool IsBuild()
|
||||
{
|
||||
return buildAssetType == Stary.Evo.BuildOriginality.BuildAssetType.Build;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user