首页 > 代码库 > [cocos-quick]按钮因为文件载入路径没加normal导致看不到

[cocos-quick]按钮因为文件载入路径没加normal导致看不到

ButtonToolOff3 = {
Type = "Button",
Tag = 8,
ZOrder = 1,
File = {normal = "new_UI/djlogo3_off.png"},
Position = {0.28,0.8},
AnchorPoint = {0.5,0.5},
Size = {0,0.20},
Functions = {clicked = "ChooseLayer.onButtonClicked",pressed = "ChooseLayer.onButtonPressed",released = "ChooseLayer.onButtonReleased"},
},

 

解决办法:在File路径里加入normal

所有的按钮的File路径都需要加入normal,按钮分点击状态和普通状态。

[cocos-quick]按钮因为文件载入路径没加normal导致看不到