| 50 | } |
| 51 | |
| 52 | void ItemTooltipBuilder::buildItemDescription(WidgetPtr const& container, ItemPtr const& item) { |
| 53 | String tooltipKind = item->tooltipKind(); |
| 54 | |
| 55 | if (tooltipKind.empty()) |
| 56 | tooltipKind = "base"; |
| 57 | if (!tooltipKind.endsWith(".itemdescription")) |
| 58 | tooltipKind = "/interface/itemdescriptions/" + tooltipKind + ".itemdescription"; |
| 59 | |
| 60 | String title; |
| 61 | String subTitle; |
| 62 | buildItemDescriptionInner(container, item, tooltipKind, title, subTitle); |
| 63 | } |
| 64 | |
| 65 | String categoryDisplayName(String const& category) { |
| 66 | Json categories = Root::singleton().assets()->json("/items/categories.config:labels"); |
nothing calls this directly
no test coverage detected