Merge branch 'master_develop' of http://60.1.1.230/gaoxin/JL_Client into master_develop
commit
ccbf29ecf2
|
@ -5081,9 +5081,9 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 316.40005, y: -73.150055}
|
||||
m_AnchoredPosition: {x: 0.000057485686, y: -73.150055}
|
||||
m_SizeDelta: {x: 0, y: 151}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
m_Pivot: {x: 0, y: 0.5}
|
||||
--- !u!114 &5729675956691850897
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -19668,9 +19668,9 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 316.40002, y: -73.150055}
|
||||
m_AnchoredPosition: {x: 0.000028742843, y: -73.150055}
|
||||
m_SizeDelta: {x: 0, y: 151}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
m_Pivot: {x: 0, y: 0.5}
|
||||
--- !u!114 &4796361513380277662
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
|
@ -43979,80 +43979,6 @@ MonoBehaviour:
|
|||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
--- !u!1 &6406938328886149404
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 3122847029739947333}
|
||||
- component: {fileID: 9172115513959909474}
|
||||
- component: {fileID: 6269553500272781496}
|
||||
m_Layer: 0
|
||||
m_Name: Image
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &3122847029739947333
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6406938328886149404}
|
||||
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: 2931217454655974565}
|
||||
m_RootOrder: 0
|
||||
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: 0}
|
||||
m_SizeDelta: {x: 100, y: 100}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &9172115513959909474
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6406938328886149404}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &6269553500272781496
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6406938328886149404}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0, g: 0, b: 0, a: 0.8}
|
||||
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_Sprite: {fileID: 0}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
--- !u!1 &6801484805305654314
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
|
@ -2185,7 +2185,7 @@ 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: 4b73e9e4512d17e4daeea351e090d33c, type: 3}
|
||||
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_FontSize: 35
|
||||
m_FontStyle: 0
|
||||
m_BestFit: 0
|
||||
|
|
|
@ -227,6 +227,7 @@ end
|
|||
--一种装备一种装备的循环检测 金币能合成的数量 与 背包装备能合成的数量 取最小值 然后扣除临时消耗道具
|
||||
--最后所有装备存在curPosEquips 与 之前背包 bagPosEquips 作比较 看合成了什么装备 删除了什么装备 和计算消耗材料
|
||||
function this.AutoCompound(_position)
|
||||
local goldIsEnough = true
|
||||
--表数据
|
||||
local curPosEquips = EquipTreasureManager.GetAllTabletTreasuresByRaceAndType(_position)--,curSelectEquip.equipType)
|
||||
--实际数据
|
||||
|
@ -304,6 +305,8 @@ function this.AutoCompound(_position)
|
|||
--LogGreen("合成curPosEquipsData[equipData.equipType][equipData.quantity]之后:"..curPosEquipsData[equipData.equipType][equipData.quantity])
|
||||
end
|
||||
end
|
||||
else
|
||||
goldIsEnough = false
|
||||
end
|
||||
end
|
||||
local origiData = EquipTreasureManager.GeEquipTreasureDatas(_position)
|
||||
|
@ -313,12 +316,16 @@ function this.AutoCompound(_position)
|
|||
--LogGreen("m:"..m.." origiData[i][n]:"..origiData[i][n])
|
||||
if m > origiData[i][n] then
|
||||
local config = ConfigManager.TryGetConfigDataByThreeKey(ConfigName.JewelConfig,"Location",i,"Level",n,"Race",_position)
|
||||
local num = m - origiData[i][n]
|
||||
--LogGreen("config.id:"..config.Id.." num:"..m - origiData[i][n])
|
||||
table.insert(endReward,{config.Id,m - origiData[i][n]})
|
||||
table.insert(endReward,{config.Id,num})
|
||||
end
|
||||
end
|
||||
end
|
||||
if LengthOfTable(endReward) < 1 then
|
||||
if not goldIsEnough and LengthOfTable(endReward) < 1 then
|
||||
PopupTipPanel.ShowTip("金币不足,无法合成")
|
||||
return
|
||||
elseif LengthOfTable(endReward) < 1 then
|
||||
PopupTipPanel.ShowTip(Language[12258])
|
||||
return
|
||||
end
|
||||
|
|
|
@ -44,7 +44,7 @@ function this.LoginRequest(openId, func)
|
|||
data.distinct_id = AppConst.isSDK and ThinkingAnalyticsManager.GetDistinctId() or ""
|
||||
data.openId = openId
|
||||
data.channel_s = AppConst.isSDKLogin and AppConst.SdkChannel .. "#" .. AppConst.SdkPackageName or "" --pt_pid.."#"..pt_gid
|
||||
data.platform_s = AppConst.isSDK and "ADR" or "PC"
|
||||
data.platform_s = AppConst.Platform --and "ADR" or "PC"
|
||||
|
||||
local msg = data:SerializeToString()
|
||||
Network:SendMessageWithCallBack(MessageTypeProto_pb.LOGIN_REQUEST, MessageTypeProto_pb.LOGIN_RESPONSE, msg, function(buffer)
|
||||
|
|
|
@ -201,6 +201,8 @@ end
|
|||
|
||||
function this.GetGrowthRedPointState()
|
||||
local redPoint = false
|
||||
local hasGift = OperatingManager.HasGoodsByShowType(4)
|
||||
if not hasGift then return false end
|
||||
local giftGoodsInfo = OperatingManager.IsGrowthGiftGoodsAvailable(GoodsTypeDef.GrowthReward)
|
||||
if giftGoodsInfo then return false end
|
||||
local openId = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.GrowthReward)
|
||||
|
|
|
@ -215,12 +215,15 @@ function OperatingPanel:RefreshTabStatus()
|
|||
--判断成长基金活动是否开启或结束(16是最后一档活动ActivityId)
|
||||
local t2 = false
|
||||
local GrowthRewardId = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.GrowthReward)
|
||||
local singleRewardData
|
||||
if GrowthRewardId then--是否开启
|
||||
t2 = true
|
||||
end
|
||||
if GrowthRewardId == 16 then--是否结束
|
||||
singleRewardData = ActivityGiftManager.GetActivityInfo(GrowthRewardId, 5324)
|
||||
local hasGift = OperatingManager.HasGoodsByShowType(4)
|
||||
if t2 and not hasGift then
|
||||
t2 = false
|
||||
end
|
||||
if t2 and GrowthRewardId == 16 then--是否结束
|
||||
local singleRewardData = ActivityGiftManager.GetActivityInfo(GrowthRewardId, 5324)
|
||||
if not singleRewardData then
|
||||
t2 = false
|
||||
else
|
||||
|
|
|
@ -94,6 +94,7 @@ function ShopBuyPopup:OnOpen(shopType, shopItemId)
|
|||
this.shopType = shopType
|
||||
this.shopItemId = shopItemId
|
||||
this.shopItemInfo = ShopManager.GetShopItemInfo(shopItemId)
|
||||
LogGreen(shopItemId..":shopItemId")
|
||||
this.shopItemData = ShopManager.GetShopItemData(shopType, shopItemId)
|
||||
|
||||
-- 商品基础信息显示
|
||||
|
@ -104,7 +105,14 @@ function ShopBuyPopup:OnOpen(shopType, shopItemId)
|
|||
local itemConfig = ConfigManager.GetConfig(ConfigName.ItemConfig)
|
||||
this.itemContent.text = string.gsub(itemConfig[goodsId].ItemDescribe, "\\n", "\n")
|
||||
this.itemIcon.sprite = SetIcon(goodsId)
|
||||
this.itemBg.sprite = SetFrame(goodsId)
|
||||
if itemConfig[this.shopItemInfo.Goods[1][1]].ItemType == 2 then
|
||||
this.itemBg.sprite = Util.LoadSprite(GetHeroChipQuantityImageByquality(itemConfig[this.shopItemInfo.Goods[1][1]].Quantity))
|
||||
Util.GetGameObject(self.gameObject, "tipImage/item/proima"):SetActive(true)
|
||||
Util.GetGameObject(self.gameObject, "tipImage/item/proima"):GetComponent("Image").sprite = Util.LoadSprite(GetJobSpriteStrByJobNum(itemConfig[this.shopItemInfo.Goods[1][1]].PropertyName))
|
||||
else
|
||||
this.itemBg.sprite = SetFrame(goodsId)
|
||||
Util.GetGameObject(self.gameObject, "tipImage/item/proima"):SetActive(false)
|
||||
end
|
||||
this.itemNum.text = this.goods[1][2]
|
||||
-- 计算最大可购买的数量
|
||||
local countLimitNum = ShopManager.GetShopItemLimitBuyCount(shopItemId)
|
||||
|
|
Loading…
Reference in New Issue