mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
[opt] 优化下载更新界面的显示
This commit is contained in:
@@ -175,11 +175,11 @@ MonoBehaviour:
|
||||
m_SelectOnRight: {fileID: 0}
|
||||
m_Transition: 1
|
||||
m_Colors:
|
||||
m_NormalColor: {r: 0.9450981, g: 0.6392157, b: 0.25490198, a: 1}
|
||||
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
|
||||
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
|
||||
m_DisabledColor: {r: 0.94509804, g: 0.6392157, b: 0.25490198, a: 1}
|
||||
m_ColorMultiplier: 1
|
||||
m_FadeDuration: 0.1
|
||||
m_SpriteState:
|
||||
@@ -193,12 +193,12 @@ MonoBehaviour:
|
||||
m_PressedTrigger: Pressed
|
||||
m_SelectedTrigger: Selected
|
||||
m_DisabledTrigger: Disabled
|
||||
m_Interactable: 1
|
||||
m_Interactable: 0
|
||||
m_TargetGraphic: {fileID: 4296679187938450242}
|
||||
m_HandleRect: {fileID: 3254196395727856927}
|
||||
m_Direction: 0
|
||||
m_Value: 0
|
||||
m_Size: 1
|
||||
m_Size: 0
|
||||
m_NumberOfSteps: 0
|
||||
m_OnValueChanged:
|
||||
m_PersistentCalls:
|
||||
|
@@ -5,11 +5,11 @@ using Version = TEngine.Version;
|
||||
|
||||
namespace GameMain
|
||||
{
|
||||
[Window(UILayer.UI, fromResources: true, location: "AssetLoad/UILoadUpdate",fullScreen:true)]
|
||||
[Window(UILayer.UI, fromResources: true, location: "AssetLoad/UILoadUpdate", fullScreen: true)]
|
||||
public class UILoadUpdate : UIWindow
|
||||
{
|
||||
private Scrollbar m_scrollbarProgress;
|
||||
|
||||
|
||||
#region 脚本工具生成的代码
|
||||
private Image m_imgBackGround;
|
||||
private Text m_textDesc;
|
||||
@@ -41,12 +41,16 @@ namespace GameMain
|
||||
protected override void RegisterEvent()
|
||||
{
|
||||
base.RegisterEvent();
|
||||
AddUIEvent(RuntimeId.ToRuntimeId("RefreshVersion"),RefreshVersion);
|
||||
AddUIEvent(RuntimeId.ToRuntimeId("RefreshVersion"), RefreshVersion);
|
||||
}
|
||||
|
||||
protected override void OnRefresh()
|
||||
{
|
||||
base.OnRefresh();
|
||||
if (base.userDatas.Length > 0 && base.userDatas[0] != null)
|
||||
{
|
||||
m_textDesc.text = base.userDatas[0].ToString(); //获取更新内容,由ProcedureDownloadFile -> OnDownloadProgressCallback 传递
|
||||
}
|
||||
}
|
||||
|
||||
#region 事件
|
||||
|
Reference in New Issue
Block a user