OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Classes | Enumerations | Functions | Variables
UIHouses.h File Reference
#include <string>
#include <vector>
#include "Engine/Tables/HouseTable.h"
#include "Engine/MapEnums.h"
#include "GUI/GUIWindow.h"
#include "Utility/IndexedArray.h"
#include "UIHouseEnums.h"

Classes

struct  HouseNpcDesc
 
class  GUIWindow_House
 
struct  HouseAnimDescr
 

Enumerations

enum class  HouseNpcType { HOUSE_PROPRIETOR , HOUSE_NPC , HOUSE_TRANSITION }
 

Functions

void BackToHouseMenu ()
 
void selectProprietorDialogueOption (DialogueId option)
 
void prepareHouse (HouseId house)
 
void createHouseUI (HouseId houseId)
 
bool enterHouse (HouseId uHouseID)
 
bool houseDialogPressEscape ()
 
void playHouseSound (HouseId houseID, HouseSoundType type)
 
void selectHouseNPCDialogueOption (DialogueId topic)
 
void updateHouseNPCTopics (int npc)
 

Variables

constexpr int SIDE_TEXT_BOX_WIDTH = 144
 
constexpr int SIDE_TEXT_BOX_POS_X = 484
 
constexpr int SIDE_TEXT_BOX_POS_Z = 334
 
constexpr int SIDE_TEXT_BOX_POS_Y = 113
 
constexpr int SIDE_TEXT_BOX_BODY_TEXT_HEIGHT = 174
 
constexpr int SIDE_TEXT_BOX_BODY_TEXT_OFFSET = 138
 
constexpr int SIDE_TEXT_BOX_MAX_SPACING = 32
 
GraphicsImage_591428_endcap
 
std::array< const HouseAnimDescr, 196 > pAnimatedRooms
 
const IndexedArray< int, HOUSE_TYPE_WEAPON_SHOP, HOUSE_TYPE_DARK_GUILDitemAmountInShop
 
std::vector< HouseNpcDeschouseNpcs
 
int currentHouseNpc
 

Enumeration Type Documentation

◆ HouseNpcType

enum class HouseNpcType
strong

Type of NPC you can have dialogue with inside house.

Enumerator
HOUSE_PROPRIETOR 
HOUSE_NPC 
HOUSE_TRANSITION 

Function Documentation

◆ BackToHouseMenu()

void BackToHouseMenu ( )

◆ createHouseUI()

void createHouseUI ( HouseId  houseId)

◆ enterHouse()

bool enterHouse ( HouseId  uHouseID)
Original binary offset:
0x44622E

◆ houseDialogPressEscape()

bool houseDialogPressEscape ( )

◆ playHouseSound()

void playHouseSound ( HouseId  houseID,
HouseSoundType  type 
)
Original binary offset:
0x4B1E92

◆ prepareHouse()

void prepareHouse ( HouseId  house)
Original binary offset:
0x44606A

◆ selectHouseNPCDialogueOption()

void selectHouseNPCDialogueOption ( DialogueId  topic)

◆ selectProprietorDialogueOption()

void selectProprietorDialogueOption ( DialogueId  option)
Original binary offset:
0x4BCACC

◆ updateHouseNPCTopics()

void updateHouseNPCTopics ( int  npc)
Original binary offset:
0x4B4224

Variable Documentation

◆ _591428_endcap

GraphicsImage* _591428_endcap
extern

◆ currentHouseNpc

int currentHouseNpc
extern

◆ houseNpcs

std::vector<HouseNpcDesc> houseNpcs
extern

◆ itemAmountInShop

const IndexedArray<int, HOUSE_TYPE_WEAPON_SHOP, HOUSE_TYPE_DARK_GUILD> itemAmountInShop
extern

◆ pAnimatedRooms

std::array<const HouseAnimDescr, 196> pAnimatedRooms
extern

◆ SIDE_TEXT_BOX_BODY_TEXT_HEIGHT

constexpr int SIDE_TEXT_BOX_BODY_TEXT_HEIGHT = 174
constexpr

◆ SIDE_TEXT_BOX_BODY_TEXT_OFFSET

constexpr int SIDE_TEXT_BOX_BODY_TEXT_OFFSET = 138
constexpr

◆ SIDE_TEXT_BOX_MAX_SPACING

constexpr int SIDE_TEXT_BOX_MAX_SPACING = 32
constexpr

◆ SIDE_TEXT_BOX_POS_X

constexpr int SIDE_TEXT_BOX_POS_X = 484
constexpr

◆ SIDE_TEXT_BOX_POS_Y

constexpr int SIDE_TEXT_BOX_POS_Y = 113
constexpr

◆ SIDE_TEXT_BOX_POS_Z

constexpr int SIDE_TEXT_BOX_POS_Z = 334
constexpr

◆ SIDE_TEXT_BOX_WIDTH

constexpr int SIDE_TEXT_BOX_WIDTH = 144
constexpr