MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / buildItemDescription

Method buildItemDescription

source/frontend/StarItemTooltip.cpp:52–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52void 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
65String categoryDisplayName(String const& category) {
66 Json categories = Root::singleton().assets()->json("/items/categories.config:labels");

Callers

nothing calls this directly

Calls 3

tooltipKindMethod · 0.45
emptyMethod · 0.45
endsWithMethod · 0.45

Tested by

no test coverage detected