mirror of
https://github.com/wu736139669/OzgGameRPG.git
synced 2026-08-05 06:24:38 +00:00
解决win32的乱码问题
This commit is contained in:
@@ -306,7 +306,7 @@ void RPGMapEquipMenuLayer::setPlayerEquip(int dataId)
|
|||||||
{
|
{
|
||||||
addLab(this, kRPGMapEquipMenuLayerTagEquipArms, CCString::createWithFormat(((CCString*)this->m_stringList->objectForKey("menu_equip_arms"))->getCString(), query.getStringField("arms_name")), 26, ccp(600, 405));
|
addLab(this, kRPGMapEquipMenuLayerTagEquipArms, CCString::createWithFormat(((CCString*)this->m_stringList->objectForKey("menu_equip_arms"))->getCString(), query.getStringField("arms_name")), 26, ccp(600, 405));
|
||||||
|
|
||||||
CCControlButton *btnRemoveArms = CCControlButton::create("卸掉", "Arial", 26);
|
CCControlButton *btnRemoveArms = CCControlButton::create(((CCString*)this->m_stringList->objectForKey("menu_equip_unset"))->getCString(), "Arial", 26);
|
||||||
btnRemoveArms->setPosition(ccp(700, 405));
|
btnRemoveArms->setPosition(ccp(700, 405));
|
||||||
btnRemoveArms->setTitleColorForState(ccc3(177, 177, 177), CCControlStateNormal);
|
btnRemoveArms->setTitleColorForState(ccc3(177, 177, 177), CCControlStateNormal);
|
||||||
btnRemoveArms->setTag(kRPGMapEquipMenuLayerTagBtnRemoveArms);
|
btnRemoveArms->setTag(kRPGMapEquipMenuLayerTagBtnRemoveArms);
|
||||||
@@ -320,7 +320,7 @@ void RPGMapEquipMenuLayer::setPlayerEquip(int dataId)
|
|||||||
{
|
{
|
||||||
addLab(this, kRPGMapEquipMenuLayerTagEquipArmor, CCString::createWithFormat(((CCString*)this->m_stringList->objectForKey("menu_equip_armor"))->getCString(), query.getStringField("armor_name")), 26, ccp(600, 320));
|
addLab(this, kRPGMapEquipMenuLayerTagEquipArmor, CCString::createWithFormat(((CCString*)this->m_stringList->objectForKey("menu_equip_armor"))->getCString(), query.getStringField("armor_name")), 26, ccp(600, 320));
|
||||||
|
|
||||||
CCControlButton *btnRemoveArmor = CCControlButton::create("卸掉", "Arial", 26);
|
CCControlButton *btnRemoveArmor = CCControlButton::create(((CCString*)this->m_stringList->objectForKey("menu_equip_unset"))->getCString(), "Arial", 26);
|
||||||
btnRemoveArmor->setPosition(ccp(700, 320));
|
btnRemoveArmor->setPosition(ccp(700, 320));
|
||||||
btnRemoveArmor->setTitleColorForState(ccc3(177, 177, 177), CCControlStateNormal);
|
btnRemoveArmor->setTitleColorForState(ccc3(177, 177, 177), CCControlStateNormal);
|
||||||
btnRemoveArmor->setTag(kRPGMapEquipMenuLayerTagBtnRemoveArmor);
|
btnRemoveArmor->setTag(kRPGMapEquipMenuLayerTagBtnRemoveArmor);
|
||||||
|
|||||||
@@ -41,9 +41,9 @@ bool RPGStartSceneLayer::init()
|
|||||||
this->m_stringList->retain();
|
this->m_stringList->retain();
|
||||||
|
|
||||||
//样式数据
|
//样式数据
|
||||||
this->m_styleData.push_back(pair<string, string>("style1", "样式1"));
|
this->m_styleData.push_back(pair<string, string>("style1", ((CCString*)this->m_stringList->objectForKey("settingsmenu_style01"))->getCString()));
|
||||||
this->m_styleData.push_back(pair<string, string>("style2", "样式2"));
|
this->m_styleData.push_back(pair<string, string>("style2", ((CCString*)this->m_stringList->objectForKey("settingsmenu_style02"))->getCString()));
|
||||||
this->m_styleData.push_back(pair<string, string>("style3", "样式3"));
|
this->m_styleData.push_back(pair<string, string>("style3", ((CCString*)this->m_stringList->objectForKey("settingsmenu_style03"))->getCString()));
|
||||||
|
|
||||||
//使用数据库的当前样式
|
//使用数据库的当前样式
|
||||||
RPGSaveData *saveDataObj = loadSaveData(&this->m_db);
|
RPGSaveData *saveDataObj = loadSaveData(&this->m_db);
|
||||||
|
|||||||
@@ -9,7 +9,8 @@ ozg game — RPG Demo
|
|||||||
声音文件来自 http://www.66rpg.com/type.php?t=17
|
声音文件来自 http://www.66rpg.com/type.php?t=17
|
||||||
|
|
||||||
|
|
||||||
目前只部署了ios、mac平台。
|
目前部署了ios、mac、win32平台。
|
||||||
|
win32平台下需要将Classes文件夹里面的所有文件的编码转为GBK
|
||||||
|
|
||||||
游戏第一次启动的时候会把数据库复制到可写文件夹,若数据库结构因为一些改动发生了变化,需要把旧的数据库删除。
|
游戏第一次启动的时候会把数据库复制到可写文件夹,若数据库结构因为一些改动发生了变化,需要把旧的数据库删除。
|
||||||
|
|
||||||
|
|||||||
@@ -76,6 +76,8 @@
|
|||||||
<string>武器:%s</string>
|
<string>武器:%s</string>
|
||||||
<key>menu_equip_armor</key>
|
<key>menu_equip_armor</key>
|
||||||
<string>防具:%s</string>
|
<string>防具:%s</string>
|
||||||
|
<key>menu_equip_unset</key>
|
||||||
|
<string>卸掉</string>
|
||||||
<key>npc_dialog_buy</key>
|
<key>npc_dialog_buy</key>
|
||||||
<string>买入</string>
|
<string>买入</string>
|
||||||
<key>npc_dialog_buy_msg</key>
|
<key>npc_dialog_buy_msg</key>
|
||||||
|
|||||||
@@ -28,5 +28,11 @@
|
|||||||
<string>开</string>
|
<string>开</string>
|
||||||
<key>settingsmenu_audio_off</key>
|
<key>settingsmenu_audio_off</key>
|
||||||
<string>关</string>
|
<string>关</string>
|
||||||
|
<key>settingsmenu_style01</key>
|
||||||
|
<string>样式1</string>
|
||||||
|
<key>settingsmenu_style02</key>
|
||||||
|
<string>样式2</string>
|
||||||
|
<key>settingsmenu_style03</key>
|
||||||
|
<string>样式3</string>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|||||||
@@ -0,0 +1,41 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>IDESourceControlProjectFavoriteDictionaryKey</key>
|
||||||
|
<false/>
|
||||||
|
<key>IDESourceControlProjectIdentifier</key>
|
||||||
|
<string>BE783F00-5C7D-4F2B-BBA1-1933C415D2DE</string>
|
||||||
|
<key>IDESourceControlProjectName</key>
|
||||||
|
<string>OzgGameRPG</string>
|
||||||
|
<key>IDESourceControlProjectOriginsDictionary</key>
|
||||||
|
<dict>
|
||||||
|
<key>49362472-CDB7-4896-8E37-80DA1C167755</key>
|
||||||
|
<string>https://github.com/ouzhigang/OzgGameRPG.git</string>
|
||||||
|
</dict>
|
||||||
|
<key>IDESourceControlProjectPath</key>
|
||||||
|
<string>proj.ios/OzgGameRPG.xcodeproj/project.xcworkspace</string>
|
||||||
|
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
|
||||||
|
<dict>
|
||||||
|
<key>49362472-CDB7-4896-8E37-80DA1C167755</key>
|
||||||
|
<string>../../..</string>
|
||||||
|
</dict>
|
||||||
|
<key>IDESourceControlProjectURL</key>
|
||||||
|
<string>https://github.com/ouzhigang/OzgGameRPG.git</string>
|
||||||
|
<key>IDESourceControlProjectVersion</key>
|
||||||
|
<integer>110</integer>
|
||||||
|
<key>IDESourceControlProjectWCCIdentifier</key>
|
||||||
|
<string>49362472-CDB7-4896-8E37-80DA1C167755</string>
|
||||||
|
<key>IDESourceControlProjectWCConfigurations</key>
|
||||||
|
<array>
|
||||||
|
<dict>
|
||||||
|
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
|
||||||
|
<string>public.vcs.git</string>
|
||||||
|
<key>IDESourceControlWCCIdentifierKey</key>
|
||||||
|
<string>49362472-CDB7-4896-8E37-80DA1C167755</string>
|
||||||
|
<key>IDESourceControlWCCName</key>
|
||||||
|
<string>OzgGameRPG</string>
|
||||||
|
</dict>
|
||||||
|
</array>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
BIN
Binary file not shown.
BIN
Binary file not shown.
Reference in New Issue
Block a user