docs: add plugin setup guide

This commit is contained in:
2026-05-30 18:33:24 +12:00
parent f3db41c402
commit b61043a3fe
1776 changed files with 122386 additions and 2 deletions
@@ -0,0 +1,56 @@
#pragma once
#include "RE/B/BSTArray.h"
#include "RE/B/BSTTuple.h"
namespace RE
{
class BGSInventoryItem;
namespace UIUtils
{
using ComparisonItems = BSScrapArray<BSTTuple<const BGSInventoryItem*, std::uint32_t>>;
inline void GetComparisonItems(const TESBoundObject* a_object, ComparisonItems& a_comparisonItems)
{
using func_t = decltype(&GetComparisonItems);
static REL::Relocation<func_t> func{ ID::UIUtils::GetComparisonItems };
return func(a_object, a_comparisonItems);
}
inline void PlayPipboySound(const char* a_soundName)
{
using func_t = decltype(&PlayPipboySound);
static REL::Relocation<func_t> func{ ID::UIUtils::PlayPipboySound };
return func(a_soundName);
}
inline void PlayMenuSound(const char* a_soundName)
{
using func_t = decltype(&PlayMenuSound);
static REL::Relocation<func_t> func{ ID::UIUtils::PlayMenuSound };
return func(a_soundName);
}
inline void UpdateGamepadDependentButtonCodes(bool a_usingGamepad)
{
using func_t = decltype(&UpdateGamepadDependentButtonCodes);
static REL::Relocation<func_t> func{ ID::UIUtils::UpdateGamepadDependentButtonCodes };
return func(a_usingGamepad);
}
inline void ShowCraftingMenu(TESObjectREFR* a_furniture)
{
using func_t = decltype(&ShowCraftingMenu);
static REL::Relocation<func_t> func{ ID::UIUtils::ShowCraftingMenu };
return func(a_furniture);
}
inline bool HasRequiredInventoryForCraftingMenu(TESObjectREFR* a_furniture)
{
using func_t = decltype(&HasRequiredInventoryForCraftingMenu);
static REL::Relocation<func_t> func{ ID::UIUtils::HasRequiredInventoryForCraftingMenu };
return func(a_furniture);
}
}
}