mirror of
https://gitlab.com/hashborgir/d2tweaks-rnd2k.git
synced 2025-10-13 16:34:22 -05:00
Bag crashes upon hover. Need to debug.
This commit is contained in:
@@ -15,6 +15,8 @@ namespace d2_tweaks {
|
||||
bool show_runes;
|
||||
bool show_gems;
|
||||
|
||||
bool m_show_r01;
|
||||
|
||||
bool quality_settings[static_cast<size_t>(diablo2::structures::item_quality_t::ITEM_QUALITY_COUNT)];
|
||||
|
||||
char reserved[1004];
|
||||
|
@@ -26,6 +26,56 @@ namespace d2_tweaks {
|
||||
ui::controls::checkbox* m_show_runes;
|
||||
ui::controls::checkbox* m_show_gems;
|
||||
|
||||
ui::controls::checkbox* m_show_ruby;
|
||||
ui::controls::checkbox* m_show_sapphire;
|
||||
ui::controls::checkbox* m_show_emerald;
|
||||
ui::controls::checkbox* m_show_diamond;
|
||||
ui::controls::checkbox* m_show_topaz;
|
||||
ui::controls::checkbox* m_show_amethyst;
|
||||
ui::controls::checkbox* m_show_skull;
|
||||
|
||||
ui::controls::checkbox* m_show_r01;
|
||||
ui::controls::checkbox* m_show_r02;
|
||||
ui::controls::checkbox* m_show_r03;
|
||||
ui::controls::checkbox* m_show_r04;
|
||||
ui::controls::checkbox* m_show_r05;
|
||||
ui::controls::checkbox* m_show_r06;
|
||||
ui::controls::checkbox* m_show_r07;
|
||||
ui::controls::checkbox* m_show_r08;
|
||||
ui::controls::checkbox* m_show_r09;
|
||||
ui::controls::checkbox* m_show_r10;
|
||||
ui::controls::checkbox* m_show_r11;
|
||||
ui::controls::checkbox* m_show_r12;
|
||||
ui::controls::checkbox* m_show_r13;
|
||||
ui::controls::checkbox* m_show_r14;
|
||||
ui::controls::checkbox* m_show_r15;
|
||||
ui::controls::checkbox* m_show_r16;
|
||||
ui::controls::checkbox* m_show_r17;
|
||||
ui::controls::checkbox* m_show_r18;
|
||||
ui::controls::checkbox* m_show_r19;
|
||||
ui::controls::checkbox* m_show_r20;
|
||||
ui::controls::checkbox* m_show_r21;
|
||||
ui::controls::checkbox* m_show_r22;
|
||||
ui::controls::checkbox* m_show_r23;
|
||||
ui::controls::checkbox* m_show_r24;
|
||||
ui::controls::checkbox* m_show_r25;
|
||||
ui::controls::checkbox* m_show_r26;
|
||||
ui::controls::checkbox* m_show_r27;
|
||||
ui::controls::checkbox* m_show_r28;
|
||||
ui::controls::checkbox* m_show_r29;
|
||||
ui::controls::checkbox* m_show_r30;
|
||||
ui::controls::checkbox* m_show_r31;
|
||||
ui::controls::checkbox* m_show_r32;
|
||||
ui::controls::checkbox* m_show_r33;
|
||||
|
||||
ui::controls::checkbox* m_show_chipped;
|
||||
ui::controls::checkbox* m_show_flawed;
|
||||
ui::controls::checkbox* m_show_normal;
|
||||
ui::controls::checkbox* m_show_flawless;
|
||||
ui::controls::checkbox* m_show_perfect;
|
||||
|
||||
|
||||
|
||||
void(__fastcall* m_draw_dropped_items_names_original)(void*, void*);
|
||||
void(__fastcall* m_handle_dropped_items_original)(void*, void*);
|
||||
public:
|
||||
@@ -39,6 +89,7 @@ namespace d2_tweaks {
|
||||
void register_quality_checkboxes();
|
||||
|
||||
void update_alt_only(bool value);
|
||||
void extract_r01(bool value);
|
||||
void update_show_gold(bool value);
|
||||
void update_show_runes(bool value);
|
||||
void update_show_gems(bool value);
|
||||
|
@@ -20,9 +20,12 @@ namespace d2_tweaks {
|
||||
ui::controls::button* m_btn_toggle_help;
|
||||
ui::controls::button* m_btn_toggle_cube;
|
||||
ui::controls::button* m_btn_toggle_stash;
|
||||
ui::controls::button* m_btn_toggle_bag;
|
||||
|
||||
menu* m_filter_settings_menu;
|
||||
menu* m_menu;
|
||||
bool m_show;
|
||||
bool m_show_bag;
|
||||
public:
|
||||
explicit loot_filter_settings_toggle_menu(token);
|
||||
|
||||
@@ -31,6 +34,7 @@ namespace d2_tweaks {
|
||||
void toggle_help_click();
|
||||
void toggle_cube_click();
|
||||
void toggle_stash_click();
|
||||
void toggle_bag_click();
|
||||
void draw() override;
|
||||
|
||||
bool key_event(uint32_t key, bool up) override;
|
||||
|
@@ -54,5 +54,7 @@ namespace diablo2 {
|
||||
//D2Game.0x6FC4A660
|
||||
static int32_t __fastcall D2GAME_Transmogrify_6FC4A660(structures::game* pGame, structures::unit* pPlayer, structures::unit* pItem);
|
||||
|
||||
static diablo2::structures::unit* __fastcall diablo2::d2_game::QUESTS_CreateItem(diablo2::structures::game* pGame, diablo2::structures::unit* pPlayer, uint32_t dwCode, int32_t nLevel, uint8_t nQuality, int32_t bDroppable);
|
||||
|
||||
};
|
||||
}
|
||||
|
@@ -25,6 +25,19 @@ namespace diablo2 {
|
||||
struct quest_record;
|
||||
struct npc_record;
|
||||
|
||||
enum D2C_ItemQualities
|
||||
{
|
||||
ITEMQUAL_INFERIOR = 0x01, //0x01 Inferior
|
||||
ITEMQUAL_NORMAL = 0x02, //0x02 Normal
|
||||
ITEMQUAL_SUPERIOR = 0x03, //0x03 Superior
|
||||
ITEMQUAL_MAGIC = 0x04, //0x04 Magic
|
||||
ITEMQUAL_SET = 0x05, //0x05 Set
|
||||
ITEMQUAL_RARE = 0x06, //0x06 Rare
|
||||
ITEMQUAL_UNIQUE = 0x07, //0x07 Unique
|
||||
ITEMQUAL_CRAFT = 0x08, //0x08 Crafted
|
||||
ITEMQUAL_TEMPERED = 0x09 //0x09 Tempered
|
||||
};
|
||||
|
||||
enum class unit_type_t : int32_t {
|
||||
UNIT_TYPE_PLAYER = 0,
|
||||
UNIT_TYPE_MONSTER = 1,
|
||||
|
Reference in New Issue
Block a user