parent
6a100b3199
commit
a2ed23dd24
|
@ -109,8 +109,8 @@ RectTransform:
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
m_AnchoredPosition: {x: -9.5, y: -5.1000004}
|
m_AnchoredPosition: {x: 0, y: -5.1000004}
|
||||||
m_SizeDelta: {x: 883.1, y: 30}
|
m_SizeDelta: {x: 720, y: 30}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!222 &222588509206233048
|
--- !u!222 &222588509206233048
|
||||||
CanvasRenderer:
|
CanvasRenderer:
|
||||||
|
@ -147,13 +147,13 @@ MonoBehaviour:
|
||||||
m_BestFit: 0
|
m_BestFit: 0
|
||||||
m_MinSize: 2
|
m_MinSize: 2
|
||||||
m_MaxSize: 40
|
m_MaxSize: 40
|
||||||
m_Alignment: 1
|
m_Alignment: 4
|
||||||
m_AlignByGeometry: 0
|
m_AlignByGeometry: 0
|
||||||
m_RichText: 1
|
m_RichText: 1
|
||||||
m_HorizontalOverflow: 0
|
m_HorizontalOverflow: 1
|
||||||
m_VerticalOverflow: 1
|
m_VerticalOverflow: 1
|
||||||
m_LineSpacing: 1
|
m_LineSpacing: 1
|
||||||
m_Text:
|
m_Text: "\u6B63\u5728\u66F4\u65B0\u6E38\u620F\u8D44\u6E90... 43%"
|
||||||
LanguageIndex: 10922
|
LanguageIndex: 10922
|
||||||
--- !u!1 &1532315163269532
|
--- !u!1 &1532315163269532
|
||||||
GameObject:
|
GameObject:
|
||||||
|
|
|
@ -180,7 +180,6 @@ ConfigName = {
|
||||||
SpiritAnimalSummon = "SpiritAnimalSummon",
|
SpiritAnimalSummon = "SpiritAnimalSummon",
|
||||||
NewHeroConfig = "NewHeroConfig",
|
NewHeroConfig = "NewHeroConfig",
|
||||||
PlayerHeadIcon = "PlayerHeadIcon",
|
PlayerHeadIcon = "PlayerHeadIcon",
|
||||||
Tips = "TipsConfig",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
require "Framework/GameDataBase"
|
require "Framework/GameDataBase"
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
LoadingPanel = Inherit(BasePanel)
|
LoadingPanel = Inherit(BasePanel)
|
||||||
local this = LoadingPanel
|
local this = LoadingPanel
|
||||||
local sprites = {"loding1"}
|
local sprites = {"loding1"}
|
||||||
local tipsConfig = ConfigManager.GetConfig(ConfigName.Tips)
|
|
||||||
--初始化组件(用于子类重写)
|
--初始化组件(用于子类重写)
|
||||||
function LoadingPanel:InitComponent()
|
function LoadingPanel:InitComponent()
|
||||||
Log("LoadingPanel:InitComponent")
|
Log("LoadingPanel:InitComponent")
|
||||||
|
@ -19,9 +18,6 @@ function LoadingPanel:OnOpen()
|
||||||
math.randomseed(os.time())
|
math.randomseed(os.time())
|
||||||
index = math.random(1, #sprites)
|
index = math.random(1, #sprites)
|
||||||
this.bg.sprite = Util.LoadSprite(sprites[index])
|
this.bg.sprite = Util.LoadSprite(sprites[index])
|
||||||
math.randomseed(os.time())
|
|
||||||
index = math.random(1, 20)
|
|
||||||
this.Tip.text = tipsConfig[index].Tips
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local callList = {}
|
local callList = {}
|
||||||
|
@ -73,6 +69,7 @@ function LoadingPanel.Start()
|
||||||
this.Slider.maxValue = #callList - 1
|
this.Slider.maxValue = #callList - 1
|
||||||
this.Slider.value = curIndex
|
this.Slider.value = curIndex
|
||||||
--"你知道嘛:充值会让你变得更强!" --Language[11346]
|
--"你知道嘛:充值会让你变得更强!" --Language[11346]
|
||||||
|
this.Tip.text = ""
|
||||||
LoadingPanel.OnStep()
|
LoadingPanel.OnStep()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue