首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏Java架构师必看

    containerbase.addchild start_maven compiler plugin

    今天说一说containerbase.addchild start_maven compiler plugin,希望能够帮助大家进步!!!

    55620编辑于 2022-09-12
  • 来自专栏学习笔记持续记录中...

    关于tomcat启动时报错:SEVERE: ContainerBase.addChild

    SEVERE:ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component

    88610发布于 2020-03-17
  • 来自专栏全栈程序员必看

    cocos2dx tolua传递参数分析

    cocos2dx tolua传递参数分析: tolua_Cocos2d_CCNode_addChild00 == void CCNode::addChild(CCNode *child) tolua_Cocos2d_CCNode_addChild01 == void CCNode::addChild(CCNode *child, int zOrder) tolua_Cocos2d_CCNode_addChild02 == void CCNode ::addChild(CCNode *child, int zOrder, int tag) 上面是使用tolua把C++转到lua。 我们这里分析一下最后一个:/* method: addChild of class CCNode */#ifndef TOLUA_DISABLE_tolua_Cocos2d_CCNode_addChild02static 加到了middleBg self->addChild(child,zOrder,tag); } } return 0;tolua_lerror: return tolua_Cocos2d_CCNode_addChild01

    54120编辑于 2022-07-06
  • 来自专栏菩提树下的杨过

    Flash/Flex学习笔记(51):3维旋转与透视变换(PerspectiveProjection)

    ",imgSprite.height=",imgSprite.height); var containerSprite:Sprite = new Sprite(); containerSprite.addChild (imgSprite); imgSprite.x = img.width / 2; imgSprite.y = img.height / 2; addChild(containerSprite); trace (txtX); addChild(txtY); addChild(txtZ); addChild(txtPosZ); addChild(txtFieldOfView); addChild(txtInfo ); addChild(txtCenter); addChild(txtFocusLength); addChild(silderX); addChild(silderY); addChild(silderZ ); addChild(silderPosZ); addChild(silderFieldOfView); addChild(silderCenterPos); addChild(silderFocusLength

    1K80发布于 2018-01-22
  • 来自专栏Linux云计算及前后端开发

    27·灵魂前端工程师养成-数据结构

    (tree,20) addChild(tree,30) addChild(tree,40) addChild(tree,50) console.log(tree)  给 儿子 再生个儿子... (tree,20) addChild(tree,20) addChild(tree,30) addChild(tree,40) addChild(tree,50) addChild(node2,120) addChild(node2,130) addChild(node2,140) addChild(node2,150) console.log(tree)  删除节点,首先我们要遍历这棵树,每一个节点 (tree,20) addChild(tree,20) addChild(tree,30) addChild(tree,40) addChild(tree,50) addChild(node2,120) (tree, 20); const node3 = addChild(tree, 30); addChild(tree, 40); const node5 = addChild(tree, 50); addChild

    31720编辑于 2022-09-26
  • 来自专栏全栈程序员必看

    cocos2d3.0 Scale9Sprite

    , 0, 96, 96), false, Rect(0, 0, 96, 96)); blocks->setPosition(Point(x, y)); this->addChild setPosition(Point(x, y)); block_scaled->setContentSize(Size(96 * 4, 96 * 2)); this->addChild (96 * 4.5, 96 * 2.5)); blocks_scaled_with_insets->setPosition(Point(x, y)); this->addChild (96 * 4.5, 96 * 2.5)); blocks_scaled_with_insets->setPosition(Point(x, y)); this->addChild ; s->setContentSize(Size(14 * 16, 10 * 16)); log("... setContentSize"); this->addChild

    59120编辑于 2022-07-09
  • 来自专栏转载gongluck的CSDN博客

    cocos2d-x AnchorPoint锚点

    255,0,0,255), 300, 200);   CCLayer* layer2 = CCLayerColor::create(ccc4(255,255,0,255), 100, 100);   addChild (layer1);   layer1->addChild(layer2);   ? HelloWorld.png", CCRectMake(100, 100, 100, 100));   CCSprite *p2 = CCSprite::create("girl1.png");   addChild (p1);   p1->addChild(p2);   //p2作为p1的子节点 setPosition(200,200);  // Layer 的原点移到200,200 ? (p1);   p1->addChild(p2);   p2->setAnchorPoint(ccp(1,1));   setPosition(200,200);   ?

    2.7K70发布于 2018-03-08
  • 来自专栏海加尔金鹰的专栏

    设计模式学习笔记之组合模式

    Component leafB = new Leaf("------叶子B"); Component leafC = new Leaf("---叶子C"); root.addChild (branchA); root.addChild(leafC); branchA.addChild(leafA); branchA.addChild(branchB ); branchB.addChild(leafB); String result = root.operation(); System.out.println (Component component) { throw new UnsupportedOperationException("addChild not supported!" (branchA); root.addChild(leafC); branchA.addChild(leafA); branchA.addChild(branchB

    53620发布于 2020-06-09
  • 来自专栏全栈程序员必看

    cocos2d-x3.0 相对布局(一)「建议收藏」

    widgetSize.height / 2.0f - alert->getSize().height * 3.075f)); addChild layout->setBackGroundImage("green_edit.png"); layout->setPosition(Point(0,0)); addChild Button::create("animationbuttonnormal.png", "animationbuttonpressed.png"); layout->addChild button_TopRight = Button::create("animationbuttonnormal.png","animationbuttonpressed.png"); layout->addChild buttonCenter = Button::create("animationbuttonnormal.png","animationbuttonnormal.png"); layout->addChild

    41410编辑于 2022-07-06
  • 来自专栏转载gongluck的CSDN博客

    cocos2dx 钢琴

    Scene* Piano::createScene() { Scene* scene = Scene::create(); Piano* layer = Piano::create(); scene->addChild size.height / 360); auto menu1 = Menu::create(); menu1->setAnchorPoint(Vec2(0, 0));//锚点改为左下角 menu1->addChild (button1); menu1->setPosition((1-1)*size.width/7,0); addChild(menu1); CocosDenshion::SimpleAudioEngine size.height / 360); auto menu2 = Menu::create(); menu2->setAnchorPoint(Vec2(0, 0));//锚点改为左下角 menu2->addChild (button7); menu7->setPosition((7 - 1)*size.width / 7, 0); addChild(menu7); return true; } void Piano

    1.3K30发布于 2018-03-08
  • 来自专栏JAVA高级架构

    组合模式(Composite)

    Component:public abstract class Component { public abstract void doSomething(); public void addChild }else { System.out.println("元素为空"); } } @Override public void addChild leaf3 = new Leaf("裙子"); Component leaf4 = new Leaf("套装"); //按照树的结构来组合组合对象和叶子对象 root.addChild (c1); root.addChild(c2); c1.addChild(leaf1); c1.addChild(leaf2); c2.addChild(leaf3); c2.addChild(leaf4); //调用根对象的输出功能来输出整棵树 root.doSomething();

    55520发布于 2018-07-20
  • 来自专栏全栈程序员必看

    Cocos2d-x3.1TestCpp之NewRenderTest Demo分析

    object auto layer = HelloWorld::create(); // add layer as a child to scene scene->addChild (child1); parent->addChild(child2); parent->addChild(child3); parent->addChild(child4); parent->addChild(child5); parent->addChild(child6); parent->addChild(child7); parent->addChild (child1); parent->addChild(child2); parent->addChild(child3); parent->addChild(child4); parent->addChild(child5); parent->addChild(child6); parent->addChild(child7); parent->addChild

    87740编辑于 2022-02-07
  • 来自专栏同步博客

    PHP中遍历XML之SimpleXML

    ><articles/>'); 4 5 $article1=$simplexml->addChild('article'); 6 $article1->addChild('title','this is title1111'); 7 $article1->addChild('writer','Mr.李'); 8 9 $article2=$simplexml->addChild('article '); 10 $article2->addChild('title','this is title2222'); 11 $article2->addChild('writer','Mr.酒鬼'); 12 13 $article3=$simplexml->addChild('article'); 14 $article3->addChild('title','this is title33333'); 15 $article3->addChild('writer','Mr.一叶随风'); 16 17 $str= $simplexml->asXML(); 18 file_put_contents('

    2.7K10发布于 2018-08-22
  • 来自专栏python3

    AS3初探

    username_label = new Label(); username_label.text = "UserName" ; username_label.move(10,10); this.addChild function setusernametxt():void { username_txt = new TextInput(); username_txt.move(90,10); this.addChild void { pwd_txt = new TextInput(); pwd_txt.displayAsPassword = true ; pwd_txt.move(90,40); this.addChild :void { showmsg_label = new Label(); showmsg_label.move(90,100); showmsg_label.text = ""; this.addChild "Login" ; login_btn.move(90,70); login_btn.addEventListener(MouseEvent.CLICK,login_click); this.addChild

    85720发布于 2020-01-09
  • 来自专栏技术趋势

    设计模式-组合模式

    * @param: * @return: * @auther: csh * @date: 2020/5/25 18:16 */ public void addChild cameroon = new Country("喀麦隆"); africa.addChild(cameroon); earth.addChild(asian); earth.addChild(america); earth.addChild(africa); earth.printPositionName(""); cameroon = new Country("喀麦隆"); africa.addChild(cameroon); earth.addChild(asian); earth.addChild(america); earth.addChild(africa); earth.printPositionName(""); }

    91331发布于 2020-09-18
  • 来自专栏全栈程序员必看

    重装系统error16_error怎么解决

    = fac.createOMElement(“starttime”, omNs); starttime_oe.setText(starttime); method.addChild = fac.createOMElement(“tagnames”, omNs); tagnames_oe.setText(tagnames); method.addChild = fac.createOMElement(“starttime”, omNs); starttime_oe.setText(starttime); method.addChild fac.createOMElement(“titledesc”, omNs); titledesc_oe.setText(titledesc); method.addChild = fac.createOMElement(“tagnames”, omNs); tagnames_oe.setText(tagnames); method.addChild

    1.1K10编辑于 2022-11-04
  • 来自专栏前端魔法指南

    React:像message.success()一样实现Message通用容器及Message组件

    的constructor函数中实现这两个函数; addChild() addChild函数要做的是在nodeList中添加一个节点,节点如下 { node: item, //这是一条消息(也可以说是一个弹窗 //通过时间戳生成的唯一ID } 最终要在拆入完全完成,在setState之后将本条消息在nodeList中的index传出(这里有没有必要改成唯一id,值得思考) const addChild /modal.module.css"; const modalControl = { addChild: null, removeChild: null, }; function ModalItem = addChild; modalControl.removeChild = removeChild; } render() { return ( <div className 最终都能实现 总结 因为抽象出了container,想实现Modal、Dialog都会很容易;我们当然也可以自己写一个提示框,通过addChild添加到消息队列中。

    1.7K20编辑于 2022-08-12
  • 来自专栏菩提树下的杨过

    Flash/Flex学习笔记(46):正向运动学

    (segment); segment.x=50; segment.y=120; var slider:SimpleSlider=new SimpleSlider(-90,90,0); addChild (segment0); segment0.x=50; segment0.y=150; segment1=new Segment(100,20); addChild(segment1 (segment0); segment0.x=200; segment0.y=200; segment1=new Segment(100,20); addChild(segment1 (segment0); segment0.x=200; segment0.y=50; segment1=new Segment(100,20); addChild( (segment2); segment3=new Segment(100,20); addChild(segment3); segment3.x=segment2

    74960发布于 2018-01-23
  • 来自专栏Howl同学的学习笔记

    组合模式

    this.name = name; } public abstract String hierarchical(); public abstract void addChild public void printAll() { System.out.println(this.name); } @Override public void addChild Component leafB = new Leaf("----leafB"); Component leafC = new Leaf("----leafC"); root.addChild (branchA); root.addChild(branchB); branchA.addChild(leafA); branchA.addChild(leafB); branchB.addChild(leafC); System.out.println(root.hierarchical()); } //root //--branchA //----leafA

    64710编辑于 2022-05-09
  • 来自专栏全栈程序员必看

    Cocos2d-x-lua游戏两个场景互相切换MainScene01切换到MainScene02「建议收藏」

    win_w/ 2 , win_h/ 2 )) pSrite:setScaleX(win_w/pSrite:getContentSize().width) self:addChild btn_menu = CCMenu:createWithItem(btn) btn_menu:setPosition(ccp( 0 , 0 )) self:addChild return self end function _main01() local scene = CCScene:create() scene:addChild setPosition(ccp(win_w/2, win_h/2)) bgSprite:setScaleX(win_w/bgSprite:getContentSize().width) layer:addChild win_h/2)) local okMenu = CCMenu:createWithItem(popMenu) okMenu:setPosition(ccp(0,0)) layer:addChild

    50020编辑于 2022-07-07
领券