Merge branch 'china/dev' of http://60.1.1.230/gaoxin/JL_Client into china/dev
commit
cdc17b555e
|
@ -36099,7 +36099,7 @@ RectTransform:
|
|||
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: 0, y: -63.1}
|
||||
m_AnchoredPosition: {x: 0, y: -59}
|
||||
m_SizeDelta: {x: 160, y: 30}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &4482967724487338822
|
||||
|
@ -36123,7 +36123,7 @@ MonoBehaviour:
|
|||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0, g: 0.9333334, b: 0.003921569, a: 1}
|
||||
m_Color: {r: 0.97654855, g: 0.990566, b: 0.97660744, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
|
@ -36131,9 +36131,9 @@ MonoBehaviour:
|
|||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_FontData:
|
||||
m_Font: {fileID: 12800000, guid: 6fa15837529b0e640af6620b07d3207d, type: 3}
|
||||
m_FontSize: 20
|
||||
m_FontStyle: 1
|
||||
m_Font: {fileID: 12800000, guid: 4b73e9e4512d17e4daeea351e090d33c, type: 3}
|
||||
m_FontSize: 25
|
||||
m_FontStyle: 0
|
||||
m_BestFit: 0
|
||||
m_MinSize: 2
|
||||
m_MaxSize: 40
|
||||
|
@ -36143,7 +36143,7 @@ MonoBehaviour:
|
|||
m_HorizontalOverflow: 1
|
||||
m_VerticalOverflow: 1
|
||||
m_LineSpacing: 1
|
||||
m_Text: 20
|
||||
m_Text: 99
|
||||
--- !u!1 &5196531749690728303
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -36954,7 +36954,7 @@ RectTransform:
|
|||
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: 0, y: -63.1}
|
||||
m_AnchoredPosition: {x: 0, y: -59}
|
||||
m_SizeDelta: {x: 160, y: 30}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &2004088883459887790
|
||||
|
@ -36978,7 +36978,7 @@ MonoBehaviour:
|
|||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0, g: 0.9333334, b: 0.003921569, a: 1}
|
||||
m_Color: {r: 0.96724814, g: 0.9811321, b: 0.9673065, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
|
@ -36986,19 +36986,19 @@ MonoBehaviour:
|
|||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_FontData:
|
||||
m_Font: {fileID: 12800000, guid: 6fa15837529b0e640af6620b07d3207d, type: 3}
|
||||
m_FontSize: 20
|
||||
m_FontStyle: 1
|
||||
m_Font: {fileID: 12800000, guid: 4b73e9e4512d17e4daeea351e090d33c, type: 3}
|
||||
m_FontSize: 25
|
||||
m_FontStyle: 0
|
||||
m_BestFit: 0
|
||||
m_MinSize: 2
|
||||
m_MaxSize: 40
|
||||
m_MinSize: 0
|
||||
m_MaxSize: 60
|
||||
m_Alignment: 4
|
||||
m_AlignByGeometry: 0
|
||||
m_RichText: 1
|
||||
m_HorizontalOverflow: 1
|
||||
m_VerticalOverflow: 1
|
||||
m_LineSpacing: 1
|
||||
m_Text: 20
|
||||
m_Text: 60
|
||||
--- !u!1 &6352690128292113717
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -67067,7 +67067,7 @@ RectTransform:
|
|||
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: 0, y: -63.1}
|
||||
m_AnchoredPosition: {x: 0, y: -59}
|
||||
m_SizeDelta: {x: 160, y: 30}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &6218138651294486052
|
||||
|
@ -67091,7 +67091,7 @@ MonoBehaviour:
|
|||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0, g: 0.9333334, b: 0.003921569, a: 1}
|
||||
m_Color: {r: 0.9858491, g: 1, b: 0.9859085, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
|
@ -67099,9 +67099,9 @@ MonoBehaviour:
|
|||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_FontData:
|
||||
m_Font: {fileID: 12800000, guid: 6fa15837529b0e640af6620b07d3207d, type: 3}
|
||||
m_FontSize: 20
|
||||
m_FontStyle: 1
|
||||
m_Font: {fileID: 12800000, guid: 4b73e9e4512d17e4daeea351e090d33c, type: 3}
|
||||
m_FontSize: 25
|
||||
m_FontStyle: 0
|
||||
m_BestFit: 0
|
||||
m_MinSize: 2
|
||||
m_MaxSize: 40
|
||||
|
@ -67111,7 +67111,7 @@ MonoBehaviour:
|
|||
m_HorizontalOverflow: 1
|
||||
m_VerticalOverflow: 1
|
||||
m_LineSpacing: 1
|
||||
m_Text: 20
|
||||
m_Text: 99
|
||||
--- !u!1 &8199617342560139037
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -67883,7 +67883,7 @@ RectTransform:
|
|||
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: 0, y: -63.1}
|
||||
m_AnchoredPosition: {x: 0, y: -59}
|
||||
m_SizeDelta: {x: 160, y: 30}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &1633887730655791215
|
||||
|
@ -67907,7 +67907,7 @@ MonoBehaviour:
|
|||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0, g: 0.9333334, b: 0.003921569, a: 1}
|
||||
m_Color: {r: 0.9487807, g: 0.9716981, b: 0.948877, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
|
@ -67915,11 +67915,11 @@ MonoBehaviour:
|
|||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_FontData:
|
||||
m_Font: {fileID: 12800000, guid: 6fa15837529b0e640af6620b07d3207d, type: 3}
|
||||
m_FontSize: 20
|
||||
m_FontStyle: 1
|
||||
m_Font: {fileID: 12800000, guid: 4b73e9e4512d17e4daeea351e090d33c, type: 3}
|
||||
m_FontSize: 25
|
||||
m_FontStyle: 0
|
||||
m_BestFit: 0
|
||||
m_MinSize: 2
|
||||
m_MinSize: 0
|
||||
m_MaxSize: 40
|
||||
m_Alignment: 4
|
||||
m_AlignByGeometry: 0
|
||||
|
@ -67927,7 +67927,7 @@ MonoBehaviour:
|
|||
m_HorizontalOverflow: 1
|
||||
m_VerticalOverflow: 1
|
||||
m_LineSpacing: 1
|
||||
m_Text: 20
|
||||
m_Text: 99
|
||||
--- !u!1 &8988042177267225789
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
|
@ -652,7 +652,7 @@ RectTransform:
|
|||
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: 0, y: -60.4}
|
||||
m_AnchoredPosition: {x: 0, y: -58}
|
||||
m_SizeDelta: {x: 160, y: 30}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &5929159001005513366
|
||||
|
@ -676,7 +676,7 @@ MonoBehaviour:
|
|||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0, g: 0.9333334, b: 0.003921569, a: 1}
|
||||
m_Color: {r: 0.9765041, g: 0.9811321, b: 0.9765236, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
|
@ -684,9 +684,9 @@ MonoBehaviour:
|
|||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||
m_FontData:
|
||||
m_Font: {fileID: 12800000, guid: 6fa15837529b0e640af6620b07d3207d, type: 3}
|
||||
m_FontSize: 20
|
||||
m_FontStyle: 1
|
||||
m_Font: {fileID: 12800000, guid: 4b73e9e4512d17e4daeea351e090d33c, type: 3}
|
||||
m_FontSize: 25
|
||||
m_FontStyle: 0
|
||||
m_BestFit: 0
|
||||
m_MinSize: 2
|
||||
m_MaxSize: 40
|
||||
|
@ -696,7 +696,7 @@ MonoBehaviour:
|
|||
m_HorizontalOverflow: 1
|
||||
m_VerticalOverflow: 1
|
||||
m_LineSpacing: 1
|
||||
m_Text: 20
|
||||
m_Text: 99
|
||||
--- !u!1 &4482154189229213345
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -15501,6 +15501,7 @@ GameObject:
|
|||
- component: {fileID: 1237362095978058062}
|
||||
- component: {fileID: 6362846184292683999}
|
||||
- component: {fileID: 693504749957046385}
|
||||
- component: {fileID: 2058181766165023756}
|
||||
m_Layer: 5
|
||||
m_Name: btn
|
||||
m_TagString: Untagged
|
||||
|
@ -15608,6 +15609,25 @@ MonoBehaviour:
|
|||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
|
||||
Culture=neutral, PublicKeyToken=null
|
||||
--- !u!95 &2058181766165023756
|
||||
Animator:
|
||||
serializedVersion: 3
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6646320100333446170}
|
||||
m_Enabled: 1
|
||||
m_Avatar: {fileID: 0}
|
||||
m_Controller: {fileID: 9100000, guid: 6ffe000b5a58aac48a9d130543849d76, type: 2}
|
||||
m_CullingMode: 0
|
||||
m_UpdateMode: 0
|
||||
m_ApplyRootMotion: 0
|
||||
m_LinearVelocityBlending: 0
|
||||
m_WarningMessage:
|
||||
m_HasTransformHierarchy: 1
|
||||
m_AllowConstantClipSamplingOptimization: 1
|
||||
m_KeepAnimatorControllerStateOnDisable: 0
|
||||
--- !u!1 &6705744100673175851
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -20497,6 +20517,7 @@ GameObject:
|
|||
- component: {fileID: 4046556994563454095}
|
||||
- component: {fileID: 6438122773535378384}
|
||||
- component: {fileID: 3615987540770995332}
|
||||
- component: {fileID: 4794719050937661115}
|
||||
m_Layer: 5
|
||||
m_Name: BackMask
|
||||
m_TagString: Untagged
|
||||
|
@ -20560,6 +20581,48 @@ MonoBehaviour:
|
|||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
--- !u!114 &4794719050937661115
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7823522297384688204}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 1392445389, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Navigation:
|
||||
m_Mode: 3
|
||||
m_SelectOnUp: {fileID: 0}
|
||||
m_SelectOnDown: {fileID: 0}
|
||||
m_SelectOnLeft: {fileID: 0}
|
||||
m_SelectOnRight: {fileID: 0}
|
||||
m_Transition: 1
|
||||
m_Colors:
|
||||
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_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
|
||||
m_ColorMultiplier: 1
|
||||
m_FadeDuration: 0.1
|
||||
m_SpriteState:
|
||||
m_HighlightedSprite: {fileID: 0}
|
||||
m_PressedSprite: {fileID: 0}
|
||||
m_DisabledSprite: {fileID: 0}
|
||||
m_AnimationTriggers:
|
||||
m_NormalTrigger: Normal
|
||||
m_HighlightedTrigger: Highlighted
|
||||
m_PressedTrigger: Pressed
|
||||
m_DisabledTrigger: Disabled
|
||||
m_Interactable: 1
|
||||
m_TargetGraphic: {fileID: 3615987540770995332}
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
|
||||
Culture=neutral, PublicKeyToken=null
|
||||
--- !u!1 &7958738485617101460
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
|
@ -36,8 +36,8 @@ RectTransform:
|
|||
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: -0.00000095367, y: -390.6}
|
||||
m_SizeDelta: {x: 847.3, y: 205}
|
||||
m_AnchoredPosition: {x: -0.00000095367, y: -377}
|
||||
m_SizeDelta: {x: 847.3, y: 177.8}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &7368018991282595720
|
||||
CanvasRenderer:
|
||||
|
@ -125,8 +125,8 @@ RectTransform:
|
|||
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: 1.885, y: -44.3}
|
||||
m_SizeDelta: {x: 1080, y: 872}
|
||||
m_AnchoredPosition: {x: 1.885, y: -59.422}
|
||||
m_SizeDelta: {x: 1080, y: 902.24}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &1351930385094129617
|
||||
CanvasRenderer:
|
||||
|
@ -757,7 +757,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0.000030517578}
|
||||
m_AnchoredPosition: {x: 0, y: -0.000015258789}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0, y: 1}
|
||||
--- !u!114 &5343069358979546458
|
||||
|
@ -1110,7 +1110,7 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.3511042}
|
||||
m_AnchorMax: {x: 0.5, y: 0.3511042}
|
||||
m_AnchoredPosition: {x: 1.9999084, y: -345}
|
||||
m_AnchoredPosition: {x: 1.9999084, y: -357}
|
||||
m_SizeDelta: {x: 1079, y: 21}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &4386427765453369220
|
||||
|
|
|
@ -23,7 +23,7 @@ function this.Initialize()
|
|||
this.playerSkillList[value.Id]=0
|
||||
end
|
||||
end
|
||||
|
||||
--=========================主角技能
|
||||
function this.GetSkillInfo()
|
||||
return this.playerSkillList
|
||||
end
|
||||
|
@ -71,6 +71,10 @@ function this.CheckPlayerSkillRed(redType)
|
|||
local currData=ConfigManager.TryGetConfigDataByDoubleKey(ConfigName.PlayerSkill,"SkillID",id,"Level",lv)
|
||||
local nextData=ConfigManager.TryGetConfigDataByDoubleKey(ConfigName.PlayerSkill,"SkillID",id,"Level",lv+1)
|
||||
if nextData then
|
||||
local config=this.GetCurConfigData()
|
||||
if config and nextData.Level>config.PlayerSkillLvMax then
|
||||
return false
|
||||
end
|
||||
local isShow=true
|
||||
for i = 1, #currData.LvupCost do
|
||||
if BagManager.GetItemCountById(currData.LvupCost[i][1])<currData.LvupCost[i][2] then
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
local PracticeSkillInfoPanel = quick_class("PracticeSkillInfoPanel", BasePanel)
|
||||
local SkillBaseConfig=ConfigManager.GetConfig(ConfigName.PlayerSkillBasicTable)
|
||||
--按钮状态
|
||||
local btnState=0
|
||||
local costConfig
|
||||
|
@ -10,6 +11,7 @@ function PracticeSkillInfoPanel:InitComponent()
|
|||
self.titleTxt=Util.GetGameObject(self.gameObject, "bg/title"):GetComponent("Text")
|
||||
self.skillIcon=Util.GetGameObject(self.gameObject, "bg/skill/icon"):GetComponent("Image")
|
||||
self.skillLv=Util.GetGameObject(self.gameObject, "bg/skill/Text"):GetComponent("Text")
|
||||
self.skillLvBg=Util.GetGameObject(self.gameObject, "bg/skill/Image")
|
||||
self.lockObj=Util.GetGameObject(self.gameObject, "bg/skill/mask")
|
||||
self.hintInfo=Util.GetGameObject(self.gameObject, "bg/hintTxt"):GetComponent("Text")
|
||||
self.currInfo=Util.GetGameObject(self.gameObject, "bg/currInfo"):GetComponent("Text")
|
||||
|
@ -20,6 +22,7 @@ function PracticeSkillInfoPanel:InitComponent()
|
|||
self.btn_close=Util.GetGameObject(self.gameObject, "bg/btnBack")
|
||||
self.btn_info=Util.GetGameObject(self.gameObject, "bg/btn/Text"):GetComponent("Text")
|
||||
self.redPoint=Util.GetGameObject(self.gameObject, "bg/btn/Image")
|
||||
self.btn_close2=Util.GetGameObject(self.gameObject, "BackMask")
|
||||
end
|
||||
|
||||
function PracticeSkillInfoPanel:BindEvent()
|
||||
|
@ -46,6 +49,10 @@ function PracticeSkillInfoPanel:BindEvent()
|
|||
PlaySoundWithoutClick(SoundConfig.Sound_UICancel)
|
||||
self:ClosePanel()
|
||||
end)
|
||||
Util.AddClick(self.btn_close2, function()
|
||||
PlaySoundWithoutClick(SoundConfig.Sound_UICancel)
|
||||
self:ClosePanel()
|
||||
end)
|
||||
end
|
||||
|
||||
local currLv=0
|
||||
|
@ -71,14 +78,16 @@ function PracticeSkillInfoPanel:RefreshShow(id,lv)
|
|||
nextData=ConfigManager.TryGetConfigDataByDoubleKey(ConfigName.PlayerSkill,"SkillID",id,"Level",currLv+1)
|
||||
self.currInfo.text="本级效果:"..currData.Desc
|
||||
self.skillIcon.sprite=self.spLoader:LoadSprite(GetResourcePath(currData.Icon))
|
||||
self.titleTxt.text=currData.Name
|
||||
self.titleTxt.text=SkillBaseConfig[id].Name
|
||||
self.skillLv.text=currLv
|
||||
self.skillLv.gameObject:SetActive(true)
|
||||
self.redPoint:SetActive(false)
|
||||
--没有下一等级
|
||||
if not nextData then
|
||||
self.nextInfo.gameObject:SetActive(false)
|
||||
self.costImg.gameObject:SetActive(false)
|
||||
self.hintInfo.gameObject:SetActive(false)
|
||||
self.lockObj.gameObject:SetActive(false)
|
||||
self.btn_info.text="已达上限"
|
||||
Util.SetGray(self.btn_up,true)
|
||||
btnState=1 --已达上限
|
||||
|
@ -86,20 +95,26 @@ function PracticeSkillInfoPanel:RefreshShow(id,lv)
|
|||
self.nextInfo.gameObject:SetActive(true)
|
||||
self.nextInfo.text="下级效果:"..nextData.Desc
|
||||
--如果等级为0 表示未解锁
|
||||
if lv==0 then
|
||||
--PracticeManager.PracticeLevel
|
||||
if lv==0 then
|
||||
self.btn_info.text="未解锁"
|
||||
self.hintInfo.gameObject:SetActive(true)
|
||||
self.costImg.gameObject:SetActive(false)
|
||||
self.skillLv.gameObject:SetActive(false)
|
||||
self.skillLvBg.gameObject:SetActive(false)
|
||||
self.lockObj.gameObject:SetActive(true)
|
||||
self.hintInfo.text="修行到达"..PracticeManager.GetRankNameByLv(nextData.XiuxianId).."后自动解锁"
|
||||
Util.SetGray(self.btn_up,true)
|
||||
btnState=2 --未解锁技能
|
||||
else
|
||||
if nextData.XiuxianId>PracticeManager.PracticeLevel then
|
||||
self.lockObj.gameObject:SetActive(false)
|
||||
local config=PracticeManager.GetCurConfigData()
|
||||
if nextData.Level>config.PlayerSkillLvMax then
|
||||
self.btn_info.text="升 级"
|
||||
self.hintInfo.gameObject:SetActive(true)
|
||||
self.costImg.gameObject:SetActive(false)
|
||||
Util.SetGray(self.btn_up,true)
|
||||
self.hintInfo.text="修行到达"..PracticeManager.GetRankNameByLv(nextData.XiuxianId).."后方可升级"
|
||||
self.hintInfo.text="修行到达"..PracticeManager.GetRankNameByLv(config.RealmId+1).."后方可升级"
|
||||
btnState=2
|
||||
else
|
||||
self.btn_info.text="升 级"
|
||||
|
|
|
@ -25,6 +25,9 @@ function this.SetSelectIndex(shopType,storeId,b)
|
|||
end
|
||||
|
||||
function this.Initialize()
|
||||
-- 是否已经刷新红点标志位
|
||||
this.RecoverCountRedFlag = {}
|
||||
|
||||
if not this._CountDownTimer then
|
||||
this._CountDownTimer = Timer.New(this.TimeUpdate, 1, -1, true)
|
||||
this._CountDownTimer:Start()
|
||||
|
@ -118,7 +121,7 @@ function this.UpdateShopData(msg)
|
|||
local shopInfo = this.GetShopInfo(newdata.id)
|
||||
this.CheckShopRedpot(shopInfo.StoreType)
|
||||
|
||||
--Log(string.format("服务器推送商店刷新,商店id = %d", newdata.id))
|
||||
-- LogYellow(string.format("服务器推送商店刷新,商店id = %s, 商店类型 = %s", newdata.id, shopInfo.StoreType))
|
||||
end
|
||||
-- 刷新物品排序
|
||||
this.SortItemList()
|
||||
|
@ -678,9 +681,25 @@ function this.CheckShopRefreshTime()
|
|||
this._IsRefresh = 0
|
||||
this._RefreshShopList = {}
|
||||
for _, v in ipairs(this.allShopData) do
|
||||
local leftTime = this.CountShopRefreshLeftTime(v.id)
|
||||
local shopInfo = this.GetShopInfo(v.id)
|
||||
local shopType = shopInfo.StoreType
|
||||
|
||||
-- 判断是否是自动恢复次数的商店,到达最大次数刷新红点显示
|
||||
local IsAutoRecoverCount, Count = this.IsAutoRecoverCount(shopType)
|
||||
if IsAutoRecoverCount then
|
||||
local MaxCount = shopInfo.IfManualRefresh[1]
|
||||
if Count >= MaxCount then
|
||||
if not this.RecoverCountRedFlag[shopType] then
|
||||
this.RecoverCountRedFlag[shopType] = true
|
||||
this.CheckShopRedpot(shopType)
|
||||
end
|
||||
else
|
||||
this.RecoverCountRedFlag[shopType] = false
|
||||
end
|
||||
end
|
||||
|
||||
-- 判断是否是自动刷新的商店
|
||||
local leftTime = this.CountShopRefreshLeftTime(v.id)
|
||||
this._RefreshShopList[shopType] = leftTime
|
||||
-- 判断是否需要刷新商店
|
||||
if leftTime == 0 then
|
||||
|
@ -994,7 +1013,7 @@ end
|
|||
--- 商店的查看时间
|
||||
local _ShopCheckTime = {}
|
||||
--- 商店刷新按钮的点击状态
|
||||
local _RefreshBtnIsClick = {}
|
||||
-- local _RefreshBtnIsClick = {}
|
||||
|
||||
-- 检测红点数据,shopType 为空时检测所有商店
|
||||
function this.ShopCheckRPIsShow(shopType)
|
||||
|
@ -1024,9 +1043,9 @@ end
|
|||
-- 检测商店刷新次数是否存在
|
||||
function this.ShopRefreshRPIsShow(shopType)
|
||||
-- 判断今天商店的刷新按钮是否被点击过
|
||||
if _RefreshBtnIsClick[shopType] then
|
||||
return false
|
||||
end
|
||||
-- if _RefreshBtnIsClick[shopType] then
|
||||
-- return false
|
||||
-- end
|
||||
-- 没有商店数据
|
||||
local shopData = this.GetShopDataByType(shopType)
|
||||
if not shopData then
|
||||
|
@ -1106,7 +1125,7 @@ function this.LoadRedpotDataFromLocal()
|
|||
-- 检测所有商店
|
||||
for _, type in pairs(SHOP_TYPE) do
|
||||
_ShopCheckTime[type] = PlayerPrefs.GetInt(PlayerManager.uid.."_ShopRedPot_"..type)
|
||||
_RefreshBtnIsClick[type] = PlayerPrefs.GetInt(PlayerManager.uid.."_ShopBtnStatus_"..type) == 1
|
||||
-- _RefreshBtnIsClick[type] = PlayerPrefs.GetInt(PlayerManager.uid.."_ShopBtnStatus_"..type) == 1
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -1124,8 +1143,8 @@ end
|
|||
|
||||
-- 设置商店刷新按钮是否被点击过
|
||||
function this.SetShopRefreshBtnClickStatus(shopType, status)
|
||||
PlayerPrefs.SetInt(PlayerManager.uid.."_ShopBtnStatus_"..shopType, status and 1 or 0)
|
||||
_RefreshBtnIsClick[shopType] = status
|
||||
-- PlayerPrefs.SetInt(PlayerManager.uid.."_ShopBtnStatus_"..shopType, status and 1 or 0)
|
||||
-- _RefreshBtnIsClick[shopType] = status
|
||||
|
||||
this.CheckShopRedpot(shopType)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue