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

Commit

Permalink
更改编码格式为UTF-8,修正一处翻译
Browse files Browse the repository at this point in the history
  • Loading branch information
TYHH10 authored and TYHH10 committed Jul 9, 2024
1 parent aaf1e32 commit b0b7cce
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 68 deletions.
2 changes: 1 addition & 1 deletion src/mod/attr/custom_attributes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8331,7 +8331,7 @@ namespace Mod::Attr::Custom_Attributes
if (item_def != nullptr)
format_str.insert(0, CFmtStr("\n%s:\n\n", GetItemNameForDisplay(item_def)));
else
format_str.insert(0, "\n人物属:\n\n");
format_str.insert(0, "\n人物属性:\n\n");

added_item_name = true;
}
Expand Down
32 changes: 16 additions & 16 deletions src/mod/item/item_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,28 +18,28 @@ extern std::map<int, std::string> g_AttribnamesShort;
static const char *loadoutStrings[] =
{
// Weapons & Equipment
"翋挕", // LOADOUT_POSITION_PRIMARY = 0,
"萵挕", // LOADOUT_POSITION_SECONDARY,
"輪桵挕", // LOADOUT_POSITION_MELEE,
"主武器", // LOADOUT_POSITION_PRIMARY = 0,
"副武器", // LOADOUT_POSITION_SECONDARY,
"近战武器", // LOADOUT_POSITION_MELEE,
"Utility", // LOADOUT_POSITION_UTILITY,
"膘耟", // LOADOUT_POSITION_BUILDING,
"建筑", // LOADOUT_POSITION_BUILDING,
"PDA", // LOADOUT_POSITION_PDA,
"PDA 2", // LOADOUT_POSITION_PDA2,

// Wearables
"芛窒庉", // LOADOUT_POSITION_HEAD,
"旯极庉1", // LOADOUT_POSITION_MISC,
"雄釬", // LOADOUT_POSITION_ACTION,
"旯极庉2", // LOADOUT_POSITION_MISC2
"头部饰品", // LOADOUT_POSITION_HEAD,
"身体饰品1", // LOADOUT_POSITION_MISC,
"动作", // LOADOUT_POSITION_ACTION,
"身体饰品2", // LOADOUT_POSITION_MISC2

"1瘍陸當", // LOADOUT_POSITION_TAUNT
"2瘍陸當", // LOADOUT_POSITION_TAUNT2
"3瘍陸當", // LOADOUT_POSITION_TAUNT3
"4瘍陸當", // LOADOUT_POSITION_TAUNT4
"5瘍陸當", // LOADOUT_POSITION_TAUNT5
"6瘍陸當", // LOADOUT_POSITION_TAUNT6
"7瘍陸當", // LOADOUT_POSITION_TAUNT7
"8瘍陸當", // LOADOUT_POSITION_TAUNT8
"1号嘲讽", // LOADOUT_POSITION_TAUNT
"2号嘲讽", // LOADOUT_POSITION_TAUNT2
"3号嘲讽", // LOADOUT_POSITION_TAUNT3
"4号嘲讽", // LOADOUT_POSITION_TAUNT4
"5号嘲讽", // LOADOUT_POSITION_TAUNT5
"6号嘲讽", // LOADOUT_POSITION_TAUNT6
"7号嘲讽", // LOADOUT_POSITION_TAUNT7
"8号嘲讽", // LOADOUT_POSITION_TAUNT8
};

static int GetSlotFromString(const char *string) {
Expand Down
12 changes: 6 additions & 6 deletions src/mod/mvm/extended_upgrades.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ namespace Mod::MvM::Extended_Upgrades
void *menu = nullptr;
if (menus->GetDefaultStyle()->GetClientMenu(ENTINDEX(player), &menu) == MenuSource_BaseMenu && menu != nullptr) {
auto title = ((IBaseMenu *)menu)->GetDefaultTitle();
return title != nullptr && (FStrEq(title, "鯤소섬") || FStrEq(title, "Extended Upgrades Menu") || StringStartsWith(title, "Upgrades for"));
return title != nullptr && (FStrEq(title, "玩家升级") || FStrEq(title, "Extended Upgrades Menu") || StringStartsWith(title, "Upgrades for"));
/*auto handler = ((IBaseMenu *)menu)->GetHandler();
if (handler != nullptr && (dynamic_cast<SelectUpgradeWeaponHandler *>(handler) != nullptr || dynamic_cast<SelectUpgradeListHandler *>(handler) != nullptr)) {
return true;
Expand Down Expand Up @@ -1231,7 +1231,7 @@ namespace Mod::MvM::Extended_Upgrades
}

if(!Mod::Pop::PopMgr_Extensions::ExtendedUpgradesNoUndo()){
ItemDrawInfo info1("藁운섬");
ItemDrawInfo info1("退款升级");
menu->AppendItem("1000", info1);
}
/*if (upgrades.size() == 1) {
Expand Down Expand Up @@ -1270,10 +1270,10 @@ namespace Mod::MvM::Extended_Upgrades
SelectUpgradeWeaponHandler *handler = new SelectUpgradeWeaponHandler(player);
IBaseMenu *menu = menus->GetDefaultStyle()->CreateMenu(handler, g_Ext.GetIdentity());

menu->SetDefaultTitle("Extended Upgrades Menu|윈嵐섬꽉데");
menu->SetDefaultTitle("Extended Upgrades Menu|扩展升级菜单");
menu->SetMenuOptionFlags(0);

ItemDrawInfo info1("Player Upgrades|鯤소섬", WeaponHasValidUpgrades(nullptr, player) ? ITEMDRAW_DEFAULT : ITEMDRAW_DISABLED);
ItemDrawInfo info1("Player Upgrades|玩家升级", WeaponHasValidUpgrades(nullptr, player) ? ITEMDRAW_DEFAULT : ITEMDRAW_DISABLED);
menu->AppendItem("player", info1);

for (loadout_positions_t slot : {
Expand All @@ -1300,12 +1300,12 @@ namespace Mod::MvM::Extended_Upgrades
}

static ConVarRef tf_mvm_respec_enabled("tf_mvm_respec_enabled");
ItemDrawInfo info2("Refund Upgrades|藁운섬", tf_mvm_respec_enabled.GetBool() ? ITEMDRAW_DEFAULT : ITEMDRAW_DISABLED);
ItemDrawInfo info2("Refund Upgrades|退款升级", tf_mvm_respec_enabled.GetBool() ? ITEMDRAW_DEFAULT : ITEMDRAW_DISABLED);
menu->AppendItem("refund", info2);

if (Mod::Pop::PopMgr_Extensions::HasExtraLoadoutItems(player->GetPlayerClass()->GetClassIndex())) {

ItemDrawInfo info3("Extra loadout items|菱땍屢膠틔", ITEMDRAW_DEFAULT);
ItemDrawInfo info3("Extra loadout items|自定义物品", ITEMDRAW_DEFAULT);
menu->AppendItem("extra", info3);
}

Expand Down
Loading

0 comments on commit b0b7cce

Please sign in to comment.