veloren/voxygen
juliancoffee 18e507315f Add ItemDesc::l10n method
- Add ItemL10n struct that is similar to ItemImgs except it holds i18n
  description and not items. ItemDesc::l10n uses this struct to provide
  common_i18n::Content for both names and descriptions.
  So far it only used in voxygen, but it can be used by rtsim in
  dialogues.
- Introduced new deprecation, ItemKind::Ingredient, because it uses
  item.name().
  It's not deleted, because it's used in inventory sorting, and our
  inventory sorting is, for some reason, server-side.
- Crafting UI also still uses deprecated item.name(), because again,
  sorting. It's probably will be easier to handle, because it's UI
  sorting and we can use localized names here, but still, it's a thing
  to discuss.
- Moved Item::describe() to voxygen/hud/util.

The most important thing to note is we don't want to completely delete
deprecated .name() and .description() along with corresponding fields
in ItemDef because ItemDef is now "public" API, exposed in plugins and I
don't want to break plugins before we actually implement i18n for them.
Otherwise, it would be basically impossible to use items in plugins.

What's left is actually fully implementing ItemDesc::l10n, create
item_l10n.ron and add fallback on current .name() and .description()
implementation.
2024-01-14 21:25:15 +02:00
..
anim Deprecated combo melee character state 2023-12-28 19:02:10 -05:00
benches replace all uses of Arc<> with references 2023-10-02 16:52:41 +02:00
egui Deprecated combo melee character state 2023-12-28 19:02:10 -05:00
examples (See sharp/lod-history) LOD, shadows, greedy meshing, new lighting, perf 2020-08-20 20:34:59 +02:00
i18n-helpers Renamed to potion of agility, burning potion to combustion 2023-12-05 14:15:54 -04:00
src Add ItemDesc::l10n method 2024-01-14 21:25:15 +02:00
build.rs feat(voxygen): add logo for windows executable 2019-10-02 16:57:08 +02:00
Cargo.toml Include required serde feature for enum-map in veloren-common 2023-11-16 21:47:44 +01:00