[入门系列]修改CrossApp默认打开的Window(窗口)

问题描述

CrossApp中,整个工程的入口函数是AppDelegate,在AppDelegate中屏蔽了多平台之间的区别,从而实现了跨平台。 言归正传,CrossApp中修改默认打开的Window的方法和Cocos2d-x中是相似的,但是对于没有学习过Cocos2d-x的朋友,还是需要介绍一下。首先,需要修改一下AppDelegate.cpp中所导入的头文件:[cpp] view plain copy#include "AppDelegate.h" #include "RootWindow.h"<span style="font-size:18px;color:#666666;"> </span> 上边是修改之前的,将下边的RootWindow.h改成我们自己window的头文件 在这里我自己写的窗口的头文件是" MainMenuWindow.h"修改后:[cpp] view plain copy#include "AppDelegate.h" #include "MainMenuWindow.h" 接下来修改一下 bool AppDelegate ::applicationDidFinishLaunching()函数中的实现,这个函数是在程序载入完毕之后执行的。没修改前:http://www.iteye.com/problems/121435http://www.iteye.com/problems/121434http://www.iteye.com/problems/121432http://www.iteye.com/problems/121431http://www.iteye.com/problems/121429http://www.iteye.com/problems/121428http://www.iteye.com/problems/121426http://www.iteye.com/problems/121425http://www.iteye.com/problems/121799http://www.iteye.com/problems/121800http://www.iteye.com/problems/121798http://www.iteye.com/problems/121797http://www.iteye.com/problems/121796http://www.iteye.com/problems/121795http://www.iteye.com/problems/121794http://www.iteye.com/problems/121793http://www.iteye.com/problems/121792http://www.iteye.com/problems/121791http://www.iteye.com/problems/121790http://www.iteye.com/problems/121789http://www.iteye.com/problems/121788http://www.iteye.com/problems/121787http://www.iteye.com/problems/121786http://www.iteye.com/problems/121785http://www.iteye.com/problems/121784http://www.iteye.com/problems/121783http://www.iteye.com/problems/121782http://www.iteye.com/problems/121781http://www.iteye.com/problems/121780http://www.iteye.com/problems/121779http://www.iteye.com/problems/121778http://www.iteye.com/problems/121777http://www.iteye.com/problems/121776http://www.iteye.com/problems/121775http://www.iteye.com/problems/121775http://www.iteye.com/problems/121774http://www.iteye.com/problems/121773http://www.iteye.com/problems/121772http://www.iteye.com/problems/121771http://www.iteye.com/problems/121770http://www.iteye.com/problems/121769http://www.iteye.com/problems/121768http://www.iteye.com/problems/121767http://www.iteye.com/problems/121766http://www.iteye.com/problems/121765http://www.iteye.com/problems/121764http://www.iteye.com/problems/121763http://www.iteye.com/problems/121762http://www.iteye.com/problems/121761http://www.iteye.com/problems/121760http://www.iteye.com/problems/121759http://www.iteye.com/problems/121758http://www.iteye.com/problems/121757http://www.iteye.com/problems/121757http://www.iteye.com/problems/121756http://www.iteye.com/problems/121755http://www.iteye.com/problems/121754http://www.iteye.com/problems/121753http://www.iteye.com/problems/121752http://www.iteye.com/problems/121751http://www.iteye.com/problems/121750http://www.iteye.com/problems/121749http://www.iteye.com/problems/121748http://www.iteye.com/problems/121747http://www.iteye.com/problems/121746http://www.iteye.com/problems/121745http://www.iteye.com/problems/121744http://www.iteye.com/problems/121743http://www.iteye.com/problems/121742http://www.iteye.com/problems/121741http://www.iteye.com/problems/121740http://www.iteye.com/problems/121739http://www.iteye.com/problems/121738http://www.iteye.com/problems/121737http://www.iteye.com/problems/121736http://www.iteye.com/problems/121735http://www.iteye.com/problems/121734http://www.iteye.com/problems/121733http://www.iteye.com/problems/121732http://www.iteye.com/problems/121731http://www.iteye.com/problems/121730http://www.iteye.com/problems/121729http://www.iteye.com/problems/121728http://www.iteye.com/problems/121727http://www.iteye.com/problems/121726http://www.iteye.com/problems/121725http://www.iteye.com/problems/121724http://www.iteye.com/problems/121723http://www.iteye.com/problems/121722http://www.iteye.com/problems/121721http://www.iteye.com/problems/121720http://www.iteye.com/problems/121719http://www.iteye.com/problems/121718http://www.iteye.com/problems/121717http://www.iteye.com/problems/121716http://www.iteye.com/problems/121715http://www.iteye.com/problems/121714http://www.iteye.com/problems/121713http://www.iteye.com/problems/121712http://www.iteye.com/problems/121711http://www.iteye.com/problems/121710http://www.iteye.com/problems/121709http://www.iteye.com/problems/121708http://www.iteye.com/problems/121707http://www.iteye.com/problems/121706http://www.iteye.com/problems/121706http://www.iteye.com/problems/121705http://www.iteye.com/problems/121704http://www.iteye.com/problems/121704http://www.iteye.com/problems/121703http://www.iteye.com/problems/121702http://www.iteye.com/problems/121701http://www.iteye.com/problems/121699http://www.iteye.com/problems/121705http://www.iteye.com/problems/121700

解决方案

CrossApp编译错误There is no SDK with the name or path的解决办法。 有些用户在编译CrossApp创建的工程时候,会遇到找不到SDK的错误。 error: There is no SDK with the name or path '/Users/archer/Desktop/CrossApp-0.3.5/CrossApp/proj.mac/macosx10.8' 其实解决办法很简单: http://www.iteye.com/problems/121435 http://www.iteye.com/problems/121434 http://www.iteye.com/problems/121432 http://www.iteye.com/problems/121431 http://www.iteye.com/problems/121429 http://www.iteye.com/problems/121428 http://www.iteye.com/problems/121426 http://www.iteye.com/problems/121425 http://www.iteye.com/problems/121799 http://www.iteye.com/problems/121800 http://www.iteye.com/problems/121798 http://www.iteye.com/problems/121797 http://www.iteye.com/problems/121796 http://www.iteye.com/problems/121795 http://www.iteye.com/problems/121794 http://www.iteye.com/problems/121793 http://www.iteye.com/problems/121792 http://www.iteye.com/problems/121791 http://www.iteye.com/problems/121790 http://www.iteye.com/problems/121789 http://www.iteye.com/problems/121788 http://www.iteye.com/problems/121787 http://www.iteye.com/problems/121786 http://www.iteye.com/problems/121785 http://www.iteye.com/problems/121784 http://www.iteye.com/problems/121783 http://www.iteye.com/problems/121782 http://www.iteye.com/problems/121781 http://www.iteye.com/problems/121780 http://www.iteye.com/problems/121779 http://www.iteye.com/problems/121778 http://www.iteye.com/problems/121777 http://www.iteye.com/problems/121776 http://www.iteye.com/problems/121775 http://www.iteye.com/problems/121775 http://www.iteye.com/problems/121774 http://www.iteye.com/problems/121773 http://www.iteye.com/problems/121772 http://www.iteye.com/problems/121771 http://www.iteye.com/problems/121770 http://www.iteye.com/problems/121769 http://www.iteye.com/problems/121768 http://www.iteye.com/problems/121767 http://www.iteye.com/problems/121766 http://www.iteye.com/problems/121765 http://www.iteye.com/problems/121764 http://www.iteye.com/problems/121763 http://www.iteye.com/problems/121762 http://www.iteye.com/problems/121761 http://www.iteye.com/problems/121760

时间: 2024-10-12 19:06:45

[入门系列]修改CrossApp默认打开的Window(窗口)的相关文章

Win7如何修改文件默认打开方式

  1.我们以修改Flash文件为例,选择一个Flash文件,点击鼠标右键,选择属性. 2.属性创建打开后,我们会发现此类文件的默认打开方式是通过Windows Media Player打开,点击更改按钮. 3.打开方式设置窗口中个,选择修改后的默认方式,此处我们选择百度影音,然后点击确定. 4.如果窗口中没有想要设置的工具,可以点击浏览按钮,然后在软件的实际安装路径中选择想要设置的工具. 5.设置OK后,会发现属性窗口中打开方式已经修改为百度影音,此时电脑中所有同类型的文件(flash文件)双

修改IE默认打开窗口大小的三种方法_应用技巧

