mirror of https://github.com/axmolengine/axmol.git
Updates lua CCControlSliderTest. (#16968)
* Updates lua CCControlSliderTest. fixed http://punchbox.info:3000/issues/26029 * [lua-tests] Fix the display position of CCControlSilderTest on win32.
This commit is contained in:
parent
46fd7e3d59
commit
fb89672fff
|
@ -366,10 +366,10 @@ local function runCCControlTest()
|
|||
|
||||
local screenSize = cc.Director:getInstance():getWinSize()
|
||||
--Add a label in which the slider value will be displayed
|
||||
local pDisplayValueLabel = cc.Label:createWithSystemFont("Move the slider thumb!\nThe lower slider is restricted." ,"Marker Felt", 32)
|
||||
local pDisplayValueLabel = cc.Label:createWithSystemFont("Move the slider thumb!\nThe lower slider is restricted." ,"Marker Felt", 24)
|
||||
pDisplayValueLabel:retain()
|
||||
pDisplayValueLabel:setAnchorPoint(cc.p(0.5, -1.0))
|
||||
pDisplayValueLabel:setPosition(cc.p(screenSize.width / 1.7, screenSize.height / 2.0))
|
||||
pDisplayValueLabel:setPosition(cc.p(screenSize.width / 2.0, screenSize.height / 2.0 + 24))
|
||||
pLayer:addChild(pDisplayValueLabel)
|
||||
|
||||
local function valueChanged(pSender)
|
||||
|
|
Loading…
Reference in New Issue