gdl_123 há 3 semanas atrás
pai
commit
74df6c71d8

+ 3 - 0
Assets/Lua/Core/Constant.lua

@@ -14,6 +14,9 @@ local Constant = {
     OpenLanguageSetting = false,
     OpenLanguageSetting = false,
     LanguageNames = {'cn','en','vi','th'},
     LanguageNames = {'cn','en','vi','th'},
 
 
+
+    OpenGetAll = false,
+
     HeroLeaderIcon = "FrameNew/label_main",
     HeroLeaderIcon = "FrameNew/label_main",
     HeroBattleIcon = "FrameNew/label_battling",
     HeroBattleIcon = "FrameNew/label_battling",
 
 

+ 1 - 1
Assets/Lua/UI/UICollect/CardBook.lua

@@ -22,7 +22,7 @@ function CardBook:InitPanel()
 
 
 	self.viewLua.btnMaterials:SetActive(false)
 	self.viewLua.btnMaterials:SetActive(false)
 	self.viewLua.dscBox:SetActive(false)
 	self.viewLua.dscBox:SetActive(false)
-	self.viewLua.btnReceive:SetActive(true)
+	self.viewLua.btnReceive:SetActive(true and Constant.OpenGetAll)
 end
 end
 
 
 function CardBook:Hide()
 function CardBook:Hide()

+ 1 - 1
Assets/Lua/UI/UICollect/PetBook.lua

@@ -22,7 +22,7 @@ function PetBook:InitPanel()
 
 
 	self.viewLua.btnMaterials:SetActive(false)
 	self.viewLua.btnMaterials:SetActive(false)
 	self.viewLua.dscBox:SetActive(false)
 	self.viewLua.dscBox:SetActive(false)
-	self.viewLua.btnReceive:SetActive(true)
+	self.viewLua.btnReceive:SetActive(true and Constant.OpenGetAll)
 end
 end
 
 
 function PetBook:Hide()
 function PetBook:Hide()