Skip to content

Commit

Permalink
General UI positioning fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ryantpayton committed Apr 24, 2023
1 parent 9635e0b commit e3e97c2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions IO/UITypes/UIItemInventory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,14 +230,14 @@ namespace ms
{
if (newtab == tab)
{
newitemtaben.draw(position + get_tabpos(newtab), alpha);
newitemtaben.draw(position + get_tabpos(newtab) - Point<int16_t>(2, 3), alpha);

if (is_visible(newslot))
newitemslot.draw(position + get_slotpos(newslot) + Point<int16_t>(1, 1), alpha);
}
else
{
newitemtabdis.draw(position + get_tabpos(newtab), alpha);
newitemtabdis.draw(position + get_tabpos(newtab) - Point<int16_t>(2, 1), alpha);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion IO/UITypes/UIQuit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ namespace ms
cur_level = stats.get_stat(MapleStat::Id::LEVEL);

levelAfter = Charset(level["number"], Charset::Alignment::LEFT);
levelAfterPos = level["posAfter"];
levelAfterPos = Point<int16_t>(level["posAfter"]) - Point<int16_t>(10, 0);
levelAfterText = std::to_string(cur_level);

levelNumberWidth = level["numberWidth"];
Expand Down
10 changes: 5 additions & 5 deletions IO/UITypes/UIStatsInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,11 @@ namespace ms
statoffsets[StatLabel::MAX_DAMAGE] = statoffset + Point<int16_t>(19, statoffset_y * 5);
statoffsets[StatLabel::HP] = statoffset + Point<int16_t>(1, statoffset_y * 6);
statoffsets[StatLabel::MP] = statoffset + Point<int16_t>(1, statoffset_y * 7);
statoffsets[StatLabel::AP] = statoffset + Point<int16_t>(18, 149);
statoffsets[StatLabel::STR] = statoffset + Point<int16_t>(0, 178);
statoffsets[StatLabel::DEX] = statoffset + Point<int16_t>(0, 196);
statoffsets[StatLabel::INT] = statoffset + Point<int16_t>(0, 214);
statoffsets[StatLabel::LUK] = statoffset + Point<int16_t>(0, 232);
statoffsets[StatLabel::AP] = statoffset + Point<int16_t>(19, 167);
statoffsets[StatLabel::STR] = statoffset + Point<int16_t>(1, 196);
statoffsets[StatLabel::DEX] = statoffset + Point<int16_t>(1, 214);
statoffsets[StatLabel::INT] = statoffset + Point<int16_t>(1, 232);
statoffsets[StatLabel::LUK] = statoffset + Point<int16_t>(1, 250);

// Detailed
statlabels[StatLabel::MIN_DAMAGE_DETAILED] = Text(Text::Font::A11M, Text::Alignment::RIGHT, Color::Name::EMPEROR);
Expand Down

0 comments on commit e3e97c2

Please sign in to comment.