【日常副本优化】每个日常副本标题下方增加副本描述文字
parent
18c6ad6555
commit
b6c2b22a3d
|
|
@ -33,9 +33,9 @@ RectTransform:
|
|||
m_Father: {fileID: 790145084226941223}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 32, y: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: -19.5}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 1, y: 0}
|
||||
--- !u!222 &8158311052849806152
|
||||
|
|
@ -25616,9 +25616,9 @@ RectTransform:
|
|||
m_Father: {fileID: 790145084226941223}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 304, y: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 2, y: -19.5}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 1, y: 0}
|
||||
--- !u!222 &6324171435991968763
|
||||
|
|
@ -25792,7 +25792,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 32, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 1, y: 0}
|
||||
--- !u!222 &8450810094386143091
|
||||
|
|
@ -26342,7 +26342,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 304, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 1, y: 0}
|
||||
--- !u!222 &2303662562103537494
|
||||
|
|
@ -36405,7 +36405,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 304, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 1, y: 0}
|
||||
--- !u!222 &7178296975279120347
|
||||
|
|
@ -46960,7 +46960,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 16, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &4573354056659548234
|
||||
|
|
@ -47049,7 +47049,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 304, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 1, y: 0}
|
||||
--- !u!222 &6945309195711746729
|
||||
|
|
@ -53724,7 +53724,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 32, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 1, y: 0}
|
||||
--- !u!222 &1936741229240484589
|
||||
|
|
|
|||
|
|
@ -1,5 +1,84 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &39637761430653143
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1365847374173356250}
|
||||
- component: {fileID: 2736126529659177549}
|
||||
- component: {fileID: 3866665509800523700}
|
||||
m_Layer: 5
|
||||
m_Name: Text
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &1365847374173356250
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 39637761430653143}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 3753356304809304800}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 257.08, y: 651.43}
|
||||
m_SizeDelta: {x: 514.16, y: 47.18}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &2736126529659177549
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 39637761430653143}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &3866665509800523700
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 39637761430653143}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 0.9960785, b: 0.93725497, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_FontData:
|
||||
m_Font: {fileID: 12800000, guid: 4b73e9e4512d17e4daeea351e090d33c, type: 3}
|
||||
m_FontSize: 34
|
||||
m_FontStyle: 0
|
||||
m_BestFit: 0
|
||||
m_MinSize: 3
|
||||
m_MaxSize: 40
|
||||
m_Alignment: 4
|
||||
m_AlignByGeometry: 0
|
||||
m_RichText: 1
|
||||
m_HorizontalOverflow: 1
|
||||
m_VerticalOverflow: 1
|
||||
m_LineSpacing: 1
|
||||
m_Text: "\u656C\u8BF7\u671F\u5F85"
|
||||
--- !u!1 &575870042541593201
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
@ -685,7 +764,7 @@ RectTransform:
|
|||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 1080, y: 1920}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &3397189518254114580
|
||||
CanvasRenderer:
|
||||
|
|
@ -888,6 +967,7 @@ RectTransform:
|
|||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 6616730211952462317}
|
||||
- {fileID: 1365847374173356250}
|
||||
- {fileID: 6948521794554378020}
|
||||
- {fileID: 6551732854407264896}
|
||||
m_Father: {fileID: 3233073780574710381}
|
||||
|
|
@ -1432,7 +1512,7 @@ RectTransform:
|
|||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 3753356304809304800}
|
||||
m_RootOrder: 1
|
||||
m_RootOrder: 2
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
|
|
@ -1967,7 +2047,7 @@ MonoBehaviour:
|
|||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_Sprite: {fileID: 21300000, guid: 594075f04ec3b44418efd141275a73ff, type: 3}
|
||||
m_Sprite: {fileID: 21300000, guid: 3454d596be1597d4d9b44a07b92b845f, type: 3}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
|
|
@ -2313,7 +2393,7 @@ RectTransform:
|
|||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 3753356304809304800}
|
||||
m_RootOrder: 2
|
||||
m_RootOrder: 3
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
|
|
|
|||
|
|
@ -30,8 +30,8 @@ local type = {
|
|||
livePos = Vector2(77, -218),
|
||||
liveSize = Vector2(1024, 1145),
|
||||
tipBg = "r_Dungeon_shijiandian",
|
||||
resetTime = string.format("<color=#7884B9>%s</color>",specialConfig[60].Value),
|
||||
tip = string.format("<color=#7884B9>%s</color>",specialConfig[61].Value)
|
||||
resetTime = string.format("<color=#7EB2B6>%s</color>",specialConfig[60].Value),
|
||||
tip = string.format("<color=#7EB2B6>%s</color>",specialConfig[61].Value)
|
||||
},
|
||||
[3] = {
|
||||
id = FUNCTION_OPEN_TYPE.EXPEDITION, --大闹天宫
|
||||
|
|
@ -41,8 +41,8 @@ local type = {
|
|||
livePos = Vector2(192, 0),
|
||||
liveSize = Vector2(1024, 1145),
|
||||
tipBg = "r_Dungeon_juqingdian",
|
||||
resetTime = string.format("<color=#7884B9>%s</color>",specialConfig[62].Value),
|
||||
tip = string.format("<color=#7884B9>%s</color>",specialConfig[63].Value)
|
||||
resetTime = string.format("<color=#BA9AC2>%s</color>",specialConfig[62].Value),
|
||||
tip = string.format("<color=#BA9AC2>%s</color>",specialConfig[63].Value)
|
||||
},
|
||||
[4] = {
|
||||
id = FUNCTION_OPEN_TYPE.CARDELAY, --车迟斗法
|
||||
|
|
@ -52,8 +52,8 @@ local type = {
|
|||
livePos = Vector2(334, 32),
|
||||
liveSize = Vector2(1024, 1145),
|
||||
tipBg = "r_Dungeon_wujingdian",
|
||||
resetTime = string.format("<color=#7884B9>%s</color>",specialConfig[64].Value),
|
||||
tip = string.format("<color=#7884B9>%s</color>",specialConfig[65].Value)
|
||||
resetTime = string.format("<color=#DB9A9A>%s</color>",specialConfig[64].Value),
|
||||
tip = string.format("<color=#DB9A9A>%s</color>",specialConfig[65].Value)
|
||||
},
|
||||
default = {id = -1,bg = "r_Dungeon_rendi_01"}
|
||||
},
|
||||
|
|
@ -71,8 +71,8 @@ local type = {
|
|||
livePos = Vector2(274.5, -408.1),
|
||||
liveSize = Vector2(1612, 1802),
|
||||
tipBg = "r_Dungeon_juqingdian",
|
||||
resetTime = string.format("<color=#7884B9>%s</color>",specialConfig[66].Value),
|
||||
tip = string.format("<color=#7884B9>%s</color>",specialConfig[67].Value)
|
||||
resetTime = string.format("<color=#BA9AC2>%s</color>",specialConfig[66].Value),
|
||||
tip = string.format("<color=#BA9AC2>%s</color>",specialConfig[67].Value)
|
||||
},
|
||||
default = {id = -1,bg = "r_Dungeon_rendi_01"}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ local this = DailyCarbonPanel
|
|||
local dailyChallengeConfig=ConfigManager.GetConfig(ConfigName.DailyChallengeConfig)
|
||||
local mainLevelConfig = ConfigManager.GetConfig(ConfigName.MainLevelConfig)
|
||||
local itemConfig=ConfigManager.GetConfig(ConfigName.ItemConfig)
|
||||
local specialConfig=ConfigManager.GetConfig(ConfigName.SpecialConfig)
|
||||
local curData={}
|
||||
|
||||
local orginLayer=0
|
||||
|
|
@ -13,11 +14,11 @@ local carbonIndex=0--副本索引
|
|||
|
||||
--顶部背景图
|
||||
local titleBg={
|
||||
[1]="r_richang_banner_5",
|
||||
[2]="r_richang_banner_4",
|
||||
[3]="r_richang_banner_3",
|
||||
[4]="r_richang_banner_2",
|
||||
[5]="r_richang_banner_1",
|
||||
[1]={bg="r_richang_banner_5",titleTip = specialConfig[45].Value,pos = Vector3.New(257.08,651.24,0)},
|
||||
[2]={bg="r_richang_banner_4",titleTip = specialConfig[44].Value,pos = Vector3.New(257.08,651.24,0)},
|
||||
[3]={bg="r_richang_banner_3",titleTip = specialConfig[43].Value,pos = Vector3.New(257.08,658.37,0)},
|
||||
[4]={bg="r_richang_banner_2",titleTip = specialConfig[42].Value,pos = Vector3.New(257.08,651.24,0)},
|
||||
[5]={bg="r_richang_banner_1",titleTip = specialConfig[41].Value,pos = Vector3.New(257.08,658.37,0)},
|
||||
}
|
||||
--难度图片
|
||||
local qualityBg={
|
||||
|
|
@ -53,6 +54,7 @@ local _TabFontColor = { default = Color.New(130 / 255, 128 / 255, 120 / 255, 1),
|
|||
function DailyCarbonPanel:InitComponent()
|
||||
this.panel=Util.GetGameObject(this.gameObject,"Panel")
|
||||
this.titleBg=Util.GetGameObject(this.panel,"Bg/TitleBg"):GetComponent("Image")
|
||||
this.titleTip=Util.GetGameObject(this.panel,"Bg/Text"):GetComponent("Text")
|
||||
this.timeTip=Util.GetGameObject(this.panel,"TimeTip"):GetComponent("Text")
|
||||
this.backBtn=Util.GetGameObject(this.panel,"BackBtn")
|
||||
this.helpBtn= Util.GetGameObject(this.panel, "HelpBtn")
|
||||
|
|
@ -137,7 +139,9 @@ function this.RefreshShow(i)
|
|||
|
||||
curData=ConfigManager.GetAllConfigsDataByKey(ConfigName.DailyChallengeConfig,"Type",i)
|
||||
|
||||
this.titleBg.sprite=Util.LoadSprite(titleBg[i])
|
||||
this.titleBg.sprite=Util.LoadSprite(titleBg[i].bg)
|
||||
this.titleTip.text=titleBg[i].titleTip
|
||||
this.titleTip.gameObject:GetComponent("RectTransform").localPosition =titleBg[i].pos
|
||||
this.SetTimeTip()
|
||||
this.SetScroll(i)
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue