|
|
@ -77,11 +77,18 @@ public: |
|
|
|
window.FillRectDecal(rect.pos+vf2d{1,1},rect.size-vf2d{1,1},col); |
|
|
|
window.FillRectDecal(rect.pos+vf2d{1,1},rect.size-vf2d{1,1},col); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(locked){ |
|
|
|
|
|
|
|
window.FillRectDecal(rect.pos+vf2d{1,1},rect.size-vf2d{1,1},BLACK); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
float scaleFactor=(rect.size.y-4)/24; |
|
|
|
float scaleFactor=(rect.size.y-4)/24; |
|
|
|
vf2d iconSize=vf2d{scaleFactor,scaleFactor}*24.f; |
|
|
|
vf2d iconSize=vf2d{scaleFactor,scaleFactor}*24.f; |
|
|
|
|
|
|
|
|
|
|
|
Pixel tint=WHITE; |
|
|
|
Pixel tint=WHITE; |
|
|
|
if(locked)tint=BLACK; |
|
|
|
if(locked){ |
|
|
|
|
|
|
|
window.FillRectDecal(rect.pos+vf2d{2,2},iconSize); |
|
|
|
|
|
|
|
tint=BLACK; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
window.DrawDecal(rect.pos+vf2d{2,2},const_cast<Decal*>(itemRef.lock()->Decal()),{scaleFactor,scaleFactor},tint); |
|
|
|
window.DrawDecal(rect.pos+vf2d{2,2},const_cast<Decal*>(itemRef.lock()->Decal()),{scaleFactor,scaleFactor},tint); |
|
|
|
window.DrawRectDecal(rect.pos+vf2d{2,2},iconSize); |
|
|
|
window.DrawRectDecal(rect.pos+vf2d{2,2},iconSize); |
|
|
|