Maintenance: [forced, user-approved] Family D2: remove fabricated ItemNaming / ItemNamingContext reference structs; their methods are

Batch #10201 by ragnarok-clanker: forced by an admin (14 lower score(s), 95 changed function(s)); checked with 256 compiled unit(s), including every includer of Source/Contents/Items/ItemInfo.h, Source/Contents/Items/ItemNaming.h, Source/UI/Shortcuts/ShortcutTooltip.h, Source/UI/Shortcuts/ShortcutUse.h, Source/UI/Text/ItemLinkDisplay.h, Source/UI/Text/UITextViewer.h, Source/UI/UIBasicCtrl.h.
This commit is contained in:
ragnarok-clanker 2026-11-02 22:03:09 +00:00
commit ae35da0248
40 changed files with 244 additions and 544 deletions

View file

@ -1673,11 +1673,7 @@ void UIItemImage::Slot28(int, int) {
if (g_charViewMode) {
ModeTooltip* tooltip = reinterpret_cast<ModeTooltip*>(g_charViewMode);
const std::uint32_t color = g_session.GetItemNameColor(item);
ItemDescriptions descriptions{g_itemDescriptions};
bool languagePrefix = false;
WORD language = g_serverLanguage->language;
ItemNaming naming{descriptions, g_itemCardNames, *g_playerNameDictionary, languagePrefix, g_serviceType, language};
tooltip->Show(naming.DisplayName(item, 0).c_str(), x, y, color, 0, 1);
tooltip->Show(item.DisplayName(0).c_str(), x, y, color, 0, 1);
}
}