mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-02-23 06:02:08 -05:00
Merge pull request #1147 from PurpleHato/RandoItemTrackerV2
FIX: Rando Item Tracker non initialized small key were not transparent
This commit is contained in:
commit
7ea210aa63
@ -688,7 +688,7 @@ void DrawDungeonItem(uint32_t itemId, uint32_t scene) {
|
||||
uint32_t bitMask = 1 << (entry.id - ITEM_KEY_BOSS); // Bitset starts at ITEM_KEY_BOSS == 0. the rest are sequential
|
||||
int iconSize = CVar_GetS32("gRandoTrackIconSize", 0);
|
||||
bool hasItem = (bitMask & gSaveContext.inventory.dungeonItems[scene]) != 0;
|
||||
bool hasSmallKey = (gSaveContext.inventory.dungeonKeys[scene]) != 0;
|
||||
bool hasSmallKey = (gSaveContext.inventory.dungeonKeys[scene]) >= 0;
|
||||
ImGui::BeginGroup();
|
||||
if (itemId == ITEM_KEY_SMALL) {
|
||||
ImGui::Image(SohImGui::GetTextureByName(hasSmallKey ? entry.name : entry.nameFaded), ImVec2(iconSize, iconSize),
|
||||
|
Loading…
x
Reference in New Issue
Block a user