是不是发现新打开的窗口,不符合自己的习惯呢,其实它也只是记录你上次更改页面的尺寸了大家大家可以看下,解决方法微软的IE浏览器在使用中偶尔会变成我们不太喜欢的大小.哪么如何调整适全我们的大小呢? 方法一:先把所有的IE窗口关了;只打开一个IE窗口;最大化这个窗口;关了它;OK,以后的默认都是最大化的了. 方法二:先关闭所有的IE浏览器窗口,用鼠标右键点击快速启动栏的IE浏览器图标,在出现的快捷菜单中点击"属性",系统随即弹出"启动InternetExplorer浏览器属性&qu

WIN7系统下如何修改文件默认打开方式

  其实不用那么麻烦,最好是下载EXE的千千静听,安装后,有一个千千的桌面快捷键. 然后在音频文件上右击,在跳出的菜单中选择打开方式,后拉菜单上有选择"打开默认程序",点击. 会有一个选择窗口, 始终使用选择的程序的那个一定要勾选,然后点击浏览,点击桌面,找到千千静听的快捷键,点击选择,然后依次确认,然后你就会发现你的音频文件都会变成千千静听的模式了. 当然在点击浏览后,选择E:/软件/千千静听/千千静听/千千静听.exe,也可以打开.

JavaScript中的Window窗口对象_基础知识

JavaScript中的Window窗口对象 他是JavaScript中最大的对象,它描述的是一个浏览器窗口.一般要引用它的属性和方法时,不需要用"window.xxx"这种形式,而直接使用"xxx".一个框架页面也是一个窗口. Window窗口对象有如下属性: name 窗口的名称,由打开它的连接(<a target="...">)或框架页(<frame name="...">)或某一个窗口调用的 o

win7系统怎么样修改文件后缀的默认打开方式

有的时候我们在网上下载下来的东西,都需要通过右击然后选择,打开方式来找到自己想要的打开方式.如果只是一次两次还好,但是如果很多次.这样会非常烦恼,这时候如果双击能够自己用自己想要的软件打开这个东西多好啊. 1 先举个例子详细说明下: 一般情况下我们电脑的视频播放器不止一个,像PPTV.PPS.风行等都是常用.但是我们打开下载下来的视频文件,肯定不想用这个打开.因为用这些打开会占网速,还会占很大的内存.个人建议把这些文件的后缀改成用Windows Media Player 12系统自带的播放器播放

Android系统移植与调试之-------&amp;gt;如何修改Android系统默认显示【开发者选项】并默认打开【USB调试】和【未知来源】开关

              今天有个用户对[设置]有个特殊的要求,即: 1.开机的时候默认显示[开发者选项]并打开[USB调试]开关    ([Developer options]-->[USB debugging]) 2.开机的时候默认打开[安全]-->[未知来源]的开关    ([Security]--->[Unknown sources])     1.首先解决[设置]界面默认显示[开发者选项]的问题 查看源代码:packages/apps/Settings/src/com/and

ueditor1.2.1修改超链接默认值,ueditor编辑器新窗口打开连接_网页编辑器

ueditor1.2.1修改超链接默认值 首先超链接的文件是在ueditor目录中的dialogs目录中的link目录的link.html 如图: 然后在链接地址或标题上加value属性和值,希望在新窗口打开,则设置checked属性,如下面红色代码所示. <tr> <td><labelfor="href">链接地址:</label></td> <td><input class="txt"

[寒江孤叶丶的CrossApp之旅_10][入门系列]CrossApp中CATextField的...

问题描述 CrossApp中CATextField的使用CATextField是CrossApp中用于接收用户输入的控件auto textField = CATextField::createWithCenter(CADipRect(size.width*0.5, size.height*0.7, size.width*0.6, size.height*0.05)); textField->setBackgroundView(CAScale9ImageView::createWithImage(

修改资源管理器打开后的默认路径为计算机目录的方法

本文转载:http://www.2cto.com/os/201206/135775.html 修改资源管理器打开后的默认路径为计算机目录的方法   在Win7下使用超级任务栏时,将文件夹锁定在超级任务栏打开的默认都是库,下面我们将其改为计算机目录.  www.2cto.com   在锁定文件夹处右键,继续右键 Windows资源管理器,选择属性,将打开的选项卡中"目标"改为"%windir%\explorer.exe ,"即加上一个空格和英文模式的逗号即可"