mirror of https://github.com/axmolengine/axmol.git
issue #2868:Modify cocos2dx_studio.ini to add more auto-binding class
This commit is contained in:
parent
f429c4c632
commit
062fb85943
|
@ -50,7 +50,7 @@ namespace cocostudio {
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
JsonDictionary();
|
JsonDictionary();
|
||||||
~JsonDictionary();
|
virtual ~JsonDictionary();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
void initWithDescription(const char *pszDescription);
|
void initWithDescription(const char *pszDescription);
|
||||||
|
|
|
@ -11,19 +11,6 @@ function SceneEditorTestLayer.extend(target)
|
||||||
return target
|
return target
|
||||||
end
|
end
|
||||||
|
|
||||||
function SceneEditorTestLayer:init()
|
|
||||||
|
|
||||||
|
|
||||||
local mainMenuLabel = ccs.UILabel:create()
|
|
||||||
mainMenuLabel:setText("MainMenu")
|
|
||||||
mainMenuLabel:setFontSize(20)
|
|
||||||
mainMenuLabel:setTouchScaleChangeEnabled(true)
|
|
||||||
mainMenuLabel:setPosition(cc.p(430,30))
|
|
||||||
mainMenuLabel:setTouchEnabled(true)
|
|
||||||
mainMenuLabel:addTouchEventListener(menuCloseCallback)
|
|
||||||
self._uiLayer:addWidget(mainMenuLabel)
|
|
||||||
end
|
|
||||||
|
|
||||||
function SceneEditorTestLayer:createGameScene()
|
function SceneEditorTestLayer:createGameScene()
|
||||||
local node = ccs.SceneReader:getInstance():createNodeWithSceneFile("scenetest/FishJoy2.json")
|
local node = ccs.SceneReader:getInstance():createNodeWithSceneFile("scenetest/FishJoy2.json")
|
||||||
if nil == node then
|
if nil == node then
|
||||||
|
@ -44,7 +31,7 @@ function SceneEditorTestLayer:createGameScene()
|
||||||
cc.MenuItemFont:setFontSize(24)
|
cc.MenuItemFont:setFontSize(24)
|
||||||
local itemBack = cc.MenuItemFont:create("Back")
|
local itemBack = cc.MenuItemFont:create("Back")
|
||||||
itemBack:setColor(cc.c3b(255, 255, 255))
|
itemBack:setColor(cc.c3b(255, 255, 255))
|
||||||
itemBack:setPosition(cc.p(VisibleRect:bottom().x - 50, VisibleRect:bottom().y + 25))
|
itemBack:setPosition( cc.p(430,30) )
|
||||||
itemBack:registerScriptTapHandler(menuCloseCallback)
|
itemBack:registerScriptTapHandler(menuCloseCallback)
|
||||||
local menuBack = cc.Menu:create()
|
local menuBack = cc.Menu:create()
|
||||||
menuBack:setPosition(cc.p(0.0, 0.0))
|
menuBack:setPosition(cc.p(0.0, 0.0))
|
||||||
|
|
|
@ -27,7 +27,7 @@ headers = %(cocosdir)s/cocos/gui/CocosGUI.h %(cocosdir)s/cocos/editor-support/co
|
||||||
|
|
||||||
# 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 = Armature ArmatureAnimation Skin Bone ArmatureDataManager \w+Data$ UIWidget UILayout UIRootWidget UIButton UICheckBox UIImageView UILabel UICCLabelAtlas UILabelAtlas UILoadingBar UIScrollView UISlider UICCTextField UITextField UIListView UILabelBMFont UIPageView UIHelper UILayer UILayoutParameter GUIReader UILinearLayoutParameter UIRelativeLayoutParameter SceneReader ActionManagerEx ComAudio
|
classes = Armature ArmatureAnimation Skin Bone ArmatureDataManager \w+Data$ UIWidget UILayout UIRootWidget UIButton UICheckBox UIImageView UILabel UICCLabelAtlas UILabelAtlas UILoadingBar UIScrollView UISlider UICCTextField UITextField UIListView UILabelBMFont UIPageView UIHelper UILayer UILayoutParameter GUIReader UILinearLayoutParameter UIRelativeLayoutParameter SceneReader ActionManagerEx ComAudio ComController ComAttribute ComRender
|
||||||
|
|
||||||
# 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
|
||||||
|
@ -45,7 +45,9 @@ skip = *::[^visit$ copyWith.* onEnter.* onExit.* ^description$ getObjectType .*
|
||||||
UILayer::[getInputManager],
|
UILayer::[getInputManager],
|
||||||
UILayoutParameter::[(s|g)etMargin],
|
UILayoutParameter::[(s|g)etMargin],
|
||||||
UIHelper::[init],
|
UIHelper::[init],
|
||||||
GUIReader::[setPropsForImageButtonFromJsonDictionary]
|
GUIReader::[setPropsForImageButtonFromJsonDictionary],
|
||||||
|
UIWidget::[(s|g)etUserObject],
|
||||||
|
UIImageView::[doubleClickEvent]
|
||||||
|
|
||||||
rename_functions = UIHelper::[instance=getInstance],
|
rename_functions = UIHelper::[instance=getInstance],
|
||||||
ArmatureDataManager::[sharedArmatureDataManager=getInstance],
|
ArmatureDataManager::[sharedArmatureDataManager=getInstance],
|
||||||
|
|
Loading…
Reference in New Issue