Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cocos/platform/CCFileUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -846,6 +846,7 @@ void FileUtils::setWritablePath(const std::string& writablePath)
void FileUtils::setDefaultResourceRootPath(const std::string& path)
{
_defaultResRootPath = path;
this->addSearchPath(_defaultResRootPath,true);
}

void FileUtils::setSearchPaths(const std::vector<std::string>& searchPaths)
Expand Down
10 changes: 8 additions & 2 deletions quick/framework/cc/uiloader/CCSUILoader2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,14 @@ function CCSUILoader:generateUINode(jsonNode, parent)
uiNode:setRotation(jsonNode.Rotation or 0)
uiNode:setSkewX(jsonNode.RotationSkewX or 0)
uiNode:setSkewY(jsonNode.RotationSkewY or 0)

-- uiNode:setVisible(jsonNode.visible) -- ccs havn't export visible attribute


if jsonNode.VisibleForFrame==nil then --增加 visible 参数
jsonNode.visible=true
else
jsonNode.visible=jsonNode.VisibleForFrame
end
uiNode:setVisible(jsonNode.visible) -- ccs visible attribute
if jsonNode.Scale then
uiNode:setScaleX((jsonNode.Scale.ScaleX or 1) * uiNode:getScaleX())
uiNode:setScaleY((jsonNode.Scale.ScaleY or 1) * uiNode:getScaleY())
Expand Down