/// <summary> /// 尝试显示ItemProto,通过按键触发 /// </summary> internal static void TryShowItemProto() { if (ShowProto.Value) { if (lastTip != null && lastTip.showingItemId != 0) { var proto = LDB.items.Select(lastTip.showingItemId); if (proto != null) { RUEHelper.ShowProto(proto); } else { var recipe = LDB.recipes.Select(-lastTip.showingItemId); if (recipe != null) { foreach (var id in recipe.Results) { var item = LDB.items.Select(id); RUEHelper.ShowProto(item); } } } } } }
/// <summary> /// 尝试显示RecipeProto,通过按键触发 /// </summary> internal static void TryShowRecipeProto() { if (ShowProto.Value) { if (lastTip != null && lastTip.showingItemId != 0) { var itemProto = LDB.items.Select(lastTip.showingItemId); if (itemProto != null) { foreach (var proto in itemProto.recipes) { RUEHelper.ShowProto(proto); } } else { var proto = LDB.recipes.Select(-lastTip.showingItemId); RUEHelper.ShowProto(proto); } } } }