mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(component): implement CCharacterComponent::UpdateItemLU
This commit is contained in:
parent
4ac15df24c
commit
4f1159284b
@ -1510,7 +1510,23 @@ void CCharacterComponent::UpdateItemLL(ITEM_SLOT itemSlot, const ItemDisplayInfo
|
||||
}
|
||||
|
||||
void CCharacterComponent::UpdateItemLU(ITEM_SLOT itemSlot, const ItemDisplayInfoRec* displayRec, bool update) {
|
||||
// TODO
|
||||
auto priority = s_itemPriority[itemSlot][SECTION_LEG_UPPER];
|
||||
|
||||
if (update) {
|
||||
if (!this->UpdateItemDisplay(SECTION_LEG_UPPER, displayRec, priority)) {
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
this->ClearItemDisplay(SECTION_LEG_UPPER, priority);
|
||||
}
|
||||
|
||||
if (priority != -1) {
|
||||
this->m_sectionDirty |= (1 << SECTION_LEG_UPPER);
|
||||
|
||||
// TODO component request logic
|
||||
|
||||
this->m_flags &= ~0x8;
|
||||
}
|
||||
}
|
||||
|
||||
void CCharacterComponent::UpdateItemTL(ITEM_SLOT itemSlot, const ItemDisplayInfoRec* displayRec, bool update) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user