osb/source/frontend/StarItemTooltip.hpp
2024-02-25 15:46:47 +01:00

26 lines
691 B
C++

#pragma once
#include "StarString.hpp"
#include "StarStatusTypes.hpp"
namespace Star {
STAR_CLASS(Item);
STAR_CLASS(Widget);
STAR_CLASS(ListWidget);
STAR_CLASS(Augment);
STAR_CLASS(Pane);
STAR_CLASS(Player);
namespace ItemTooltipBuilder {
PanePtr buildItemTooltip(ItemPtr const& item, PlayerPtr const& viewer = {});
void buildItemDescription(WidgetPtr const& container, ItemPtr const& item);
void buildItemDescriptionInner(
WidgetPtr const& container, ItemPtr const& item, String const& tooltipKind, String& title, String& subtitle, PlayerPtr const& viewer = {});
void describePersistentEffect(ListWidgetPtr const& container, PersistentStatusEffect const& effect);
};
}