mirror of https://github.com/axmolengine/axmol.git
Merge pull request #13483 from zilongshanren/fix-lua-ui-v3.8
[ci skip]add missing ui test in Lua
This commit is contained in:
commit
f79d2c8a0a
|
@ -619,3 +619,10 @@ cc.AsyncTaskPool.TaskType =
|
||||||
TASK_MAX_TYPE = 3,
|
TASK_MAX_TYPE = 3,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
cc.RED = cc.c3b(255,0,0)
|
||||||
|
cc.GREEN = cc.c3b(0,255,0)
|
||||||
|
cc.BLUE = cc.c3b(0,0,255)
|
||||||
|
cc.BLACK = cc.c3b(0,0,0)
|
||||||
|
cc.WHITE = cc.c3b(255,255,255)
|
||||||
|
cc.YELLOW = cc.c3b(255,255,0)
|
||||||
|
|
|
@ -107,7 +107,12 @@ ccui.RelativeAlign =
|
||||||
locationBelowRightAlign = 21,
|
locationBelowRightAlign = 21,
|
||||||
}
|
}
|
||||||
|
|
||||||
ccui.SliderEventType = {percentChanged = 0}
|
ccui.SliderEventType = {
|
||||||
|
percentChanged = 0,
|
||||||
|
slideBallDown = 1,
|
||||||
|
slideBallUp = 2,
|
||||||
|
slideBallCancel = 3
|
||||||
|
}
|
||||||
|
|
||||||
ccui.LoadingBarDirection = { LEFT = 0, RIGHT = 1}
|
ccui.LoadingBarDirection = { LEFT = 0, RIGHT = 1}
|
||||||
|
|
||||||
|
|
|
@ -99,7 +99,7 @@ void UIRadioButtonTest::addRadioButton(Ref* sender)
|
||||||
}
|
}
|
||||||
|
|
||||||
RadioButton* radioButton = RadioButton::create("cocosui/radio_button_off.png", "cocosui/radio_button_on.png");
|
RadioButton* radioButton = RadioButton::create("cocosui/radio_button_off.png", "cocosui/radio_button_on.png");
|
||||||
pos.x += + BUTTON_WIDTH;
|
pos.x += BUTTON_WIDTH;
|
||||||
radioButton->setPosition(pos);
|
radioButton->setPosition(pos);
|
||||||
_radioButtonGroup->addRadioButton(radioButton);
|
_radioButtonGroup->addRadioButton(radioButton);
|
||||||
_uiLayer->addChild(radioButton);
|
_uiLayer->addChild(radioButton);
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -30,7 +30,7 @@ headers = %(cocosdir)s/cocos/ui/CocosGUI.h
|
||||||
|
|
||||||
# what classes to produce code for. You can use regular expressions here. When testing the regular
|
# what classes to produce code for. You can use regular expressions here. When testing the regular
|
||||||
# expression, it will be enclosed in "^$", like this: "^Menu*$".
|
# expression, it will be enclosed in "^$", like this: "^Menu*$".
|
||||||
classes = Helper Widget Layout Button CheckBox ImageView Text TextAtlas TextBMFont LoadingBar Slider TextField ScrollView ListView PageView LayoutParameter LinearLayoutParameter RelativeLayoutParameter Rich.* HBox VBox RelativeBox Scale9Sprite EditBox LayoutComponent AbstractCheckButton
|
classes = Helper Widget Layout Button CheckBox ImageView Text TextAtlas TextBMFont LoadingBar Slider TextField ScrollView ListView PageView LayoutParameter LinearLayoutParameter RelativeLayoutParameter Rich.* HBox VBox RelativeBox Scale9Sprite EditBox LayoutComponent AbstractCheckButton RadioButton RadioButtonGroup
|
||||||
|
|
||||||
# what should we skip? in the format ClassName::[function function]
|
# what should we skip? in the format ClassName::[function function]
|
||||||
# ClassName is a regular expression, but will be used like this: "^ClassName$" functions are also
|
# ClassName is a regular expression, but will be used like this: "^ClassName$" functions are also
|
||||||
|
|
Loading…
Reference in New Issue