Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
扩展升级菜单及装备页面翻译_1
Browse files Browse the repository at this point in the history
  • Loading branch information
TYHH10 authored and TYHH10 committed Jul 7, 2024
1 parent 27a3317 commit 6b5f9cf
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/mod/pop/popmgr_extensions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4045,7 +4045,7 @@ namespace Mod::Pop::PopMgr_Extensions
SelectExtraLoadoutItemsInfoHandler *handler = new SelectExtraLoadoutItemsInfoHandler(player);
IBaseMenu *menu = menus->GetDefaultStyle()->CreateMenu(handler, g_Ext.GetIdentity());

menu->SetDefaultTitle(CFmtStr("Extra loadout items (%s)", g_aPlayerClassNames_NonLocalized[id]));
menu->SetDefaultTitle(CFmtStr("自定义物品 (%s)", g_aPlayerClassNames_NonLocalized[id]));
menu->SetMenuOptionFlags(MENUFLAG_BUTTON_EXIT);

for (size_t i = 0; i < state.m_ExtraLoadoutItems.size(); i++) {
Expand Down Expand Up @@ -4103,7 +4103,7 @@ namespace Mod::Pop::PopMgr_Extensions
SelectExtraLoadoutItemsClassHandler *handler = new SelectExtraLoadoutItemsClassHandler(player, autoHide);
IBaseMenu *menu = menus->GetDefaultStyle()->CreateMenu(handler, g_Ext.GetIdentity());

menu->SetDefaultTitle("Extra loadout items");
menu->SetDefaultTitle("自定义物品");
menu->SetMenuOptionFlags(MENUFLAG_BUTTON_EXIT);

bool has_class[TF_CLASS_COUNT] = {0};
Expand Down Expand Up @@ -4158,7 +4158,7 @@ namespace Mod::Pop::PopMgr_Extensions
SelectExtraLoadoutItemsHandler *handler = new SelectExtraLoadoutItemsHandler(player, autoHide);
IBaseMenu *menu = menus->GetDefaultStyle()->CreateMenu(handler, g_Ext.GetIdentity());

menu->SetDefaultTitle(CFmtStr("Extra loadout items (%s)", g_aPlayerClassNames_NonLocalized[class_index]));
menu->SetDefaultTitle(CFmtStr("自定义物品 (%s)", g_aPlayerClassNames_NonLocalized[class_index]));
menu->SetMenuOptionFlags(MENUFLAG_BUTTON_EXIT);

int wave = TFObjectiveResource()->m_nMannVsMachineWaveCount;
Expand Down Expand Up @@ -4229,24 +4229,24 @@ namespace Mod::Pop::PopMgr_Extensions
player->GetSteamID(&steamid);
if (!state.m_BoughtLoadoutItems[steamid].count(itemId)) {
char buf[256];
snprintf(buf, sizeof(buf), "Buy ($%d)", item.cost);
snprintf(buf, sizeof(buf), " ($%d)", item.cost);
ItemDrawInfo info1(buf, player->GetCurrency() >= item.cost ? ITEMDRAW_DEFAULT : ITEMDRAW_DISABLED);
menu->AppendItem("Buy", info1);
}

if (state.m_BoughtLoadoutItems[steamid].count(itemId)) {
if (state.m_SelectedLoadoutItems[steamid].count(itemId)) {
ItemDrawInfo info1("Unequip", ITEMDRAW_DEFAULT);
menu->AppendItem("Unequip", info1);
menu->AppendItem("取消装备", info1);
}
else {
ItemDrawInfo info1("Equip", ITEMDRAW_DEFAULT);
menu->AppendItem("Equip", info1);
menu->AppendItem("装备", info1);
}

if (item.allow_refund) {
char buf[256];
snprintf(buf, sizeof(buf), "Sell ($%d)", item.cost);
snprintf(buf, sizeof(buf), " ($%d)", item.cost);
ItemDrawInfo info2("Sell", ITEMDRAW_DEFAULT);
menu->AppendItem("Sell", info2);
}
Expand Down

0 comments on commit 6b5f9cf

Please sign in to comment.