From 12cf9da486dc9f07a0781d1dbd930e3d43c40cd3 Mon Sep 17 00:00:00 2001 From: andyque Date: Mon, 26 Jan 2015 14:46:45 +0800 Subject: [PATCH] improve loadingbar test --- .../CocoStudioGUITest/UILoadingBarTest/UILoadingBarTest.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UILoadingBarTest/UILoadingBarTest.cpp b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UILoadingBarTest/UILoadingBarTest.cpp index 62b422ac43..fcf8ed7580 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UILoadingBarTest/UILoadingBarTest.cpp +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UILoadingBarTest/UILoadingBarTest.cpp @@ -419,9 +419,10 @@ bool UILoadingBarReloadTexture::init() Size widgetSize = _widget->getContentSize(); // Add the alert - Text *alert = Text::create("LoadingBar right scale9 render", "fonts/Marker Felt.ttf", 20); + Text *alert = Text::create("Click button to Toggle Scale9 and switch Texture.", "fonts/Marker Felt.ttf", 20); alert->setColor(Color3B(159, 168, 176)); - alert->setPosition(Vec2(widgetSize.width / 2.0f, widgetSize.height / 2.0f - alert->getContentSize().height * 2.7f)); + alert->setPosition(Vec2(widgetSize.width / 2.0f, + widgetSize.height / 2.0f - alert->getContentSize().height * 2.7f)); _uiLayer->addChild(alert); LoadingBar* loadingBar = LoadingBar::create("cocosui/slider_bar_active_9patch.png");