-
Notifications
You must be signed in to change notification settings - Fork 6
/
QuickLoot.h
80 lines (54 loc) · 1.39 KB
/
QuickLoot.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#pragma once
#include <vector>
#include "skse64/GameReferences.h"
#include "skse64/GameAPI.h"
#include "skse64/GameEvents.h"
#include "skse64/PapyrusEvents.h"
#include "skse64/GameTypes.h"
#include "skse64/GameMenus.h"
#include "skse64/ScaleformLoader.h"
#include "ItemData.h"
#include "Flags.h"
enum
{
kQuickLoot_IsOpen = (1 << 0),
kQuickLoot_IsDisabled = (1 << 1),
kQuickLoot_RequestUpdate = (1 << 2),
kQuickLoot_OpenAnimation = (1 << 3),
kQuickLoot_NowTaking = (1 << 4)
};
struct QuickLootMenuGen
{
static IMenu* Create(void);
};
struct QuickLoot
: public IMenu
{
QuickLoot(const char* swfPath);
static void Initialize();
void Close();
void Setup();
void Update();
void Sort();
void OnMenuOpen();
void OnMenuClose();
void Clear();
void SetIndex(SInt32 index);
void Dbg_PrintItems();
IMenu* menu;
Flags<UInt32> flags;
static SimpleLock tlock;
virtual UInt32 ProcessMessage(UIMessage * message) override;
void InvokeScaleform_Open();
void InvokeScaleform_Close();
void InvokeScaleform_SetIndex();
void SetScaleformArgs_Open(std::vector<GFxValue> &args);
void SetScaleformArgs_Close(std::vector<GFxValue> &args);
void SetScaleformArgs_SetIndex(std::vector<GFxValue> &args);
TESObjectREFR* targetRef;
TESObjectREFR* containerRef;
TESForm* ownerForm;
tArray<ItemData> items;
SInt32 selectedIndex;
};
extern QuickLoot* g_quickloot;