diff --git a/Classes/GameCfg.h b/Classes/GameCfg.h index 829f874..b9847e1 100755 --- a/Classes/GameCfg.h +++ b/Classes/GameCfg.h @@ -16,11 +16,13 @@ #define GAME_TMX_ROLE_HEIGHT 32.0 #define GAME_PLAYER_MOVESPEED 0.5 -#define GAME_INIT_SQL "insert into save_data (map_id, player_to_x, player_to_y, player_direction, gold) values(1, 14.5, 9.5, 'down', 200);" +#define GAME_INIT_SQL "insert into save_data (map_id, player_to_x, player_to_y, player_direction, gold, window_style) values(1, 14.5, 9.5, 'down', 200, 'style2');" #define GAME_BATTLE_SELECTED_ID "GAME_BATTLE_SELECTED_ID" //战斗画面选择了一个技能或道具后,临时保存的技能id或道具id #define GAME_BATTLE_FIELD "GAME_BATTLE_FIELD" //战斗画面的执行完毕技能或道具动作后,影响了哪个字段 +#define GAME_STYLE "GAME_STYLE" //当前使用的样式 + #define MAX_GOLD 999999 //金钱最大值 #define MAX_STATUS1 9999 //HP最大值 #define MAX_STATUS2 999 //MP、攻击力、防御力、速度、技能攻击、技能防御的最大值 diff --git a/Classes/RPGBaseSceneLayer.cpp b/Classes/RPGBaseSceneLayer.cpp index 14829dd..c9479db 100755 --- a/Classes/RPGBaseSceneLayer.cpp +++ b/Classes/RPGBaseSceneLayer.cpp @@ -28,8 +28,7 @@ void addLab(CCNode* parentNode, int tag, CCString* text, float fontSize, CCTextA void saveData(CppSQLite3DB* db, RPGSaveData *saveData) { - - db->execDML(CCString::createWithFormat("update save_data set map_id = %i, player_to_x = %f, player_to_y = %f, player_direction = '%s', gold = %i where id = 1", saveData->m_mapId, saveData->m_playerToX, saveData->m_playerToY, saveData->m_playerDirection.c_str(), saveData->m_gold)->getCString()); + db->execDML(CCString::createWithFormat("update save_data set map_id = %i, player_to_x = %f, player_to_y = %f, player_direction = '%s', gold = %i, window_style = '%s' where id = 1", saveData->m_mapId, saveData->m_playerToX, saveData->m_playerToY, saveData->m_playerDirection.c_str(), saveData->m_gold, saveData->m_windowStyle.c_str())->getCString()); } RPGSaveData* loadSaveData(CppSQLite3DB* db) @@ -43,6 +42,7 @@ RPGSaveData* loadSaveData(CppSQLite3DB* db) saveDataObj->m_playerToY = query.getFloatField("player_to_y"); saveDataObj->m_playerDirection = query.getStringField("player_direction"); saveDataObj->m_gold = query.getIntField("gold"); + saveDataObj->m_windowStyle = query.getStringField("window_style"); query.finalize(); diff --git a/Classes/RPGBattleMenu.cpp b/Classes/RPGBattleMenu.cpp index bdcdc86..c4f91d4 100644 --- a/Classes/RPGBattleMenu.cpp +++ b/Classes/RPGBattleMenu.cpp @@ -63,7 +63,7 @@ bool RPGBattleMenu::initWithParentNode(CCDictionary* stringList, CppSQLite3DB* d CCTMXTiledMap *bgLayer = (CCTMXTiledMap*)this->m_parentNode->getChildByTag(kRPGBattleMenuTagBg); if(!bgLayer) { - bgLayer = CCTMXTiledMap::create("battle_battlemenu_style1.tmx"); + bgLayer = CCTMXTiledMap::create(CCString::createWithFormat("battle_battlemenu_%s.tmx", CCUserDefault::sharedUserDefault()->getStringForKey(GAME_STYLE).c_str())->getCString()); bgLayer->setPosition(ccp(718, 0)); bgLayer->setTag(kRPGBattleMenuTagBg); parentNode->addChild(bgLayer); @@ -199,7 +199,7 @@ void RPGBattleMenu::onMenu(cocos2d::CCObject *pObject) menuCancel->setScale(0.75); this->addChild(menuCancel); - CCTMXTiledMap *selectLayer = CCTMXTiledMap::create("battle_select_style1.tmx"); + CCTMXTiledMap *selectLayer = CCTMXTiledMap::create(CCString::createWithFormat("battle_select_%s.tmx", CCUserDefault::sharedUserDefault()->getStringForKey(GAME_STYLE).c_str())->getCString()); selectLayer->setPosition(ccp((CCDirector::sharedDirector()->getWinSize().width - selectLayer->getContentSize().width) / 2, (CCDirector::sharedDirector()->getWinSize().height - selectLayer->getContentSize().height) / 2)); selectLayer->setTag(kRPGBattleSceneLayerTagSkillSelectDialog); @@ -295,7 +295,7 @@ void RPGBattleMenu::onMenu(cocos2d::CCObject *pObject) menuCancel->setScale(0.75); this->addChild(menuCancel); - CCTMXTiledMap *selectLayer = CCTMXTiledMap::create("battle_select_style1.tmx"); + CCTMXTiledMap *selectLayer = CCTMXTiledMap::create(CCString::createWithFormat("battle_select_%s.tmx", CCUserDefault::sharedUserDefault()->getStringForKey(GAME_STYLE).c_str())->getCString()); selectLayer->setPosition(ccp((CCDirector::sharedDirector()->getWinSize().width - selectLayer->getContentSize().width) / 2, (CCDirector::sharedDirector()->getWinSize().height - selectLayer->getContentSize().height) / 2)); selectLayer->setTag(kRPGBattleSceneLayerTagItemsSelectDialog); diff --git a/Classes/RPGBattleSceneLayer.cpp b/Classes/RPGBattleSceneLayer.cpp index e6a362e..d0450b1 100755 --- a/Classes/RPGBattleSceneLayer.cpp +++ b/Classes/RPGBattleSceneLayer.cpp @@ -61,7 +61,7 @@ bool RPGBattleSceneLayer::init() } //下面的菜单 - CCTMXTiledMap *menuLayer = CCTMXTiledMap::create("battle_menu_style1.tmx"); + CCTMXTiledMap *menuLayer = CCTMXTiledMap::create(CCString::createWithFormat("battle_menu_%s.tmx", CCUserDefault::sharedUserDefault()->getStringForKey(GAME_STYLE).c_str())->getCString()); menuLayer->setTag(kRPGBattleSceneLayerTagMenuBg); menuLayer->setPosition(ccp((CCDirector::sharedDirector()->getWinSize().width - menuLayer->getContentSize().width) / 2.0, (CCDirector::sharedDirector()->getWinSize().height - bg->getContentSize().height) / 2)); this->addChild(menuLayer); @@ -732,7 +732,7 @@ void RPGBattleSceneLayer::showMsg(cocos2d::CCString *msgText, bool autoRelease) this->unschedule(schedule_selector(RPGBattleSceneLayer::hideMsg)); } - bgLayer = CCTMXTiledMap::create("battle_msg_style1.tmx"); + bgLayer = CCTMXTiledMap::create(CCString::createWithFormat("battle_msg_%s.tmx", CCUserDefault::sharedUserDefault()->getStringForKey(GAME_STYLE).c_str())->getCString()); bgLayer->setPosition(ccp((CCDirector::sharedDirector()->getWinSize().width - bgLayer->getContentSize().width) / 2, 593)); bgLayer->setTag(kRPGBattleSceneLayerTagMsg); this->addChild(bgLayer); @@ -1328,7 +1328,7 @@ bool RPGBattleSceneLayer::judgeLose() void RPGBattleSceneLayer::showWinResults() { - CCTMXTiledMap *winResults = CCTMXTiledMap::create("battle_select_style1.tmx"); + CCTMXTiledMap *winResults = CCTMXTiledMap::create(CCString::createWithFormat("battle_select_%s.tmx", CCUserDefault::sharedUserDefault()->getStringForKey(GAME_STYLE).c_str())->getCString()); winResults->setPosition(ccp((CCDirector::sharedDirector()->getWinSize().width - winResults->getContentSize().width) / 2, (CCDirector::sharedDirector()->getWinSize().height - winResults->getContentSize().height) / 2)); winResults->setTag(kRPGBattleSceneLayerTagWinResultsDialog); this->addChild(winResults); @@ -1450,7 +1450,7 @@ void RPGBattleSceneLayer::showWinResults() void RPGBattleSceneLayer::showLoseResults() { - CCTMXTiledMap *loseResults = CCTMXTiledMap::create("battle_select_style1.tmx"); + CCTMXTiledMap *loseResults = CCTMXTiledMap::create(CCString::createWithFormat("battle_select_%s.tmx", CCUserDefault::sharedUserDefault()->getStringForKey(GAME_STYLE).c_str())->getCString()); loseResults->setPosition(ccp((CCDirector::sharedDirector()->getWinSize().width - loseResults->getContentSize().width) / 2, (CCDirector::sharedDirector()->getWinSize().height - loseResults->getContentSize().height) / 2)); loseResults->setTag(kRPGBattleSceneLayerTagLoseResultsDialog); this->addChild(loseResults); diff --git a/Classes/RPGData.h b/Classes/RPGData.h index 641dd45..ca08162 100644 --- a/Classes/RPGData.h +++ b/Classes/RPGData.h @@ -165,6 +165,7 @@ public: float m_playerToY; string m_playerDirection; int m_gold; + string m_windowStyle; RPGSaveData(); virtual ~RPGSaveData(); diff --git a/Classes/RPGDialogLayer.cpp b/Classes/RPGDialogLayer.cpp index 00f028d..f5a7a57 100644 --- a/Classes/RPGDialogLayer.cpp +++ b/Classes/RPGDialogLayer.cpp @@ -8,6 +8,7 @@ #include "RPGDialogLayer.h" #include "OzgCCUtility.h" +#include "GameCfg.h" RPGDialogLayer::RPGDialogLayer() { @@ -98,7 +99,7 @@ RPGDialogLayer* RPGDialogLayer::create(string titleStr, string menuOKStr, int me //private void RPGDialogLayer::initCommons(string titleStr) { - CCTMXTiledMap *mainBg = CCTMXTiledMap::create("alert_style1.tmx"); + CCTMXTiledMap *mainBg = CCTMXTiledMap::create(CCString::createWithFormat("alert_%s.tmx", CCUserDefault::sharedUserDefault()->getStringForKey(GAME_STYLE).c_str())->getCString()); float x = (CCDirector::sharedDirector()->getWinSize().width - mainBg->getContentSize().width) / 2.0f; float y = (CCDirector::sharedDirector()->getWinSize().height - mainBg->getContentSize().height) / 2.0f; mainBg->setPosition(ccp(x, y)); diff --git a/Classes/RPGMapChoicePlayerMenuLayer.cpp b/Classes/RPGMapChoicePlayerMenuLayer.cpp index 8c7a971..2fc36db 100644 --- a/Classes/RPGMapChoicePlayerMenuLayer.cpp +++ b/Classes/RPGMapChoicePlayerMenuLayer.cpp @@ -30,7 +30,7 @@ bool RPGMapChoicePlayerMenuLayer::init(CppSQLite3DB *db, CCString* titleLab, CCO this->m_db = db; - CCTMXTiledMap *mainBg = CCTMXTiledMap::create("select_player_style1.tmx"); + CCTMXTiledMap *mainBg = CCTMXTiledMap::create(CCString::createWithFormat("select_player_%s.tmx", CCUserDefault::sharedUserDefault()->getStringForKey(GAME_STYLE).c_str())->getCString()); mainBg->setPosition(ccp(270, 280)); mainBg->setTag(kRPGMapChoicePlayerMenuLayerTagBg); this->addChild(mainBg); diff --git a/Classes/RPGMapDialogLayer.cpp b/Classes/RPGMapDialogLayer.cpp index df87ee3..9c77a01 100644 --- a/Classes/RPGMapDialogLayer.cpp +++ b/Classes/RPGMapDialogLayer.cpp @@ -29,7 +29,7 @@ bool RPGMapDialogLayer::init(RPGMapNPCRoleSprite* npc) this->m_npc = npc; this->m_npc->retain(); - CCTMXTiledMap *mainBg = CCTMXTiledMap::create("dialog_style1.tmx"); + CCTMXTiledMap *mainBg = CCTMXTiledMap::create(CCString::createWithFormat("dialog_%s.tmx", CCUserDefault::sharedUserDefault()->getStringForKey(GAME_STYLE).c_str())->getCString()); float x = (CCDirector::sharedDirector()->getWinSize().width - mainBg->getContentSize().width) / 2.0f; float y = 40; mainBg->setPosition(ccp(x, y)); diff --git a/Classes/RPGMapEquipMenuLayer.cpp b/Classes/RPGMapEquipMenuLayer.cpp index 562052c..d1626a4 100644 --- a/Classes/RPGMapEquipMenuLayer.cpp +++ b/Classes/RPGMapEquipMenuLayer.cpp @@ -36,6 +36,11 @@ bool RPGMapEquipMenuLayer::init(cocos2d::CCDictionary *stringList, CppSQLite3DB this->m_itemsList = new CCArray(); this->m_itemsList->init(); + CCTMXTiledMap *mainBg = CCTMXTiledMap::create(CCString::createWithFormat("map_menu2_%s.tmx", CCUserDefault::sharedUserDefault()->getStringForKey(GAME_STYLE).c_str())->getCString()); + mainBg->setPosition(CCPointZero); + mainBg->setTag(kRPGMapEquipMenuLayerTagBg); + this->addChild(mainBg); + CCMenu *mainMenu = CCMenu::create(); mainMenu->setTag(kRPGMapEquipMenuLayerTagMainMenu); mainMenu->setAnchorPoint(CCPointZero); @@ -52,11 +57,6 @@ bool RPGMapEquipMenuLayer::init(cocos2d::CCDictionary *stringList, CppSQLite3DB mainMenu->addChild(menuBack); } - CCTMXTiledMap *mainBg = CCTMXTiledMap::create("map_menu2_style1.tmx"); - mainBg->setPosition(CCPointZero); - mainBg->setTag(kRPGMapEquipMenuLayerTagBg); - this->addChild(mainBg); - //显示上面的4个角色 float playerX = 200; CppSQLite3Query query = this->m_db->execQuery(PLAYER_QUERY); diff --git a/Classes/RPGMapItemsMenuLayer.cpp b/Classes/RPGMapItemsMenuLayer.cpp index 912cda9..73a85ca 100644 --- a/Classes/RPGMapItemsMenuLayer.cpp +++ b/Classes/RPGMapItemsMenuLayer.cpp @@ -36,6 +36,11 @@ bool RPGMapItemsMenuLayer::init(cocos2d::CCDictionary *stringList, CppSQLite3DB this->m_itemsList = new CCArray(); this->m_itemsList->init(); + CCTMXTiledMap *mainBg = CCTMXTiledMap::create(CCString::createWithFormat("map_menu3_%s.tmx", CCUserDefault::sharedUserDefault()->getStringForKey(GAME_STYLE).c_str())->getCString()); + mainBg->setPosition(CCPointZero); + mainBg->setTag(kRPGMapItemsMenuLayerTagBg); + this->addChild(mainBg); + CCMenu *mainMenu = CCMenu::create(); mainMenu->setTag(kRPGMapItemsMenuLayerTagMainMenu); mainMenu->setAnchorPoint(CCPointZero); @@ -52,11 +57,6 @@ bool RPGMapItemsMenuLayer::init(cocos2d::CCDictionary *stringList, CppSQLite3DB mainMenu->addChild(menuBack); } - CCTMXTiledMap *mainBg = CCTMXTiledMap::create("map_menu3_style1.tmx"); - mainBg->setPosition(CCPointZero); - mainBg->setTag(kRPGMapItemsMenuLayerTagBg); - this->addChild(mainBg); - CCTableView *tableView = CCTableView::create(this, CCSizeMake(900, 570)); tableView->setDirection(kCCScrollViewDirectionVertical); tableView->setPosition(ccp(80, 30)); @@ -257,7 +257,7 @@ void RPGMapItemsMenuLayer::onButton(cocos2d::CCObject *pSender, CCControlEvent e float height = 640; //临时背景 - CCTMXTiledMap *mainBg = CCTMXTiledMap::create("map_menu3_style1.tmx"); + CCTMXTiledMap *mainBg = CCTMXTiledMap::create(CCString::createWithFormat("map_menu3_%s.tmx", CCUserDefault::sharedUserDefault()->getStringForKey(GAME_STYLE).c_str())->getCString()); mainBg->setPosition(ccp(CCDirector::sharedDirector()->getWinSize().width / 2, CCDirector::sharedDirector()->getWinSize().height / 2)); mainBg->setAnchorPoint(ccp(0.5, 0.5)); mainBg->setTag(kRPGMapSceneLayerTagChoicePlayerMenuLayerBg); diff --git a/Classes/RPGMapMenuLayer.cpp b/Classes/RPGMapMenuLayer.cpp index f551472..3bfad75 100755 --- a/Classes/RPGMapMenuLayer.cpp +++ b/Classes/RPGMapMenuLayer.cpp @@ -45,6 +45,11 @@ bool RPGMapMenuLayer::init(CCDictionary* stringList, CppSQLite3DB* db, float wid // CCSpriteFrameCache::sharedSpriteFrameCache()->addSpriteFramesWithFile("main.plist"); + CCTMXTiledMap *mainBg = CCTMXTiledMap::create(CCString::createWithFormat("map_menu1_%s.tmx", CCUserDefault::sharedUserDefault()->getStringForKey(GAME_STYLE).c_str())->getCString()); + mainBg->setPosition(CCPointZero); + mainBg->setTag(kRPGMapMenuLayerTagMainBg); + this->addChild(mainBg); + CCMenu *mainMenu = CCMenu::create(); mainMenu->setTag(kRPGMapMenuLayerTagMainMenu); mainMenu->setAnchorPoint(CCPointZero); @@ -52,12 +57,6 @@ bool RPGMapMenuLayer::init(CCDictionary* stringList, CppSQLite3DB* db, float wid this->addChild(mainMenu); this->setMainMenuDefault(); - - CCTMXTiledMap *mainBg = CCTMXTiledMap::create("map_menu1_style1.tmx"); - mainBg->setPosition(CCPointZero); - mainBg->setTag(kRPGMapMenuLayerTagMainBg); - this->addChild(mainBg); - this->setDefaultInterface(); return true; diff --git a/Classes/RPGMapSceneLayer.cpp b/Classes/RPGMapSceneLayer.cpp index f318a48..bcb262e 100755 --- a/Classes/RPGMapSceneLayer.cpp +++ b/Classes/RPGMapSceneLayer.cpp @@ -597,7 +597,7 @@ void RPGMapSceneLayer::playerMoveEnd() saveDataObj->m_playerToY = toY; saveDataObj->m_playerDirection = playerDirection->getCString(); saveDataObj->m_gold = this->m_mapData.gold; - + saveDataObj->m_windowStyle = CCUserDefault::sharedUserDefault()->getStringForKey(GAME_STYLE); saveData(&this->m_db, saveDataObj); CCDirector::sharedDirector()->getTouchDispatcher()->removeDelegate(this); diff --git a/Classes/RPGMapSkillMenuLayer.cpp b/Classes/RPGMapSkillMenuLayer.cpp index 0ea90ff..d8a167b 100644 --- a/Classes/RPGMapSkillMenuLayer.cpp +++ b/Classes/RPGMapSkillMenuLayer.cpp @@ -39,6 +39,11 @@ bool RPGMapSkillMenuLayer::init(cocos2d::CCDictionary *stringList, CppSQLite3DB this->m_isDefault = true; + CCTMXTiledMap *mainBg = CCTMXTiledMap::create(CCString::createWithFormat("map_menu5_%s.tmx", CCUserDefault::sharedUserDefault()->getStringForKey(GAME_STYLE).c_str())->getCString()); + mainBg->setPosition(CCPointZero); + mainBg->setTag(kRPGMapSkillMenuLayerTagBg); + this->addChild(mainBg); + CCMenu *mainMenu = CCMenu::create(); mainMenu->setTag(kRPGMapSkillMenuLayerTagMainMenu); mainMenu->setAnchorPoint(CCPointZero); @@ -55,11 +60,6 @@ bool RPGMapSkillMenuLayer::init(cocos2d::CCDictionary *stringList, CppSQLite3DB mainMenu->addChild(menuBack); } - CCTMXTiledMap *mainBg = CCTMXTiledMap::create("map_menu5_style1.tmx"); - mainBg->setPosition(CCPointZero); - mainBg->setTag(kRPGMapSkillMenuLayerTagBg); - this->addChild(mainBg); - //显示上面的4个角色 float playerX = 200; CppSQLite3Query query = this->m_db->execQuery(PLAYER_QUERY); @@ -353,7 +353,7 @@ void RPGMapSkillMenuLayer::onButton(cocos2d::CCObject *pSender, CCControlEvent e float height = 640; //临时背景 - CCTMXTiledMap *mainBg = CCTMXTiledMap::create("map_menu3_style1.tmx"); + CCTMXTiledMap *mainBg = CCTMXTiledMap::create(CCString::createWithFormat("map_menu3_%s.tmx", CCUserDefault::sharedUserDefault()->getStringForKey(GAME_STYLE).c_str())->getCString()); mainBg->setPosition(ccp(CCDirector::sharedDirector()->getWinSize().width / 2, CCDirector::sharedDirector()->getWinSize().height / 2)); mainBg->setAnchorPoint(ccp(0.5, 0.5)); mainBg->setTag(kRPGMapSceneLayerTagChoicePlayerMenuLayerBg); diff --git a/Classes/RPGMapStatusMenuLayer.cpp b/Classes/RPGMapStatusMenuLayer.cpp index 7335b5f..1f5c974 100644 --- a/Classes/RPGMapStatusMenuLayer.cpp +++ b/Classes/RPGMapStatusMenuLayer.cpp @@ -38,6 +38,11 @@ bool RPGMapStatusMenuLayer::init(cocos2d::CCDictionary *stringList, CppSQLite3DB this->m_isDefault = true; + CCTMXTiledMap *mainBg = CCTMXTiledMap::create(CCString::createWithFormat("map_menu4_%s.tmx", CCUserDefault::sharedUserDefault()->getStringForKey(GAME_STYLE).c_str())->getCString()); + mainBg->setPosition(CCPointZero); + mainBg->setTag(kRPGMapStatusMenuLayerTagBg); + this->addChild(mainBg); + CCMenu *mainMenu = CCMenu::create(); mainMenu->setTag(kRPGMapStatusMenuLayerTagMainMenu); mainMenu->setAnchorPoint(CCPointZero); @@ -54,11 +59,6 @@ bool RPGMapStatusMenuLayer::init(cocos2d::CCDictionary *stringList, CppSQLite3DB mainMenu->addChild(menuBack); } - CCTMXTiledMap *mainBg = CCTMXTiledMap::create("map_menu4_style1.tmx"); - mainBg->setPosition(CCPointZero); - mainBg->setTag(kRPGMapStatusMenuLayerTagBg); - this->addChild(mainBg); - //显示上面的4个角色 float playerX = 200; CppSQLite3Query query = this->m_db->execQuery(PLAYER_QUERY); diff --git a/Classes/RPGStartSceneLayer.cpp b/Classes/RPGStartSceneLayer.cpp index c443bf7..17f0f63 100755 --- a/Classes/RPGStartSceneLayer.cpp +++ b/Classes/RPGStartSceneLayer.cpp @@ -40,7 +40,15 @@ bool RPGStartSceneLayer::init() this->m_stringList = CCDictionary::createWithContentsOfFileThreadSafe(languageFile.c_str()); this->m_stringList->retain(); - CCTextureCache::sharedTextureCache()->addImage("Window_b_00.png"); + //样式数据 + this->m_styleData.push_back(pair("style1", "样式1")); + this->m_styleData.push_back(pair("style2", "样式2")); + this->m_styleData.push_back(pair("style3", "样式3")); + + //使用数据库的当前样式 + RPGSaveData *saveDataObj = loadSaveData(&this->m_db); + CCLog("%s", saveDataObj->m_windowStyle.c_str()); + CCUserDefault::sharedUserDefault()->setStringForKey(GAME_STYLE, saveDataObj->m_windowStyle); //背景 OzgCCScrollBgNode *bg = OzgCCScrollBgNode::create("start_bg.png"); @@ -49,27 +57,7 @@ bool RPGStartSceneLayer::init() bg->setTag(kRPGStartSceneLayerTagBg); this->addChild(bg); - CCMenu *mainMenu = CCMenu::create(); - mainMenu->setAnchorPoint(CCPointZero); - mainMenu->setPosition(CCPointZero); - mainMenu->setTag(kRPGStartSceneLayerTagMenu); - this->addChild(mainMenu); - - CCString *menuItemSingleModeStr = (CCString*)this->m_stringList->objectForKey("menuitem_start"); - CCLabelTTF *menuItemSingleModeLabel = CCLabelTTF::create(OzgCCUtility::generalString(menuItemSingleModeStr->getCString()).c_str(), "FZCuYuan-M03S", 28, CCSizeMake(120, 40), kCCTextAlignmentCenter, kCCVerticalTextAlignmentCenter); - - CCString *menuItemOnLineModeStr = (CCString*)this->m_stringList->objectForKey("menuitem_delete"); - CCLabelTTF *menuItemOnLineModeLabel = CCLabelTTF::create(OzgCCUtility::generalString(menuItemOnLineModeStr->getCString()).c_str(), "FZCuYuan-M03S", 28, CCSizeMake(120, 40), kCCTextAlignmentCenter, kCCVerticalTextAlignmentCenter); - - CCMenuItemLabel *menuItemSingleMode = CCMenuItemLabel::create(menuItemSingleModeLabel, this, menu_selector(RPGStartSceneLayer::onMenu)); - menuItemSingleMode->setPosition(ccp(CCDirector::sharedDirector()->getWinSize().width / 2, 170)); - menuItemSingleMode->setTag(kRPGStartSceneLayerTagMenuItemStart); - mainMenu->addChild(menuItemSingleMode); - - CCMenuItemLabel *menuItemOnLineMode = CCMenuItemLabel::create(menuItemOnLineModeLabel, this, menu_selector(RPGStartSceneLayer::onMenu)); - menuItemOnLineMode->setPosition(ccp(CCDirector::sharedDirector()->getWinSize().width / 2, 110)); - menuItemOnLineMode->setTag(kRPGStartSceneLayerTagMenuItemDelete); - mainMenu->addChild(menuItemOnLineMode); + this->showMainMenu(); //背景音乐 if(!SimpleAudioEngine::sharedEngine()->isBackgroundMusicPlaying()) @@ -94,8 +82,9 @@ void RPGStartSceneLayer::onMenu(cocos2d::CCObject *pObject) switch (menuItem->getTag()) { - case kRPGStartSceneLayerTagMenuItemDelete: + case kRPGStartSceneLayerTagMainMenuItemRestart: { + //重新开始 SimpleAudioEngine::sharedEngine()->playEffect("audio_effect_btn.wav"); CCSize winSize = CCDirector::sharedDirector()->getWinSize(); @@ -104,13 +93,97 @@ void RPGStartSceneLayer::onMenu(cocos2d::CCObject *pObject) dialog->setTag(kRPGStartSceneLayerTagDialog); this->addChild(dialog); - CCMenu *mainMenu = (CCMenu*)this->getChildByTag(kRPGStartSceneLayerTagMenu); + CCMenu *mainMenu = (CCMenu*)this->getChildByTag(kRPGStartSceneLayerTagMainMenu); mainMenu->setEnabled(false); } break; + case kRPGStartSceneLayerTagMainMenuItemSettings: + { + //游戏设置 + SimpleAudioEngine::sharedEngine()->playEffect("audio_effect_btn.wav"); + + this->removeChildByTag(kRPGStartSceneLayerTagMainMenu, true); + this->showSettingsMenu(); + + } + break; + case kRPGStartSceneLayerTagSettingsBack: + { + //游戏设置里面的返回 + SimpleAudioEngine::sharedEngine()->playEffect("audio_effect_btn.wav"); + + this->removeChildByTag(kRPGStartSceneLayerTagSettingsMenu, true); + this->removeChildByTag(kRPGStartSceneLayerTagLabStyle, true); + this->removeChildByTag(kRPGStartSceneLayerTagLabCurrStyle, true); + this->showMainMenu(); + + } + break; + case kRPGStartSceneLayerTagSettingsRestore: + { + //点击了还原设置 + SimpleAudioEngine::sharedEngine()->playEffect("audio_effect_btn.wav"); + + //还原样式设置 + this->m_selectedStyleIndex = 1; + CCLabelTTF *labCurrStyleLabel = (CCLabelTTF*)this->getChildByTag(kRPGStartSceneLayerTagLabCurrStyle); + labCurrStyleLabel->setString(this->m_styleData[this->m_selectedStyleIndex].second.c_str()); + + //更新数据库 + RPGSaveData *saveDataObj = loadSaveData(&this->m_db); + saveDataObj->m_windowStyle = this->m_styleData[this->m_selectedStyleIndex].first; + saveData(&this->m_db, saveDataObj); + + //更新当前样式 + CCUserDefault::sharedUserDefault()->setStringForKey(GAME_STYLE, saveDataObj->m_windowStyle); + } + break; + case kRPGStartSceneLayerTagSettingsStyleLeft: + { + //点击了样式选择的<< + SimpleAudioEngine::sharedEngine()->playEffect("audio_effect_btn.wav"); + + this->m_selectedStyleIndex--; + if(this->m_selectedStyleIndex < 0) + this->m_selectedStyleIndex = 0; + + CCLabelTTF *labCurrStyleLabel = (CCLabelTTF*)this->getChildByTag(kRPGStartSceneLayerTagLabCurrStyle); + labCurrStyleLabel->setString(this->m_styleData[this->m_selectedStyleIndex].second.c_str()); + + //更新数据 + RPGSaveData *saveDataObj = loadSaveData(&this->m_db); + saveDataObj->m_windowStyle = this->m_styleData[this->m_selectedStyleIndex].first; + saveData(&this->m_db, saveDataObj); + + //更新当前样式 + CCUserDefault::sharedUserDefault()->setStringForKey(GAME_STYLE, saveDataObj->m_windowStyle); + } + break; + case kRPGStartSceneLayerTagSettingsStyleRight: + { + //点击了样式选择的>> + SimpleAudioEngine::sharedEngine()->playEffect("audio_effect_btn.wav"); + + this->m_selectedStyleIndex++; + int max = (int)this->m_styleData.size() - 1; + if(this->m_selectedStyleIndex > max) + this->m_selectedStyleIndex = max; + + CCLabelTTF *labCurrStyleLabel = (CCLabelTTF*)this->getChildByTag(kRPGStartSceneLayerTagLabCurrStyle); + labCurrStyleLabel->setString(this->m_styleData[this->m_selectedStyleIndex].second.c_str()); + + //更新数据 + RPGSaveData *saveDataObj = loadSaveData(&this->m_db); + saveDataObj->m_windowStyle = this->m_styleData[this->m_selectedStyleIndex].first; + saveData(&this->m_db, saveDataObj); + + //更新当前样式 + CCUserDefault::sharedUserDefault()->setStringForKey(GAME_STYLE, saveDataObj->m_windowStyle); + } + break; default: { - //kRPGStartSceneLayerTagMenuItemStart + //开始游戏 SimpleAudioEngine::sharedEngine()->playEffect("audio_start_btn.wav"); this->goToMapScene(); @@ -132,7 +205,7 @@ void RPGStartSceneLayer::onDialog(cocos2d::CCObject *pObject) { this->removeChildByTag(kRPGStartSceneLayerTagDialog, true); - CCMenu *mainMenu = (CCMenu*)this->getChildByTag(kRPGStartSceneLayerTagMenu); + CCMenu *mainMenu = (CCMenu*)this->getChildByTag(kRPGStartSceneLayerTagMainMenu); mainMenu->setEnabled(true); } break; @@ -145,12 +218,119 @@ void RPGStartSceneLayer::onDialog(cocos2d::CCObject *pObject) this->m_db.execDML("delete from items_existing"); this->m_db.execDML(GAME_INIT_SQL); + //默认设置 + CCUserDefault::sharedUserDefault()->setStringForKey(GAME_STYLE, this->m_styleData[1].first); + this->goToMapScene(); } break; } } +void RPGStartSceneLayer::showMainMenu() +{ + CCMenu *mainMenu = CCMenu::create(); + mainMenu->setAnchorPoint(CCPointZero); + mainMenu->setPosition(CCPointZero); + mainMenu->setTag(kRPGStartSceneLayerTagMainMenu); + this->addChild(mainMenu); + + CCString *menuStartStr = (CCString*)this->m_stringList->objectForKey("mainmenu_start"); + CCLabelTTF *menuStartLabel = CCLabelTTF::create(OzgCCUtility::generalString(menuStartStr->getCString()).c_str(), "FZCuYuan-M03S", 28, CCSizeMake(120, 40), kCCTextAlignmentCenter, kCCVerticalTextAlignmentCenter); + + CCString *menuRestartStr = (CCString*)this->m_stringList->objectForKey("mainmenu_restart"); + CCLabelTTF *menuRestartLabel = CCLabelTTF::create(OzgCCUtility::generalString(menuRestartStr->getCString()).c_str(), "FZCuYuan-M03S", 28, CCSizeMake(120, 40), kCCTextAlignmentCenter, kCCVerticalTextAlignmentCenter); + + CCString *menuSettingsStr = (CCString*)this->m_stringList->objectForKey("mainmenu_settings"); + CCLabelTTF *menuSettingsLabel = CCLabelTTF::create(OzgCCUtility::generalString(menuSettingsStr->getCString()).c_str(), "FZCuYuan-M03S", 28, CCSizeMake(120, 40), kCCTextAlignmentCenter, kCCVerticalTextAlignmentCenter); + + CCMenuItemLabel *menuStart = CCMenuItemLabel::create(menuStartLabel, this, menu_selector(RPGStartSceneLayer::onMenu)); + menuStart->setPosition(ccp(CCDirector::sharedDirector()->getWinSize().width / 2, 230)); + menuStart->setTag(kRPGStartSceneLayerTagMainMenuItemStart); + mainMenu->addChild(menuStart); + + CCMenuItemLabel *menuRestart = CCMenuItemLabel::create(menuRestartLabel, this, menu_selector(RPGStartSceneLayer::onMenu)); + menuRestart->setPosition(ccp(CCDirector::sharedDirector()->getWinSize().width / 2, 170)); + menuRestart->setTag(kRPGStartSceneLayerTagMainMenuItemRestart); + mainMenu->addChild(menuRestart); + + CCMenuItemLabel *menuSettings = CCMenuItemLabel::create(menuSettingsLabel, this, menu_selector(RPGStartSceneLayer::onMenu)); + menuSettings->setPosition(ccp(CCDirector::sharedDirector()->getWinSize().width / 2, 110)); + menuSettings->setTag(kRPGStartSceneLayerTagMainMenuItemSettings); + mainMenu->addChild(menuSettings); +} + +void RPGStartSceneLayer::showSettingsMenu() +{ + RPGSaveData *saveDataObj = loadSaveData(&this->m_db); + + CCMenu *settingsMenu = CCMenu::create(); + settingsMenu->setAnchorPoint(CCPointZero); + settingsMenu->setPosition(CCPointZero); + settingsMenu->setTag(kRPGStartSceneLayerTagSettingsMenu); + this->addChild(settingsMenu); + + //设置样式的标题 + CCString *labStyleStr = (CCString*)this->m_stringList->objectForKey("settingslab_style"); + CCLabelTTF *labStyleLabel = CCLabelTTF::create(OzgCCUtility::generalString(labStyleStr->getCString()).c_str(), "FZCuYuan-M03S", 28, CCSizeMake(120, 40), kCCTextAlignmentLeft, kCCVerticalTextAlignmentCenter); + labStyleLabel->setFontFillColor(ccc3(188, 188, 188)); + labStyleLabel->setTag(kRPGStartSceneLayerTagLabStyle); + labStyleLabel->setPosition(ccp(300, 550)); + this->addChild(labStyleLabel); + + //设置样式的按钮 + CCLabelTTF *menuStyleLeftLabel = CCLabelTTF::create("<<", "FZCuYuan-M03S", 28, CCSizeMake(120, 40), kCCTextAlignmentCenter, kCCVerticalTextAlignmentCenter); + CCMenuItemLabel *menuStyleLeft = CCMenuItemLabel::create(menuStyleLeftLabel, this, menu_selector(RPGStartSceneLayer::onMenu)); + menuStyleLeft->setPosition(ccp(450, 550)); + menuStyleLeft->setTag(kRPGStartSceneLayerTagSettingsStyleLeft); + settingsMenu->addChild(menuStyleLeft); + + CCLabelTTF *menuStyleRightLabel = CCLabelTTF::create(">>", "FZCuYuan-M03S", 28, CCSizeMake(120, 40), kCCTextAlignmentCenter, kCCVerticalTextAlignmentCenter); + CCMenuItemLabel *menuStyleRight = CCMenuItemLabel::create(menuStyleRightLabel, this, menu_selector(RPGStartSceneLayer::onMenu)); + menuStyleRight->setPosition(ccp(650, 550)); + menuStyleRight->setTag(kRPGStartSceneLayerTagSettingsStyleRight); + settingsMenu->addChild(menuStyleRight); + + //设置样式的当前使用样式 + CCString *labCurrStyleStr = NULL; + for (int i = 0; i < this->m_styleData.size(); i++) + { + pair item = this->m_styleData[i]; + if(strcmp(item.first.c_str(), saveDataObj->m_windowStyle.c_str()) == 0) + { + this->m_selectedStyleIndex = i; + labCurrStyleStr = CCString::create(item.second); + break; + } + } + if(labCurrStyleStr) + { + CCLabelTTF *labCurrStyleLabel = CCLabelTTF::create(OzgCCUtility::generalString(labCurrStyleStr->getCString()).c_str(), "FZCuYuan-M03S", 28, CCSizeMake(120, 40), kCCTextAlignmentCenter, kCCVerticalTextAlignmentCenter); + labCurrStyleLabel->setFontFillColor(ccc3(188, 188, 188)); + labCurrStyleLabel->setTag(kRPGStartSceneLayerTagLabCurrStyle); + labCurrStyleLabel->setPosition(ccp(550, 550)); + this->addChild(labCurrStyleLabel); + } + + //恢复默认 + CCString *menuRestoreStr = (CCString*)this->m_stringList->objectForKey("settingsmenu_restore"); + CCLabelTTF *menuRestoreLabel = CCLabelTTF::create(OzgCCUtility::generalString(menuRestoreStr->getCString()).c_str(), "FZCuYuan-M03S", 28, CCSizeMake(120, 40), kCCTextAlignmentLeft, kCCVerticalTextAlignmentCenter); + CCMenuItemLabel *menuRestore = CCMenuItemLabel::create(menuRestoreLabel, this, menu_selector(RPGStartSceneLayer::onMenu)); + menuRestore->setPosition(ccp(300, 170)); + menuRestore->setTag(kRPGStartSceneLayerTagSettingsRestore); + settingsMenu->addChild(menuRestore); + + //返回 + CCString *menuBackStr = (CCString*)this->m_stringList->objectForKey("settingsmenu_back"); + CCLabelTTF *menuBackLabel = CCLabelTTF::create(OzgCCUtility::generalString(menuBackStr->getCString()).c_str(), "FZCuYuan-M03S", 28, CCSizeMake(120, 40), kCCTextAlignmentLeft, kCCVerticalTextAlignmentCenter); + CCMenuItemLabel *menuBack = CCMenuItemLabel::create(menuBackLabel, this, menu_selector(RPGStartSceneLayer::onMenu)); + menuBack->setPosition(ccp(300, 100)); + menuBack->setTag(kRPGStartSceneLayerTagSettingsBack); + settingsMenu->addChild(menuBack); + +} + +//public void RPGStartSceneLayer::goToMapScene() { CCArray *loadTextures = CCArray::create(); @@ -165,7 +345,7 @@ void RPGStartSceneLayer::goToMapScene() loadTextures->addObject(CCString::create("actor117.png")); loadTextures->addObject(CCString::create("actor120.png")); - CCMenu *mainMenu = (CCMenu*)this->getChildByTag(kRPGStartSceneLayerTagMenu); + CCMenu *mainMenu = (CCMenu*)this->getChildByTag(kRPGStartSceneLayerTagMainMenu); mainMenu->setEnabled(false); CCScene *s = RPGLoadingSceneLayer::scene(loadTextures, NULL, "single_map"); diff --git a/Classes/RPGStartSceneLayer.h b/Classes/RPGStartSceneLayer.h index 1dd3d5a..942ae9a 100755 --- a/Classes/RPGStartSceneLayer.h +++ b/Classes/RPGStartSceneLayer.h @@ -15,21 +15,36 @@ enum RPGStartSceneLayerTag { kRPGStartSceneLayerTagBg = 1, - kRPGStartSceneLayerTagMenu = 2, - kRPGStartSceneLayerTagMenuItemStart = 3, - kRPGStartSceneLayerTagMenuItemDelete = 4, + kRPGStartSceneLayerTagMainMenu = 2, + kRPGStartSceneLayerTagMainMenuItemStart = 3, + kRPGStartSceneLayerTagMainMenuItemRestart = 4, + kRPGStartSceneLayerTagMainMenuItemSettings = 9, kRPGStartSceneLayerTagDialogOK = 5, kRPGStartSceneLayerTagDialogCancel = 6, - kRPGStartSceneLayerTagDialog = 7 + kRPGStartSceneLayerTagDialog = 7, + kRPGStartSceneLayerTagSettingsMenu = 8, + kRPGStartSceneLayerTagSettingsStyleLeft = 10, + kRPGStartSceneLayerTagSettingsStyleRight = 12, + kRPGStartSceneLayerTagSettingsRestore = 14, + kRPGStartSceneLayerTagSettingsBack = 13, + kRPGStartSceneLayerTagLabStyle = 11, + kRPGStartSceneLayerTagLabCurrStyle = 15 }; class RPGStartSceneLayer : public RPGBaseSceneLayer { private: + + vector< pair > m_styleData; + int m_selectedStyleIndex; + void onMenu(CCObject *pObject); void onDialog(CCObject *pObject); + void showMainMenu(); + void showSettingsMenu(); + public: RPGStartSceneLayer(); diff --git a/Resources/Window_a_00.png b/Resources/Window_a_00.png new file mode 100644 index 0000000..f4dfd4d Binary files /dev/null and b/Resources/Window_a_00.png differ diff --git a/Resources/Window_c_00.png b/Resources/Window_c_00.png new file mode 100644 index 0000000..4ecb634 Binary files /dev/null and b/Resources/Window_c_00.png differ diff --git a/Resources/alert_style1.tmx b/Resources/alert_style1.tmx index a289342..eaca43f 100755 --- a/Resources/alert_style1.tmx +++ b/Resources/alert_style1.tmx @@ -1,16 +1,16 @@ - - + + - eJzTYmBg0KIAqxDAlJg9av6o+ZTaQ6z5o3hgMACa9Ct1 + eJzjZmBg4B7Fo3gUj+IBwAD21Qxh - eJxjZWBgYKMR5gBiXgbaAYFR8wfcfNFR84e1+bJALE8jrADEAMynBMM= + eJxjZWBgYKMR5gBiXgbaAYFR80fNHzWfpubLArE8jbACEAMAkKcEmw== diff --git a/Resources/alert_style2.tmx b/Resources/alert_style2.tmx new file mode 100755 index 0000000..a289342 --- /dev/null +++ b/Resources/alert_style2.tmx @@ -0,0 +1,16 @@ + + + + + + + + eJzTYmBg0KIAqxDAlJg9av6o+ZTaQ6z5o3hgMACa9Ct1 + + + + + eJxjZWBgYKMR5gBiXgbaAYFR8wfcfNFR84e1+bJALE8jrADEAMynBMM= + + + diff --git a/Resources/alert_style3.tmx b/Resources/alert_style3.tmx new file mode 100755 index 0000000..c11584a --- /dev/null +++ b/Resources/alert_style3.tmx @@ -0,0 +1,16 @@ + + + + + + + + eJwTZmBgEB7Fo3gUj+IBwABKEBVh + + + + + eJxjZWBgYKMR5gBiUQbaAYFR80fNHzWfpubLArE8jbACEAMAU7YE6w== + + + diff --git a/Resources/battle_battlemenu_style1.tmx b/Resources/battle_battlemenu_style1.tmx index cc411f1..c837b4b 100644 --- a/Resources/battle_battlemenu_style1.tmx +++ b/Resources/battle_battlemenu_style1.tmx @@ -1,16 +1,16 @@ - - + + - eJwTZmBgEB7FgwYLUqhOkExMrF5i/SFDJAYA3+4MCQ== + eJwTYmBgEBrFo3iAMAAp0gtB - eJxjZWBgYCOAOYCYl4EwEBiB6kSJUCcxAtXJArEcAawAxAD7ngNx + eJxjZWBgYCOAOYBYlIEwEBhVN6oOqk4WiOUJYAUgBgBBfQN5 diff --git a/Resources/battle_battlemenu_style2.tmx b/Resources/battle_battlemenu_style2.tmx new file mode 100644 index 0000000..cc411f1 --- /dev/null +++ b/Resources/battle_battlemenu_style2.tmx @@ -0,0 +1,16 @@ + + + + + + + + eJwTZmBgEB7FgwYLUqhOkExMrF5i/SFDJAYA3+4MCQ== + + + + + eJxjZWBgYCOAOYCYl4EwEBiB6kSJUCcxAtXJArEcAawAxAD7ngNx + + + diff --git a/Resources/battle_battlemenu_style3.tmx b/Resources/battle_battlemenu_style3.tmx new file mode 100644 index 0000000..43b9943 --- /dev/null +++ b/Resources/battle_battlemenu_style3.tmx @@ -0,0 +1,16 @@ + + + + + + + + eJzjYmBg4BrFo3iAMADfaQZB + + + + + eJxjZWBgYCOAOYBYlIEwEBhVN6oOqk4WiOUJYAUgBgBBfQN5 + + + diff --git a/Resources/battle_menu_style1.tmx b/Resources/battle_menu_style1.tmx index db009e7..198765b 100644 --- a/Resources/battle_menu_style1.tmx +++ b/Resources/battle_menu_style1.tmx @@ -1,16 +1,16 @@ - - + + - eJztwwENAAAMw6AKmX+dt3ABkLBqqqrq6wG6tU7B + eJztwwENAAAMw6BqmH+xt3ABkLBqqqrq6wFFMzKh - eJztjzEKACAMA7tUXAQXR9H/v9L2CzaFDgnceuRURBqAbijIlYV/XILZNAbIlTX/yN5/F3trjb0xF3trjb0xF3trzT9u4wC4QFcW/vEBkFcLQQ== + eJztjzEKACAMA7tUHF0cRf//SusfEgiYg1uPJCOiAexlglos38YZGAawxQK50X/18F+NFgv/1Wix8F+NFosf/65yAzzAFsu38QJgNQuR diff --git a/Resources/battle_menu_style2.tmx b/Resources/battle_menu_style2.tmx new file mode 100644 index 0000000..db009e7 --- /dev/null +++ b/Resources/battle_menu_style2.tmx @@ -0,0 +1,16 @@ + + + + + + + + eJztwwENAAAMw6AKmX+dt3ABkLBqqqrq6wG6tU7B + + + + + eJztjzEKACAMA7tUXAQXR9H/v9L2CzaFDgnceuRURBqAbijIlYV/XILZNAbIlTX/yN5/F3trjb0xF3trjb0xF3trzT9u4wC4QFcW/vEBkFcLQQ== + + + diff --git a/Resources/battle_menu_style3.tmx b/Resources/battle_menu_style3.tmx new file mode 100644 index 0000000..cdddae2 --- /dev/null +++ b/Resources/battle_menu_style3.tmx @@ -0,0 +1,16 @@ + + + + + + + + eJztwwENAAAMw6CKmH+tt3ABkLBqqqrq6wH2RDhB + + + + + eJztjzkKACAMBNN4NIKNpcf/X2kCvkAjbLED0y47QUSSg1kNagTWPhbxoarNaesX9pG991vsxYK9b1vsxYK9b1vsxcI+dnU4uM7WBNY+bif2C0E= + + + diff --git a/Resources/battle_msg_style1.tmx b/Resources/battle_msg_style1.tmx index 7db2b56..8368a9d 100644 --- a/Resources/battle_msg_style1.tmx +++ b/Resources/battle_msg_style1.tmx @@ -3,14 +3,17 @@ + + + - eJzjYmBg4BrFNMcAgV4DhQ== + eJxzYmBgcBrFNMcAgVAXNQ== - eJxjZWBgYKMz5gBiUQb6AwEglgVieTpjBSAGANIPBHw= + eJxzZWBgcKMz9gBiXwb6gwAgjgXiODrjBCAGAMlsE9g= diff --git a/Resources/battle_msg_style2.tmx b/Resources/battle_msg_style2.tmx new file mode 100644 index 0000000..7db2b56 --- /dev/null +++ b/Resources/battle_msg_style2.tmx @@ -0,0 +1,16 @@ + + + + + + + + eJzjYmBg4BrFNMcAgV4DhQ== + + + + + eJxjZWBgYKMz5gBiUQb6AwEglgVieTpjBSAGANIPBHw= + + + diff --git a/Resources/battle_msg_style3.tmx b/Resources/battle_msg_style3.tmx new file mode 100644 index 0000000..b1a887c --- /dev/null +++ b/Resources/battle_msg_style3.tmx @@ -0,0 +1,16 @@ + + + + + + + + eJzjZmBg4B7FNMcAwVoD3w== + + + + + eJxjZWBgYKMz5gBiXgb6AwEglgVieTpjBSAGAMqPBHQ= + + + diff --git a/Resources/battle_select_style1.tmx b/Resources/battle_select_style1.tmx index 7c1ef2d..e3747bd 100644 --- a/Resources/battle_select_style1.tmx +++ b/Resources/battle_select_style1.tmx @@ -1,16 +1,16 @@ - - + + - eJwTZmBgEMaDefBgfPoIYWqbOWre4DGP2mmGFmmQWPME6WSeIBomxTxiMCnhR23zqJ3+ZIjAtCizRjEmBgDuqhsb + eJwTZmBgEB7Fo3gUj+JRPIpJxAANEx2x - eJxjZWBgYCMCsxOBOYCYl4F6QGDUvGFvnuioeaPmjZpHN/NkgVieSlgBiAGf4gVQ + eJxjZWBgYKMS5gBiUQbqAYFR80bNGzVv1LxR86hmniwQy1MJKwAxAIGpBX8= diff --git a/Resources/battle_select_style2.tmx b/Resources/battle_select_style2.tmx new file mode 100644 index 0000000..7c1ef2d --- /dev/null +++ b/Resources/battle_select_style2.tmx @@ -0,0 +1,16 @@ + + + + + + + + eJwTZmBgEMaDefBgfPoIYWqbOWre4DGP2mmGFmmQWPME6WSeIBomxTxiMCnhR23zqJ3+ZIjAtCizRjEmBgDuqhsb + + + + + eJxjZWBgYCMCsxOBOYCYl4F6QGDUvGFvnuioeaPmjZpHN/NkgVieSlgBiAGf4gVQ + + + diff --git a/Resources/battle_select_style3.tmx b/Resources/battle_select_style3.tmx new file mode 100644 index 0000000..d382f36 --- /dev/null +++ b/Resources/battle_select_style3.tmx @@ -0,0 +1,16 @@ + + + + + + + + eJzjYmBg4BrFo3gUj+JRPIpJxAD8UA+h + + + + + eJxjZWBgYKMS5gBiUQbqAYFR80bNGzVv1LxR86hmniwQy1MJKwAxAIGpBX8= + + + diff --git a/Resources/db.sys b/Resources/db.sys index 5aaf7a3..b01d837 100755 Binary files a/Resources/db.sys and b/Resources/db.sys differ diff --git a/Resources/dialog_style1.tmx b/Resources/dialog_style1.tmx index 379e138..49ef9d0 100755 --- a/Resources/dialog_style1.tmx +++ b/Resources/dialog_style1.tmx @@ -1,7 +1,7 @@ - - + + diff --git a/Resources/dialog_style2.tmx b/Resources/dialog_style2.tmx new file mode 100755 index 0000000..379e138 --- /dev/null +++ b/Resources/dialog_style2.tmx @@ -0,0 +1,16 @@ + + + + + + + + eJzjZmBg4B7Fo3gUj+JRPIpH8SgexVTDAB2HGck= + + + + + eJxjZWBgYBshmAOIRRlGDhBgGPXvcAaj/h3eYNS/wxuMRP/KArH8CMEKQAwAj/8J1Q== + + + diff --git a/Resources/dialog_style3.tmx b/Resources/dialog_style3.tmx new file mode 100755 index 0000000..31ce6b9 --- /dev/null +++ b/Resources/dialog_style3.tmx @@ -0,0 +1,16 @@ + + + + + + + + eJwTZmBgEB7Fo3gUj+JRPIpH8SgexVTDACwvLIk= + + + + + eJxjZWBgYBshmAOIRRlGDhBgGPXvcAaj/h3eYNS/wxuMRP/KArH8CMEKQAwAj/8J1Q== + + + diff --git a/Resources/map_menu1_style1.tmx b/Resources/map_menu1_style1.tmx index a894dba..97cad38 100755 --- a/Resources/map_menu1_style1.tmx +++ b/Resources/map_menu1_style1.tmx @@ -1,16 +1,16 @@ - - + + - eJztw0ENAAAMA6HzU//+pmF/SFg1VVVVVVVVVVVV3w+e5ZMw + eJztwzENAAAMBKGb37/gaugOCaumqqqqqqqqqqrq+wEYEV3B - eJztzzEKgDAQBdFtIjaCjWXQ+5/SeIRPmgnOhy0H9rWq2ha6fVybaI9aa+e4a6LVy57erNXLnt6s1cue3qzVy57erNXLnt6s1cue3qzVy57erNXLnt6s1cue3qzVy57erNXLnt6s1cue3qz9m7ePuxe6Z+Lnr30BS1oSeQ== + eJztjzEKAkEUxX6zYrmNpej9T+nuFRxIGEjglYGXY2YeG+157VhwX7MX5/z/ecW1qJdxLeplXIt6GdeiXsa1qJdxLeplXIt6GdeiXsa1qJdxLeplXIt6GdeiXsa1qJdxLeplXIt6GdeiXsa1qJdxLeplXIvV3ve1z0b7Lny+3R8fMxOp diff --git a/Resources/map_menu1_style2.tmx b/Resources/map_menu1_style2.tmx new file mode 100755 index 0000000..a894dba --- /dev/null +++ b/Resources/map_menu1_style2.tmx @@ -0,0 +1,16 @@ + + + + + + + + eJztw0ENAAAMA6HzU//+pmF/SFg1VVVVVVVVVVVV3w+e5ZMw + + + + + eJztzzEKgDAQBdFtIjaCjWXQ+5/SeIRPmgnOhy0H9rWq2ha6fVybaI9aa+e4a6LVy57erNXLnt6s1cue3qzVy57erNXLnt6s1cue3qzVy57erNXLnt6s1cue3qzVy57erNXLnt6s1cue3qz9m7ePuxe6Z+Lnr30BS1oSeQ== + + + diff --git a/Resources/map_menu1_style3.tmx b/Resources/map_menu1_style3.tmx new file mode 100755 index 0000000..d91e517 --- /dev/null +++ b/Resources/map_menu1_style3.tmx @@ -0,0 +1,16 @@ + + + + + + + + eJztw0ENAAAMA6HzUP9ep2F/SFg1VVVVVVVVVVVV3w8lkrIh + + + + + eJztjzEKwzAAxLyk7dK9S0r//8o6X4hBwiDBjYLTMcZ4bLTX3DH3vLHLfY+9+Iz7n1dci3oZ16JexrWol3Et6mVci3oZ16JexrWol3Et6mVci3oZ16JexrWol3Et6mVci3oZ16JexrWol3Et6mVci3oZ16JexrVY7T3nvhvtt/D5cv/NexN+ + + + diff --git a/Resources/map_menu2_style1.tmx b/Resources/map_menu2_style1.tmx index ca527cc..6ffa9aa 100755 --- a/Resources/map_menu2_style1.tmx +++ b/Resources/map_menu2_style1.tmx @@ -1,16 +1,16 @@ - - + + - eJztwzENAEAIBLDTwvr418eKgJ9Im7STtKqq3z5PL1VVVVVVVV0HugBaeA== + eJztw0ENAAAMA6HTUP9ip2F/SFg1VVVVVVVVVVVV3w9AgqjB - eJztmTEKgDAUQ/9SdRFcHNXe/5TWwRsEDUkeZA3/DaX9tFXVZJJlZC0ftoqvMo6++99DfEh8tXH0PUZOk/SRVtj3y9M3kwb9vmK/39DzxZeL+HL1oYkvVx+a+HL1oYkvVx+a+HL1oXn3wQuUDu5D55mPeX9j3wfZYT9vaOKrTXy1ia828dUmvto4+rr9D95Beh9k + eJztmLEJwDAQA79xSJkmZYj3nzI/hAJCfwdqha8wWF5VdQzJ2blrDlfhmwy+2eCbzUTfp/MOye6s0r5flH3u7yv3+6E+H75e4OvVpwZfrz41+Hr1qcHXq08Nvl59atR7cIv73Pege/hvzwbfbPDNBt9s8M0G32wm+jrvtz/24AeEuiDQ diff --git a/Resources/map_menu2_style2.tmx b/Resources/map_menu2_style2.tmx new file mode 100755 index 0000000..ca527cc --- /dev/null +++ b/Resources/map_menu2_style2.tmx @@ -0,0 +1,16 @@ + + + + + + + + eJztwzENAEAIBLDTwvr418eKgJ9Im7STtKqq3z5PL1VVVVVVVV0HugBaeA== + + + + + eJztmTEKgDAUQ/9SdRFcHNXe/5TWwRsEDUkeZA3/DaX9tFXVZJJlZC0ftoqvMo6++99DfEh8tXH0PUZOk/SRVtj3y9M3kwb9vmK/39DzxZeL+HL1oYkvVx+a+HL1oYkvVx+a+HL1oXn3wQuUDu5D55mPeX9j3wfZYT9vaOKrTXy1ia828dUmvto4+rr9D95Beh9k + + + diff --git a/Resources/map_menu2_style3.tmx b/Resources/map_menu2_style3.tmx new file mode 100755 index 0000000..330dc80 --- /dev/null +++ b/Resources/map_menu2_style3.tmx @@ -0,0 +1,16 @@ + + + + + + + + eJztwzENAAAMBKHb37/faugOCaumqqqqqqqqqqrq+wH9Emch + + + + + eJztmb0KgDAMBrNUXQQXwUXt+z+lLfgGyRC+3MGtoQcd+tPMbCniNjytDofRqwy92tCrTcXee/gWsQ+bxZ5f5rw1qdHnq7lf9sB50VxGrwd6c0GvD3pzQa8PenNBrw96czF7I++D/Z/3JHWuL/I+mF3e27WhVxt6taFXG3q1oVebir3V/gc/ODgg0A== + + + diff --git a/Resources/map_menu3_style1.tmx b/Resources/map_menu3_style1.tmx index 34752cb..2b901e5 100755 --- a/Resources/map_menu3_style1.tmx +++ b/Resources/map_menu3_style1.tmx @@ -1,16 +1,16 @@ - - + + - eJztw0ENAAAMA6HzU//+pmF/SFg1VVVVVVVVVVVV3w+e5ZMw + eJztw0ENAAAMA6HTUP9ip2F/SFg1VVVVVVVVVVVV3w9AgqjB - eJztz7ENACEQxMBNeBGSEL6g/yq5OnweyQV4JPmaNKudPlb8JfOXzV82f9n8ZfOXzV82f9n8ZfOXzV82f9n8ZfOXzV82f9n8ZfOXrePvX50m3eoBOiUOKw== + eJztz8EJACEQxdB/cfEi2MCi/Vfp1JHJgxSQkeRr0qxW+tjxl8xfNn/Z/GXzl81fNn/Z/GXzl81fNn/Z/GXzl81fNn/Z/GXzl81fto6/f3WadKsHZkwM+w== diff --git a/Resources/map_menu3_style2.tmx b/Resources/map_menu3_style2.tmx new file mode 100755 index 0000000..34752cb --- /dev/null +++ b/Resources/map_menu3_style2.tmx @@ -0,0 +1,16 @@ + + + + + + + + eJztw0ENAAAMA6HzU//+pmF/SFg1VVVVVVVVVVVV3w+e5ZMw + + + + + eJztz7ENACEQxMBNeBGSEL6g/yq5OnweyQV4JPmaNKudPlb8JfOXzV82f9n8ZfOXzV82f9n8ZfOXzV82f9n8ZfOXzV82f9n8ZfOXrePvX50m3eoBOiUOKw== + + + diff --git a/Resources/map_menu3_style3.tmx b/Resources/map_menu3_style3.tmx new file mode 100755 index 0000000..532ca77 --- /dev/null +++ b/Resources/map_menu3_style3.tmx @@ -0,0 +1,17 @@ + + + + + + + + + eJztwzENAAAMBKGb37/gaugOCaumqqqqqqqqqqrq+wEYEV3B + + + + + eJztz7ENACEQxMBNeBGSEL6g/yq5OnweyQV4JPmaNKudPlb8JfOXzV82f9n8ZfOXzV82f9n8ZfOXzV82f9n8ZfOXzV82f9n8ZfOXrePvX50m3eoBOiUOKw== + + + diff --git a/Resources/map_menu4_style1.tmx b/Resources/map_menu4_style1.tmx index 9eeb9fa..268eb43 100755 --- a/Resources/map_menu4_style1.tmx +++ b/Resources/map_menu4_style1.tmx @@ -1,16 +1,17 @@ - - + + + - eJztwzENAEAIBLDTwvr418eKgJ9Im7STtKqq3z5PL1VVVVVVVV0HugBaeA== + eJztw0ENAAAMA6HzUP9ep2F/SFg1VVVVVVVVVVVV3w8lkrIh - eJztmDsKgDAQRLfx0wg2go2S+5/SeIa86JCdB9MO+4rENVNEzEmy1myRhz3sOzIZfY+/h/gQ+45NRt+r5k6SUjMFu7+8fYto6P1K/ftGz2dfLeyr1UdjX60+Gvtq9dH08FXeT0sHX++TOtD/g+q+Z7C+dB+NfbX6aN75yPOm7kvfL/bVwr5t2FcL+7ZhXy3s24Z9taDfXwrc1+M95wFush8r + eJzt2TEKgDAQRNFpojaCjWCj5v6nNDnDRhiy/8O04isCQYukJcm2tl15OoR35vDOHd65y+i9294kq21FY+8v/Xmr6fr7nRqX+/m4hDcSXq/wxsLrFd5YGb39fvqYrv7g5T7pE+c3Fl6v8MbC6xXeWHi9whsLr1d4Y+H1KqN35P/BKv/vOR9xCx/X diff --git a/Resources/map_menu4_style2.tmx b/Resources/map_menu4_style2.tmx new file mode 100755 index 0000000..9eeb9fa --- /dev/null +++ b/Resources/map_menu4_style2.tmx @@ -0,0 +1,16 @@ + + + + + + + + eJztwzENAEAIBLDTwvr418eKgJ9Im7STtKqq3z5PL1VVVVVVVV0HugBaeA== + + + + + eJztmDsKgDAQRLfx0wg2go2S+5/SeIa86JCdB9MO+4rENVNEzEmy1myRhz3sOzIZfY+/h/gQ+45NRt+r5k6SUjMFu7+8fYto6P1K/ftGz2dfLeyr1UdjX60+Gvtq9dH08FXeT0sHX++TOtD/g+q+Z7C+dB+NfbX6aN75yPOm7kvfL/bVwr5t2FcL+7ZhXy3s24Z9taDfXwrc1+M95wFush8r + + + diff --git a/Resources/map_menu4_style3.tmx b/Resources/map_menu4_style3.tmx new file mode 100755 index 0000000..89a0dd1 --- /dev/null +++ b/Resources/map_menu4_style3.tmx @@ -0,0 +1,17 @@ + + + + + + + + + eJztw0ENAAAMA6HzUP9ep2F/SFg1VVVVVVVVVVVV3w8lkrIh + + + + + eJzt2UsKhTAQRNGe+Jk8cCI4UbP/Vb5kDdVCkb4Xaho4oBB0iYi1yPa+M+p0BN6Zwzt3eOeuovfue4us9S2Re38Z522my75fjefll3hedlfgVcLrFV4tvF7h1aroHffTx3TtAy/3SZ94f7XweoVXC69XeLXweoVXC69XeLXwelXRm/l/sIX/95w/w4MgFw== + + + diff --git a/Resources/map_menu5_style1.tmx b/Resources/map_menu5_style1.tmx index ec7c4c8..87abe21 100755 --- a/Resources/map_menu5_style1.tmx +++ b/Resources/map_menu5_style1.tmx @@ -1,16 +1,17 @@ - - + + + - eJztwzENAEAIBLDTwvr418eKgJ9Im7STtKqq3z5PL1VVVVVVVV0HugBaeA== + eJztw8EJAAAMA6GD7L9zZ+hfwVVTVVVVVVVVVVX1/QDUoRwh - eJzt2TsKgDAABNFtojaCjWDj5/6nNIW1VTA4uwPb+5oQSZE0mGyqm+XTonjJOXrX3h/xYfGyc/TudYfJrrqiNneX8QfL/YpdvOziZRcvu3jZxcvO7X9wU7zkHL1u51W83OJlFy+7eNnFy87R2/J98HzW+x3w7X3wBg8OFYQ= + eJzt2bEJgEAUBNFNTgxNDEX7r9LfhAiz82ALmODgw60kW8n22ZkeR+wls5fNXrbG3mt2l+yZrfx/93hffaPx/drLZS+bvWz2stnLZi+bvWz2stnLZi+bvWz2stnL1vg/+ALT6xaN diff --git a/Resources/map_menu5_style2.tmx b/Resources/map_menu5_style2.tmx new file mode 100755 index 0000000..ec7c4c8 --- /dev/null +++ b/Resources/map_menu5_style2.tmx @@ -0,0 +1,16 @@ + + + + + + + + eJztwzENAEAIBLDTwvr418eKgJ9Im7STtKqq3z5PL1VVVVVVVV0HugBaeA== + + + + + eJzt2TsKgDAABNFtojaCjWDj5/6nNIW1VTA4uwPb+5oQSZE0mGyqm+XTonjJOXrX3h/xYfGyc/TudYfJrrqiNneX8QfL/YpdvOziZRcvu3jZxcvO7X9wU7zkHL1u51W83OJlFy+7eNnFy87R2/J98HzW+x3w7X3wBg8OFYQ= + + + diff --git a/Resources/map_menu5_style3.tmx b/Resources/map_menu5_style3.tmx new file mode 100755 index 0000000..18a2d59 --- /dev/null +++ b/Resources/map_menu5_style3.tmx @@ -0,0 +1,17 @@ + + + + + + + + + eJztwzENAAAMBKHb37/faugOCaumqqqqqqqqqqrq+wH9Emch + + + + + eJzt2bENgEAQA0EnD4QkhI/ov0qujvWO5AI2O+lWkqNk1+xJjzv2ktnLZi9bY++evSX7Zmt2lsz7is1eNnvZ7GWzl81eNnvZ7GWzl81eNnvZ7GWzl81etsb/4A+B5xZT + + + diff --git a/Resources/scene_start_cns.plist b/Resources/scene_start_cns.plist index 85200ca..f6f2aff 100755 --- a/Resources/scene_start_cns.plist +++ b/Resources/scene_start_cns.plist @@ -8,9 +8,17 @@ 取消 confirm_delete 确定删除之前的进度吗? - menuitem_start + mainmenu_start 继续游戏 - menuitem_delete + mainmenu_restart 重新开始 + mainmenu_settings + 游戏设置 + settingslab_style + 选择样式 + settingsmenu_restore + 恢复默认 + settingsmenu_back + 返回 diff --git a/Resources/select_player_style1.tmx b/Resources/select_player_style1.tmx index 7c7aa98..30a8291 100644 --- a/Resources/select_player_style1.tmx +++ b/Resources/select_player_style1.tmx @@ -1,16 +1,17 @@ - - + + + - eJwTYWBgEKEhZkHDtLRr1D7KzKS3/9DNxoYBiMELMQ== + eJwTZmBgEB7Fo3iQYgB6AAx5 - eJxjZWBgYKcT5gBiUQb6AYlR+6hunywQy9MJKwAxAIfVBNs= + eJxjZWBgYKMT5gBiXgb6AYFR+6hunywQy9MJKwAxAPSCBIE= diff --git a/Resources/select_player_style2.tmx b/Resources/select_player_style2.tmx new file mode 100644 index 0000000..7c7aa98 --- /dev/null +++ b/Resources/select_player_style2.tmx @@ -0,0 +1,16 @@ + + + + + + + + eJwTYWBgEKEhZkHDtLRr1D7KzKS3/9DNxoYBiMELMQ== + + + + + eJxjZWBgYKcT5gBiUQb6AYlR+6hunywQy9MJKwAxAIfVBNs= + + + diff --git a/Resources/select_player_style3.tmx b/Resources/select_player_style3.tmx new file mode 100644 index 0000000..6739d33 --- /dev/null +++ b/Resources/select_player_style3.tmx @@ -0,0 +1,17 @@ + + + + + + + + + eJwTYmBgEBrFo3iQYgCcIQvR + + + + + eJxjZWBgYKMT5gBiXgb6AYFR+6hunywQy9MJKwAxAPSCBIE= + + + diff --git a/proj.ios/OzgGameRPG.xcodeproj/project.pbxproj b/proj.ios/OzgGameRPG.xcodeproj/project.pbxproj index 073f1b5..02cee6c 100644 --- a/proj.ios/OzgGameRPG.xcodeproj/project.pbxproj +++ b/proj.ios/OzgGameRPG.xcodeproj/project.pbxproj @@ -255,6 +255,32 @@ 89CB7D8B18E9A8BF00A5921B /* RPGMapDialogLayer.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 89CB7D8918E9A8BF00A5921B /* RPGMapDialogLayer.cpp */; }; 89D2A12C190B431F00EDD50B /* skill_cure.plist in Resources */ = {isa = PBXBuildFile; fileRef = 89D2A12A190B431F00EDD50B /* skill_cure.plist */; }; 89D2A12D190B431F00EDD50B /* skill_fire.plist in Resources */ = {isa = PBXBuildFile; fileRef = 89D2A12B190B431F00EDD50B /* skill_fire.plist */; }; + 89E555FD191BC63A00D49FAB /* Window_a_00.png in Resources */ = {isa = PBXBuildFile; fileRef = 89E555FB191BC63A00D49FAB /* Window_a_00.png */; }; + 89E555FE191BC63A00D49FAB /* Window_c_00.png in Resources */ = {isa = PBXBuildFile; fileRef = 89E555FC191BC63A00D49FAB /* Window_c_00.png */; }; + 89E55617191BDD4F00D49FAB /* alert_style2.tmx in Resources */ = {isa = PBXBuildFile; fileRef = 89E555FF191BDD4F00D49FAB /* alert_style2.tmx */; }; + 89E55618191BDD4F00D49FAB /* alert_style3.tmx in Resources */ = {isa = PBXBuildFile; fileRef = 89E55600191BDD4F00D49FAB /* alert_style3.tmx */; }; + 89E55619191BDD4F00D49FAB /* battle_battlemenu_style2.tmx in Resources */ = {isa = PBXBuildFile; fileRef = 89E55601191BDD4F00D49FAB /* battle_battlemenu_style2.tmx */; }; + 89E5561A191BDD4F00D49FAB /* battle_battlemenu_style3.tmx in Resources */ = {isa = PBXBuildFile; fileRef = 89E55602191BDD4F00D49FAB /* battle_battlemenu_style3.tmx */; }; + 89E5561B191BDD4F00D49FAB /* battle_menu_style2.tmx in Resources */ = {isa = PBXBuildFile; fileRef = 89E55603191BDD4F00D49FAB /* battle_menu_style2.tmx */; }; + 89E5561C191BDD4F00D49FAB /* battle_menu_style3.tmx in Resources */ = {isa = PBXBuildFile; fileRef = 89E55604191BDD4F00D49FAB /* battle_menu_style3.tmx */; }; + 89E5561D191BDD4F00D49FAB /* battle_msg_style2.tmx in Resources */ = {isa = PBXBuildFile; fileRef = 89E55605191BDD4F00D49FAB /* battle_msg_style2.tmx */; }; + 89E5561E191BDD4F00D49FAB /* battle_msg_style3.tmx in Resources */ = {isa = PBXBuildFile; fileRef = 89E55606191BDD4F00D49FAB /* battle_msg_style3.tmx */; }; + 89E5561F191BDD4F00D49FAB /* battle_select_style2.tmx in Resources */ = {isa = PBXBuildFile; fileRef = 89E55607191BDD4F00D49FAB /* battle_select_style2.tmx */; }; + 89E55620191BDD4F00D49FAB /* battle_select_style3.tmx in Resources */ = {isa = PBXBuildFile; fileRef = 89E55608191BDD4F00D49FAB /* battle_select_style3.tmx */; }; + 89E55621191BDD4F00D49FAB /* dialog_style2.tmx in Resources */ = {isa = PBXBuildFile; fileRef = 89E55609191BDD4F00D49FAB /* dialog_style2.tmx */; }; + 89E55622191BDD4F00D49FAB /* dialog_style3.tmx in Resources */ = {isa = PBXBuildFile; fileRef = 89E5560A191BDD4F00D49FAB /* dialog_style3.tmx */; }; + 89E55623191BDD4F00D49FAB /* map_menu1_style2.tmx in Resources */ = {isa = PBXBuildFile; fileRef = 89E5560B191BDD4F00D49FAB /* map_menu1_style2.tmx */; }; + 89E55624191BDD4F00D49FAB /* map_menu1_style3.tmx in Resources */ = {isa = PBXBuildFile; fileRef = 89E5560C191BDD4F00D49FAB /* map_menu1_style3.tmx */; }; + 89E55625191BDD4F00D49FAB /* map_menu2_style2.tmx in Resources */ = {isa = PBXBuildFile; fileRef = 89E5560D191BDD4F00D49FAB /* map_menu2_style2.tmx */; }; + 89E55626191BDD4F00D49FAB /* map_menu2_style3.tmx in Resources */ = {isa = PBXBuildFile; fileRef = 89E5560E191BDD4F00D49FAB /* map_menu2_style3.tmx */; }; + 89E55627191BDD4F00D49FAB /* map_menu3_style2.tmx in Resources */ = {isa = PBXBuildFile; fileRef = 89E5560F191BDD4F00D49FAB /* map_menu3_style2.tmx */; }; + 89E55628191BDD4F00D49FAB /* map_menu3_style3.tmx in Resources */ = {isa = PBXBuildFile; fileRef = 89E55610191BDD4F00D49FAB /* map_menu3_style3.tmx */; }; + 89E55629191BDD4F00D49FAB /* map_menu4_style2.tmx in Resources */ = {isa = PBXBuildFile; fileRef = 89E55611191BDD4F00D49FAB /* map_menu4_style2.tmx */; }; + 89E5562A191BDD4F00D49FAB /* map_menu4_style3.tmx in Resources */ = {isa = PBXBuildFile; fileRef = 89E55612191BDD4F00D49FAB /* map_menu4_style3.tmx */; }; + 89E5562B191BDD4F00D49FAB /* map_menu5_style2.tmx in Resources */ = {isa = PBXBuildFile; fileRef = 89E55613191BDD4F00D49FAB /* map_menu5_style2.tmx */; }; + 89E5562C191BDD4F00D49FAB /* map_menu5_style3.tmx in Resources */ = {isa = PBXBuildFile; fileRef = 89E55614191BDD4F00D49FAB /* map_menu5_style3.tmx */; }; + 89E5562D191BDD4F00D49FAB /* select_player_style2.tmx in Resources */ = {isa = PBXBuildFile; fileRef = 89E55615191BDD4F00D49FAB /* select_player_style2.tmx */; }; + 89E5562E191BDD4F00D49FAB /* select_player_style3.tmx in Resources */ = {isa = PBXBuildFile; fileRef = 89E55616191BDD4F00D49FAB /* select_player_style3.tmx */; }; 89E63C7518ED83C900BDD04F /* actor5_0.png in Resources */ = {isa = PBXBuildFile; fileRef = 89E63C6B18ED83C900BDD04F /* actor5_0.png */; }; 89E63C7618ED83C900BDD04F /* actor5_1.png in Resources */ = {isa = PBXBuildFile; fileRef = 89E63C6C18ED83C900BDD04F /* actor5_1.png */; }; 89E63C7718ED83C900BDD04F /* actor5_2.png in Resources */ = {isa = PBXBuildFile; fileRef = 89E63C6D18ED83C900BDD04F /* actor5_2.png */; }; @@ -891,6 +917,32 @@ 89CB7D8A18E9A8BF00A5921B /* RPGMapDialogLayer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RPGMapDialogLayer.h; path = ../Classes/RPGMapDialogLayer.h; sourceTree = ""; }; 89D2A12A190B431F00EDD50B /* skill_cure.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = skill_cure.plist; sourceTree = ""; }; 89D2A12B190B431F00EDD50B /* skill_fire.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = skill_fire.plist; sourceTree = ""; }; + 89E555FB191BC63A00D49FAB /* Window_a_00.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Window_a_00.png; sourceTree = ""; }; + 89E555FC191BC63A00D49FAB /* Window_c_00.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Window_c_00.png; sourceTree = ""; }; + 89E555FF191BDD4F00D49FAB /* alert_style2.tmx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = alert_style2.tmx; sourceTree = ""; }; + 89E55600191BDD4F00D49FAB /* alert_style3.tmx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = alert_style3.tmx; sourceTree = ""; }; + 89E55601191BDD4F00D49FAB /* battle_battlemenu_style2.tmx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = battle_battlemenu_style2.tmx; sourceTree = ""; }; + 89E55602191BDD4F00D49FAB /* battle_battlemenu_style3.tmx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = battle_battlemenu_style3.tmx; sourceTree = ""; }; + 89E55603191BDD4F00D49FAB /* battle_menu_style2.tmx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = battle_menu_style2.tmx; sourceTree = ""; }; + 89E55604191BDD4F00D49FAB /* battle_menu_style3.tmx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = battle_menu_style3.tmx; sourceTree = ""; }; + 89E55605191BDD4F00D49FAB /* battle_msg_style2.tmx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = battle_msg_style2.tmx; sourceTree = ""; }; + 89E55606191BDD4F00D49FAB /* battle_msg_style3.tmx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = battle_msg_style3.tmx; sourceTree = ""; }; + 89E55607191BDD4F00D49FAB /* battle_select_style2.tmx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = battle_select_style2.tmx; sourceTree = ""; }; + 89E55608191BDD4F00D49FAB /* battle_select_style3.tmx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = battle_select_style3.tmx; sourceTree = ""; }; + 89E55609191BDD4F00D49FAB /* dialog_style2.tmx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = dialog_style2.tmx; sourceTree = ""; }; + 89E5560A191BDD4F00D49FAB /* dialog_style3.tmx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = dialog_style3.tmx; sourceTree = ""; }; + 89E5560B191BDD4F00D49FAB /* map_menu1_style2.tmx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = map_menu1_style2.tmx; sourceTree = ""; }; + 89E5560C191BDD4F00D49FAB /* map_menu1_style3.tmx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = map_menu1_style3.tmx; sourceTree = ""; }; + 89E5560D191BDD4F00D49FAB /* map_menu2_style2.tmx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = map_menu2_style2.tmx; sourceTree = ""; }; + 89E5560E191BDD4F00D49FAB /* map_menu2_style3.tmx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = map_menu2_style3.tmx; sourceTree = ""; }; + 89E5560F191BDD4F00D49FAB /* map_menu3_style2.tmx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = map_menu3_style2.tmx; sourceTree = ""; }; + 89E55610191BDD4F00D49FAB /* map_menu3_style3.tmx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = map_menu3_style3.tmx; sourceTree = ""; }; + 89E55611191BDD4F00D49FAB /* map_menu4_style2.tmx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = map_menu4_style2.tmx; sourceTree = ""; }; + 89E55612191BDD4F00D49FAB /* map_menu4_style3.tmx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = map_menu4_style3.tmx; sourceTree = ""; }; + 89E55613191BDD4F00D49FAB /* map_menu5_style2.tmx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = map_menu5_style2.tmx; sourceTree = ""; }; + 89E55614191BDD4F00D49FAB /* map_menu5_style3.tmx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = map_menu5_style3.tmx; sourceTree = ""; }; + 89E55615191BDD4F00D49FAB /* select_player_style2.tmx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = select_player_style2.tmx; sourceTree = ""; }; + 89E55616191BDD4F00D49FAB /* select_player_style3.tmx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = select_player_style3.tmx; sourceTree = ""; }; 89E63C6B18ED83C900BDD04F /* actor5_0.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = actor5_0.png; sourceTree = ""; }; 89E63C6C18ED83C900BDD04F /* actor5_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = actor5_1.png; sourceTree = ""; }; 89E63C6D18ED83C900BDD04F /* actor5_2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = actor5_2.png; sourceTree = ""; }; @@ -2452,7 +2504,11 @@ 890F1B5A1902E284002F2769 /* attack40.plist */, 890F1B5B1902E284002F2769 /* attack40.png */, 8936C3B418F6D72100AE709E /* select_player_style1.tmx */, + 89E55615191BDD4F00D49FAB /* select_player_style2.tmx */, + 89E55616191BDD4F00D49FAB /* select_player_style3.tmx */, 8909856F18F253DE0021AE26 /* battle_msg_style1.tmx */, + 89E55605191BDD4F00D49FAB /* battle_msg_style2.tmx */, + 89E55606191BDD4F00D49FAB /* battle_msg_style3.tmx */, 8988A4DD18F42BDC004277ED /* audio_battle_attack1.wav */, 8988A4DE18F42BDC004277ED /* audio_battle_attack2.wav */, 89426220190FE50B002CA822 /* audio_skill_cure.wav */, @@ -2464,23 +2520,43 @@ 896BAEE418EF04CF006581FD /* audio_battle_menu.wav */, 896BAEE518EF04CF006581FD /* audio_battle_start.wav */, 9E5C5F6D18EE59BB00A68C36 /* battle_menu_style1.tmx */, + 89E55603191BDD4F00D49FAB /* battle_menu_style2.tmx */, + 89E55604191BDD4F00D49FAB /* battle_menu_style3.tmx */, 891DEB7719054276005337E5 /* battle_select_style1.tmx */, + 89E55607191BDD4F00D49FAB /* battle_select_style2.tmx */, + 89E55608191BDD4F00D49FAB /* battle_select_style3.tmx */, 8999051C18F17E6C00012A0E /* battle_battlemenu_style1.tmx */, + 89E55601191BDD4F00D49FAB /* battle_battlemenu_style2.tmx */, + 89E55602191BDD4F00D49FAB /* battle_battlemenu_style3.tmx */, 89EA57C018EAF2CB00A10956 /* battle_bg.png */, 89EA57BC18EAF1EC00A10956 /* monsters.plist */, 89EA57BD18EAF1EC00A10956 /* monsters.png */, 89CB7D8718E9A87700A5921B /* dialog_style1.tmx */, + 89E55609191BDD4F00D49FAB /* dialog_style2.tmx */, + 89E5560A191BDD4F00D49FAB /* dialog_style3.tmx */, 89CB7D7C18E9A47800A5921B /* map_menu1_style1.tmx */, + 89E5560B191BDD4F00D49FAB /* map_menu1_style2.tmx */, + 89E5560C191BDD4F00D49FAB /* map_menu1_style3.tmx */, 89CB7D7D18E9A47800A5921B /* map_menu2_style1.tmx */, + 89E5560D191BDD4F00D49FAB /* map_menu2_style2.tmx */, + 89E5560E191BDD4F00D49FAB /* map_menu2_style3.tmx */, 89CB7D7E18E9A47800A5921B /* map_menu3_style1.tmx */, + 89E5560F191BDD4F00D49FAB /* map_menu3_style2.tmx */, + 89E55610191BDD4F00D49FAB /* map_menu3_style3.tmx */, 9E427D0418EBBA9F00DA4E79 /* map_menu4_style1.tmx */, + 89E55611191BDD4F00D49FAB /* map_menu4_style2.tmx */, + 89E55612191BDD4F00D49FAB /* map_menu4_style3.tmx */, 89B2115A18FAAC3B0019F01C /* map_menu5_style1.tmx */, + 89E55613191BDD4F00D49FAB /* map_menu5_style2.tmx */, + 89E55614191BDD4F00D49FAB /* map_menu5_style3.tmx */, 89F5D14E18E7C5E5009D703C /* db.sys */, 89F5D12C18E7C5DD009D703C /* joystick.plist */, 89F5D12D18E7C5DD009D703C /* joystick.png */, 89F5D12E18E7C5DD009D703C /* main.plist */, 89F5D12F18E7C5DD009D703C /* main.png */, 8960C17E18E7D0BD0075EF99 /* alert_style1.tmx */, + 89E555FF191BDD4F00D49FAB /* alert_style2.tmx */, + 89E55600191BDD4F00D49FAB /* alert_style3.tmx */, 89F5D13018E7C5DD009D703C /* map_01.tmx */, 89F5D13118E7C5DD009D703C /* map_02.tmx */, 89F5D13218E7C5DD009D703C /* map_03.tmx */, @@ -2490,7 +2566,9 @@ 89F5D13918E7C5DD009D703C /* scene_map_cns.plist */, 89F5D13A18E7C5DD009D703C /* scene_start_cns.plist */, 89F5D13B18E7C5DD009D703C /* start_bg.png */, + 89E555FB191BC63A00D49FAB /* Window_a_00.png */, 89F5D13C18E7C5DD009D703C /* Window_b_00.png */, + 89E555FC191BC63A00D49FAB /* Window_c_00.png */, 89F5D12018E7C5CC009D703C /* audio_battle.mp3 */, 89F5D12118E7C5CC009D703C /* audio_effect_btn.wav */, 89F5D12218E7C5CC009D703C /* audio_map_01.mp3 */, @@ -2604,6 +2682,7 @@ buildActionMask = 2147483647; files = ( 890F1B651902E284002F2769 /* attack30.png in Resources */, + 89E55619191BDD4F00D49FAB /* battle_battlemenu_style2.tmx in Resources */, 89F5D14718E7C5DD009D703C /* map.png in Resources */, 8999051D18F17E6C00012A0E /* battle_battlemenu_style1.tmx in Resources */, 89F5D11C18E7C5C0009D703C /* actor114.png in Resources */, @@ -2630,6 +2709,7 @@ 89F5D14F18E7C5E5009D703C /* db.sys in Resources */, 896BAEE718EF04CF006581FD /* audio_battle_menu.wav in Resources */, 15C156991683138E00D239F2 /* Default.png in Resources */, + 89E5561F191BDD4F00D49FAB /* battle_select_style2.tmx in Resources */, 89F5D13F18E7C5DD009D703C /* main.plist in Resources */, 89F5D14018E7C5DD009D703C /* main.png in Resources */, 890F1B611902E284002F2769 /* attack10.png in Resources */, @@ -2639,8 +2719,12 @@ 89F5D14218E7C5DD009D703C /* map_02.tmx in Resources */, 89F5D14D18E7C5DD009D703C /* Window_b_00.png in Resources */, 9E427D0518EBBA9F00DA4E79 /* map_menu4_style1.tmx in Resources */, + 89E55622191BDD4F00D49FAB /* dialog_style3.tmx in Resources */, 89F5D13E18E7C5DD009D703C /* joystick.png in Resources */, + 89E55620191BDD4F00D49FAB /* battle_select_style3.tmx in Resources */, + 89E5562D191BDD4F00D49FAB /* select_player_style2.tmx in Resources */, 89E63C7818ED83C900BDD04F /* actor5_3.png in Resources */, + 89E55627191BDD4F00D49FAB /* map_menu3_style2.tmx in Resources */, 89F5D10718E7C5C0009D703C /* actor4_1.png in Resources */, 89CB7D8018E9A47800A5921B /* map_menu2_style1.tmx in Resources */, 89E63C7E18ED83C900BDD04F /* actor8_4.png in Resources */, @@ -2648,16 +2732,20 @@ 89FD46CD190EA54300EF34C6 /* audio_use_items.wav in Resources */, 89F5D12B18E7C5CC009D703C /* audio_start.mp3 in Resources */, 89D2A12C190B431F00EDD50B /* skill_cure.plist in Resources */, + 89E5562C191BDD4F00D49FAB /* map_menu5_style3.tmx in Resources */, 15C1569A1683138E00D239F2 /* Default@2x.png in Resources */, 89E63C7718ED83C900BDD04F /* actor5_2.png in Resources */, + 89E5562B191BDD4F00D49FAB /* map_menu5_style2.tmx in Resources */, 89CB7D7F18E9A47800A5921B /* map_menu1_style1.tmx in Resources */, 89F5D12A18E7C5CC009D703C /* audio_map_03.mp3 in Resources */, 89B2115B18FAAC3B0019F01C /* map_menu5_style1.tmx in Resources */, + 89E5561E191BDD4F00D49FAB /* battle_msg_style3.tmx in Resources */, 890F1B5D1902E284002F2769 /* attack2.ExportJson in Resources */, 89E63C7D18ED83C900BDD04F /* actor8_3.png in Resources */, 89F5D11A18E7C5C0009D703C /* actor111.png in Resources */, 89E63C7B18ED83C900BDD04F /* actor8_1.png in Resources */, 15C1569B1683138E00D239F2 /* Icon-57.png in Resources */, + 89E55623191BDD4F00D49FAB /* map_menu1_style2.tmx in Resources */, 15C1569C1683138E00D239F2 /* Icon-72.png in Resources */, 89EA57BE18EAF1EC00A10956 /* monsters.plist in Resources */, 890F1B661902E284002F2769 /* attack40.plist in Resources */, @@ -2668,11 +2756,18 @@ 890F1B671902E284002F2769 /* attack40.png in Resources */, 89F5D13D18E7C5DD009D703C /* joystick.plist in Resources */, 89E63C7518ED83C900BDD04F /* actor5_0.png in Resources */, + 89E5561C191BDD4F00D49FAB /* battle_menu_style3.tmx in Resources */, 15C1569E1683138E00D239F2 /* Icon-144.png in Resources */, 89F5D10F18E7C5C0009D703C /* actor7_4.png in Resources */, + 89E5561A191BDD4F00D49FAB /* battle_battlemenu_style3.tmx in Resources */, 9E5C5F6E18EE59BB00A68C36 /* battle_menu_style1.tmx in Resources */, + 89E55628191BDD4F00D49FAB /* map_menu3_style3.tmx in Resources */, + 89E55621191BDD4F00D49FAB /* dialog_style2.tmx in Resources */, 89426221190FE50B002CA822 /* audio_skill_cure.wav in Resources */, + 89E55626191BDD4F00D49FAB /* map_menu2_style3.tmx in Resources */, + 89E555FD191BC63A00D49FAB /* Window_a_00.png in Resources */, 8905D0C1190CC5E70031F27E /* use_item.plist in Resources */, + 89E55618191BDD4F00D49FAB /* alert_style3.tmx in Resources */, 1AC3623516D47C5C000847F2 /* fonts in Resources */, 893D34D41906B01100BFE2C5 /* attack_damage.plist in Resources */, 89F5D14118E7C5DD009D703C /* map_01.tmx in Resources */, @@ -2681,16 +2776,25 @@ 89F5D12918E7C5CC009D703C /* audio_map_02.mp3 in Resources */, 46C59AD317641FF300F43DC3 /* AudioEngine.lua in Resources */, 89F5D12818E7C5CC009D703C /* audio_map_01.mp3 in Resources */, + 89E55625191BDD4F00D49FAB /* map_menu2_style2.tmx in Resources */, 89F5D10918E7C5C0009D703C /* actor4_3.png in Resources */, 8909857018F253DE0021AE26 /* battle_msg_style1.tmx in Resources */, 890F1B5F1902E284002F2769 /* attack4.ExportJson in Resources */, + 89E5562E191BDD4F00D49FAB /* select_player_style3.tmx in Resources */, 89F5D14318E7C5DD009D703C /* map_03.tmx in Resources */, 890F1B641902E284002F2769 /* attack30.plist in Resources */, + 89E5561D191BDD4F00D49FAB /* battle_msg_style2.tmx in Resources */, 89F5D10818E7C5C0009D703C /* actor4_2.png in Resources */, + 89E55617191BDD4F00D49FAB /* alert_style2.tmx in Resources */, + 89E55624191BDD4F00D49FAB /* map_menu1_style3.tmx in Resources */, 89E63C7918ED83C900BDD04F /* actor5_4.png in Resources */, 89F5D14818E7C5DD009D703C /* scene_battle_cns.plist in Resources */, 890F1B601902E284002F2769 /* attack10.plist in Resources */, + 89E555FE191BC63A00D49FAB /* Window_c_00.png in Resources */, + 89E5561B191BDD4F00D49FAB /* battle_menu_style2.tmx in Resources */, + 89E55629191BDD4F00D49FAB /* map_menu4_style2.tmx in Resources */, 89E63C7618ED83C900BDD04F /* actor5_1.png in Resources */, + 89E5562A191BDD4F00D49FAB /* map_menu4_style3.tmx in Resources */, 89F5D14918E7C5DD009D703C /* scene_loading_cns.plist in Resources */, 89D2A12D190B431F00EDD50B /* skill_fire.plist in Resources */, 89F5D11E18E7C5C0009D703C /* actor117.png in Resources */, diff --git a/proj.ios/OzgGameRPG.xcodeproj/project.xcworkspace/xcuserdata/ouzhigang.xcuserdatad/UserInterfaceState.xcuserstate b/proj.ios/OzgGameRPG.xcodeproj/project.xcworkspace/xcuserdata/ouzhigang.xcuserdatad/UserInterfaceState.xcuserstate index 7eff1a5..52ed4a0 100644 Binary files a/proj.ios/OzgGameRPG.xcodeproj/project.xcworkspace/xcuserdata/ouzhigang.xcuserdatad/UserInterfaceState.xcuserstate and b/proj.ios/OzgGameRPG.xcodeproj/project.xcworkspace/xcuserdata/ouzhigang.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/proj.ios/OzgGameRPG.xcodeproj/xcuserdata/ouzhigang.xcuserdatad/xcschemes/xcschememanagement.plist b/proj.ios/OzgGameRPG.xcodeproj/xcuserdata/ouzhigang.xcuserdatad/xcschemes/xcschememanagement.plist index 7e089a0..f782be1 100644 --- a/proj.ios/OzgGameRPG.xcodeproj/xcuserdata/ouzhigang.xcuserdatad/xcschemes/xcschememanagement.plist +++ b/proj.ios/OzgGameRPG.xcodeproj/xcuserdata/ouzhigang.xcuserdatad/xcschemes/xcschememanagement.plist @@ -7,7 +7,7 @@ OzgGameRPG.xcscheme orderHint - 1 + 0 SuppressBuildableAutocreation diff --git a/如发现启动时就马上崩了的话,请在模拟器删除本游戏然后重新编译.txt b/如发现启动时就马上崩了的话,请在模拟器删除本游戏然后重新编译.txt new file mode 100644 index 0000000..e69de29