Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (wcsstr(ObjName(Actor).Data, L"BP_SmallStorageBox") || wcsstr(ObjName(Actor).Data, L"BP_SmallStorageBoxTrash"))
- {
- AStorageBox* m_SmallStorageBox = (AStorageBox*)Actor;
- char SmallStor[100];
- sprintf(SmallStor, "[%i]StorBox[%0.f]",m_SmallStorageBox->g_itemContainerSize(), dist2);
- float text_width = MENU::text_micrac_contur.GetTextWidth(SmallStor, 20);
- MENU::text_micrac_contur.DX11DrawEx(SmallStor, Screen.X - text_width / 2, Screen.Y, 20, BGUI::color_green, 0, 0, 0, 1, *BGUI::color_black);
- if (m_SmallStorageBox->m_itemContainer() != 0)
- {
- for (int i = 0; i < m_SmallStorageBox->g_itemContainerSize(); i++)
- {
- if (MyBadReadPtr((ULONGLONG)m_SmallStorageBox->m_itemContainer()[i].m_itemName.Data, 0, 3))goto exit_StorName;
- ///////////////////////////////////StorName/////////////////////////////////////////////////////////////////////////
- char str_stash_loot_name[256];
- WCHAR w_stash_loot_name[256];
- int count = m_SmallStorageBox->m_itemContainer()[i].m_itemName.Count;
- if(count > 256)count = 256;
- memcpy(w_stash_loot_name, m_SmallStorageBox->m_itemContainer()[i].m_itemName.data, count*2);
- w_stash_loot_name[count - 1] = 0;
- BASE_STRINGS::UnicodeToAscii(w_stash_loot_name, str_stash_loot_name);
- /////////////////////////////////////StorName/////////////////////////////////////////////////////////////////////////
- MENU::text_arial.DX11DrawEx(str_stash_loot_name, Screen.X - text_width / 2, Screen.Y + 20 + (20 * i), 20, BGUI::color_white, 0, 0, 0, 1, *BGUI::color_black);
- exit_StorName:;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement