Implemented Merchant Selling Screen
This commit is contained in:
@@ -138,12 +138,14 @@ protected:
|
||||
virtual inline void DrawDecal(ViewPort&window,bool focused)override{
|
||||
MenuIconButton::DrawDecal(window,focused);
|
||||
if(valid&&!hideQty){
|
||||
std::string quantityText="x"+std::to_string(itemRef.lock()->Amt());
|
||||
vf2d quantityTextScale=rect.size/48.f;
|
||||
vf2d textSize=vf2d(game->GetTextSizeProp(quantityText))*quantityTextScale;
|
||||
vf2d drawPos=rect.pos+rect.size-textSize;
|
||||
if(itemRef.lock()->Amt()!=INFINITE){
|
||||
window.DrawShadowStringDecal(drawPos,quantityText,WHITE,BLACK,quantityTextScale);
|
||||
if(!ISBLANK(itemRef)){
|
||||
std::string quantityText="x"+std::to_string(itemRef.lock()->Amt());
|
||||
vf2d quantityTextScale=rect.size/48.f;
|
||||
vf2d textSize=vf2d(game->GetTextSizeProp(quantityText))*quantityTextScale;
|
||||
vf2d drawPos=rect.pos+rect.size-textSize;
|
||||
if(itemRef.lock()->Amt()!=INFINITE){
|
||||
window.DrawShadowStringDecal(drawPos,quantityText,WHITE,BLACK,quantityTextScale);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user