mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
Hack-fixed icon position
This commit is contained in:
parent
6dd89efc9a
commit
dfbc9cea8a
@ -1218,7 +1218,13 @@ void CPlayerInterface::showMapObjectSelectDialog(QueryID askID, const Component
|
|||||||
for(auto item : objects)
|
for(auto item : objects)
|
||||||
tempList.push_back(item.getNum());
|
tempList.push_back(item.getNum());
|
||||||
|
|
||||||
CObjectListWindow * wnd = new CObjectListWindow(tempList, icon, localTitle, localDescription, selectCallback);
|
CComponent * localIconC = new CComponent(icon);
|
||||||
|
|
||||||
|
CIntObject * localIcon = localIconC->image;
|
||||||
|
localIconC->removeChild(localIcon, false);
|
||||||
|
delete localIconC;
|
||||||
|
|
||||||
|
CObjectListWindow * wnd = new CObjectListWindow(tempList, localIcon, localTitle, localDescription, selectCallback);
|
||||||
wnd->onExit = cancelCallback;
|
wnd->onExit = cancelCallback;
|
||||||
GH.pushInt(wnd);
|
GH.pushInt(wnd);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user