mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
Fix misplaced width/height in UI
This commit is contained in:
parent
87eab92290
commit
d3533150b8
@ -504,13 +504,13 @@ void CTradeWindow::getPositionsFor(std::vector<Rect> &poss, bool Left, EType typ
|
||||
|
||||
const std::vector<Rect> tmp =
|
||||
{
|
||||
Rect(Point(x + 0 * dx, y + 0 * dx), Point(h, w) ),
|
||||
Rect(Point(x + 1 * dx, y + 0 * dx), Point(h, w) ),
|
||||
Rect(Point(x + 2 * dx, y + 0 * dx), Point(h, w) ),
|
||||
Rect(Point(x + 0 * dx, y + 1 * dy), Point(h, w) ),
|
||||
Rect(Point(x + 1 * dx, y + 1 * dy), Point(h, w) ),
|
||||
Rect(Point(x + 2 * dx, y + 1 * dy), Point(h, w) ),
|
||||
Rect(Point(x + 1 * dx, y + 2 * dy), Point(h, w) )
|
||||
Rect(Point(x + 0 * dx, y + 0 * dx), Point(w, h) ),
|
||||
Rect(Point(x + 1 * dx, y + 0 * dx), Point(w, h) ),
|
||||
Rect(Point(x + 2 * dx, y + 0 * dx), Point(w, h) ),
|
||||
Rect(Point(x + 0 * dx, y + 1 * dy), Point(w, h) ),
|
||||
Rect(Point(x + 1 * dx, y + 1 * dy), Point(w, h) ),
|
||||
Rect(Point(x + 2 * dx, y + 1 * dy), Point(w, h) ),
|
||||
Rect(Point(x + 1 * dx, y + 2 * dy), Point(w, h) )
|
||||
};
|
||||
|
||||
vstd::concatenate(poss, tmp);
|
||||
|
@ -923,12 +923,12 @@ CExchangeWindow::CExchangeWindow(ObjectInstanceID hero1, ObjectInstanceID hero2,
|
||||
{
|
||||
primSkillAreas.push_back(std::make_shared<LRClickableAreaWTextComp>());
|
||||
if (qeLayout)
|
||||
primSkillAreas[g]->pos = Rect(Point(pos.x + 324, pos.y + 12 + 26 * g), Point(22, 152));
|
||||
primSkillAreas[g]->pos = Rect(Point(pos.x + 324, pos.y + 12 + 26 * g), Point(152, 22));
|
||||
else
|
||||
primSkillAreas[g]->pos = Rect(Point(pos.x + 329, pos.y + 19 + 36 * g), Point(32, 140));
|
||||
primSkillAreas[g]->pos = Rect(Point(pos.x + 329, pos.y + 19 + 36 * g), Point(140, 32));
|
||||
primSkillAreas[g]->text = CGI->generaltexth->arraytxt[2+g];
|
||||
primSkillAreas[g]->type = g;
|
||||
primSkillAreas[g]->bonusValue = -1;
|
||||
primSkillAreas[g]->bonusValue = 0;
|
||||
primSkillAreas[g]->baseType = 0;
|
||||
primSkillAreas[g]->hoverText = CGI->generaltexth->heroscrn[1];
|
||||
boost::replace_first(primSkillAreas[g]->hoverText, "%s", CGI->generaltexth->primarySkillNames[g]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user