Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/frontend/StarItemTooltip.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-06-20 14:33:09 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-06-20 14:33:09 +1000
commit6352e8e3196f78388b6c771073f9e03eaa612673 (patch)
treee23772f79a7fbc41bc9108951e9e136857484bf4 /source/frontend/StarItemTooltip.hpp
parent6741a057e5639280d85d0f88ba26f000baa58f61 (diff)
everything everywhere
all at once
Diffstat (limited to 'source/frontend/StarItemTooltip.hpp')
-rw-r--r--source/frontend/StarItemTooltip.hpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/source/frontend/StarItemTooltip.hpp b/source/frontend/StarItemTooltip.hpp
new file mode 100644
index 0000000..251980b
--- /dev/null
+++ b/source/frontend/StarItemTooltip.hpp
@@ -0,0 +1,28 @@
+#ifndef STAR_ITEM_TOOLTIP_HPP
+#define STAR_ITEM_TOOLTIP_HPP
+
+#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);
+};
+
+}
+
+#endif