mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-10-21 19:53:29 +08:00
Update all resources to 5.8
This commit is contained in:
@@ -75,6 +75,12 @@ namespace GrasscutterTools.Game.Inventory
|
||||
MATERIAL_NATLAN_RACE_ALBUM,
|
||||
MATERIAL_NATLAN_RACE_ENVELOPE,
|
||||
MATERIAL_MUSIC_GAME_BOOK_THEME,
|
||||
MATERIAL_MIKAWA_FLOWER_INVITE,
|
||||
MATERIAL_QUEST_ALBUM,
|
||||
MATERIAL_HOLIDAY_MEMORY_BOOK,
|
||||
MATERIAL_HOLIDAY_RESORT_INVITE,
|
||||
MATERIAL_PHOTOV6_HAND_BOOK,
|
||||
MATERIAL_WEAPON_SKIN,
|
||||
}
|
||||
|
||||
internal static class MaterialTypeExtension
|
||||
@@ -145,6 +151,12 @@ namespace GrasscutterTools.Game.Inventory
|
||||
[MaterialType.MATERIAL_NATLAN_RACE_ALBUM] = "砥砺之证",
|
||||
[MaterialType.MATERIAL_NATLAN_RACE_ENVELOPE] = "纪念信件",
|
||||
[MaterialType.MATERIAL_MUSIC_GAME_BOOK_THEME] = "音乐游戏书主题",
|
||||
[MaterialType.MATERIAL_MIKAWA_FLOWER_INVITE] = "神子邀请函",
|
||||
[MaterialType.MATERIAL_QUEST_ALBUM] = "任务相册",
|
||||
[MaterialType.MATERIAL_HOLIDAY_MEMORY_BOOK] = "悠悠纪念册",
|
||||
[MaterialType.MATERIAL_HOLIDAY_RESORT_INVITE] = "悠悠度假村邀请函",
|
||||
[MaterialType.MATERIAL_PHOTOV6_HAND_BOOK] = "提瓦特影册",
|
||||
[MaterialType.MATERIAL_WEAPON_SKIN] = "武器皮肤",
|
||||
};
|
||||
private static readonly Dictionary<MaterialType, string> TextMapEN = new Dictionary<MaterialType, string>
|
||||
{
|
||||
@@ -212,6 +224,12 @@ namespace GrasscutterTools.Game.Inventory
|
||||
[MaterialType.MATERIAL_NATLAN_RACE_ALBUM] = "Natlan_race_album",
|
||||
[MaterialType.MATERIAL_NATLAN_RACE_ENVELOPE] = "Natlan_race_envelope",
|
||||
[MaterialType.MATERIAL_MUSIC_GAME_BOOK_THEME] = "Music_game_book_theme",
|
||||
[MaterialType.MATERIAL_MIKAWA_FLOWER_INVITE] = "Mikawa_flower_invite",
|
||||
[MaterialType.MATERIAL_QUEST_ALBUM] = "Quest_album",
|
||||
[MaterialType.MATERIAL_HOLIDAY_MEMORY_BOOK] = "Holiday_memory_book",
|
||||
[MaterialType.MATERIAL_HOLIDAY_RESORT_INVITE] = "Holiday_resort_invite",
|
||||
[MaterialType.MATERIAL_PHOTOV6_HAND_BOOK] = "Photov6_hand_book",
|
||||
[MaterialType.MATERIAL_WEAPON_SKIN] = "Material_weapon_skin",
|
||||
};
|
||||
|
||||
public static string ToTranslatedString(this MaterialType materialType, string language)
|
||||
|
@@ -25,6 +25,7 @@ namespace GrasscutterTools.Game.Props
|
||||
{
|
||||
private static readonly Dictionary<string, string> TextMapCHS = new Dictionary<string, string>
|
||||
{
|
||||
["None"] = "未知",
|
||||
["Avatar"] = "角色",
|
||||
["Gear"] = "机关装置",
|
||||
["Field"] = "领域",
|
||||
|
@@ -51,13 +51,26 @@ namespace GrasscutterTools.Game
|
||||
using (var reader = new JsonTextReader(sr))
|
||||
{
|
||||
ManualTextMap = new Dictionary<string, string>();
|
||||
string textMapId = null, textMapContextHash = null;
|
||||
while (reader.Read())
|
||||
{
|
||||
if (reader.TokenType == JsonToken.PropertyName && ((string)reader.Value == "TextMapId" || (string)reader.Value == "textMapId"))
|
||||
|
||||
|
||||
if (reader.TokenType == JsonToken.PropertyName && ((string)reader.Value == "textMapId" || (string)reader.Value == "TextMapId"))
|
||||
{
|
||||
var textMapId = reader.ReadAsString();
|
||||
reader.Read();
|
||||
ManualTextMap.Add(reader.ReadAsString(), textMapId);
|
||||
textMapId = reader.ReadAsString();
|
||||
}
|
||||
|
||||
if (reader.TokenType == JsonToken.PropertyName && ((string)reader.Value == "textMapContentTextMapHash" || (string)reader.Value == "TextMapContentTextMapHash"))
|
||||
{
|
||||
textMapContextHash = reader.ReadAsString();
|
||||
}
|
||||
|
||||
if (textMapId != null && textMapContextHash != null)
|
||||
{
|
||||
ManualTextMap.Add(textMapContextHash, textMapId);
|
||||
textMapId = null;
|
||||
textMapContextHash = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user