fix: fixed Xbox 360 build issues
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
#include "..\..\..\Minecraft.World\net.minecraft.world.inventory.h"
|
||||
#include "..\..\..\Minecraft.World\net.minecraft.world.item.trading.h"
|
||||
#include "..\..\..\Minecraft.World\HtmlString.h"
|
||||
#include "..\..\MultiPlayerLocalPlayer.h"
|
||||
#include "..\..\Common\Tutorial\Tutorial.h"
|
||||
#include "..\..\Common\Tutorial\TutorialMode.h"
|
||||
@@ -317,4 +318,25 @@ void CXuiSceneTrading::setOfferDescription(const wstring &name, vector<wstring>
|
||||
offerInfoPos.x = Math::round(highlightPos.x - backgroundWidth - highlightWidth * 0.1);
|
||||
}
|
||||
m_offerInfoControl.SetPosition(&offerInfoPos);
|
||||
}
|
||||
|
||||
void CXuiSceneTrading::setOfferDescription(vector<HtmlString> *description)
|
||||
{
|
||||
if(description == NULL || description->empty())
|
||||
{
|
||||
m_offerInfoControl.SetText(L"");
|
||||
m_offerInfoControl.SetShow(FALSE);
|
||||
return;
|
||||
}
|
||||
|
||||
wstring combinedText;
|
||||
vector<wstring> unformattedStrings;
|
||||
for(size_t i = 0; i < description->size(); ++i)
|
||||
{
|
||||
combinedText += (*description)[i].text;
|
||||
unformattedStrings.push_back((*description)[i].text);
|
||||
if(i + 1 < description->size()) combinedText += L"\n";
|
||||
}
|
||||
|
||||
setOfferDescription(combinedText, unformattedStrings);
|
||||
}
|
||||
Reference in New Issue
Block a user