graphics::Sprite menuFontSprite(IMG_Load("test-data/menu-font.png"), 16, 16);
graphics::Font menuFont(&menuFontSprite, 0, -2);
+ graphics::Sprite menuInactiveFontSprite(IMG_Load("test-data/menu-font-inactive.png"), 16, 16);
+ graphics::Font menuInactiveFont(&menuInactiveFontSprite, 0, -2);
menuResources.normalFont = &menuFont;
inventoryMenuProperties.cursor = &menuCursor;
inventoryMenuProperties.selectedCursor = &menuActiveCursor;
inventoryMenuProperties.font = &menuFont;
- // TODO: disabled font
- inventoryMenuProperties.disabledFont = &menuFont;
+ inventoryMenuProperties.disabledFont = &menuInactiveFont;
inventoryMenuProperties.iconSpace = 16;
inventoryMenuProperties.charsPerNumber = 2;
inventoryMenuProperties.delimiter = ':';
spellMenuProperties.cursor = &menuCursor;
spellMenuProperties.selectedCursor = &menuActiveCursor;
spellMenuProperties.font = &menuFont;
- // TODO: disabled font
- spellMenuProperties.disabledFont = &menuFont;
+ spellMenuProperties.disabledFont = &menuInactiveFont;
spellMenuProperties.iconSpace = 0;
spellMenuProperties.charsPerNumber = 2;
spellMenuProperties.delimiter = ':';
equipmentMenuProperties.cursor = &menuCursor;
equipmentMenuProperties.selectedCursor = &menuActiveCursor;
equipmentMenuProperties.font = menuResources.statusFont;
- // TODO: disabled font
- equipmentMenuProperties.disabledFont = menuResources.statusFont;
equipmentMenuProperties.iconSpace = 16;
menuResources.equipmentMenuProperties = &equipmentMenuProperties;
const Item *item(GetHero().Equipment(Hero::EquipSlot(i)));
equipmentMenu.Add(item->Name(), item, true, item->MenuIcon());
} else {
- equipmentMenu.Add(parent->Res().noEquipmentText, 0, false);
+ equipmentMenu.Add(parent->Res().noEquipmentText, 0);
}
}
}