Skip to content

Commit

Permalink
fixed bugs in framework
Browse files Browse the repository at this point in the history
  • Loading branch information
SunLightJuly committed May 23, 2015
1 parent d453775 commit ff4e527
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion quick/framework/cc/uiloader/CCSUILoader2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ function CCSUILoader:createButton(options)
node:setButtonLabel(
cc.ui.UILabel.new({text = options.ButtonText,
size = options.FontSize,
font = options.fontName,
font = options.FontResource and options.FontResource.Path,
color = cc.c3b(options.TextColor.R, options.TextColor.G, options.TextColor.B)}))
end
if options.Size then
Expand Down
2 changes: 1 addition & 1 deletion quick/framework/display.lua
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@ end
function display.newFilteredSprite(filename, filters, params)
local __one = {class=cc.FilteredSpriteWithOne}
local __multi = {class=cc.FilteredSpriteWithMulti}
if not filters then return display.newSprite(filtename, nil,nil , __one) end
if not filters then return display.newSprite(filename, nil,nil , __one) end
local __sp = nil
local __type = type(filters)
if __type == "userdata" then __type = tolua.type(filters) end
Expand Down

0 comments on commit ff4e527

Please sign in to comment.