Decompile fn_11393 (UITextViewEX::Paint)
Batch #15462 by youko: 0 byte-identical, 1 confirmed by peer review. - fn_11393 UITextViewEX::Paint: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, Yommy, alisonrag Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
7723a02624
commit
81dd7f7f96
1 changed files with 5 additions and 4 deletions
|
|
@ -3347,20 +3347,21 @@ void UITextViewEX::Paint() {
|
|||
const int top = this->topLine;
|
||||
int y = 7;
|
||||
int line = 0;
|
||||
for (auto it = this->lineLinks.begin(); it != this->lineLinks.end(); ++it, ++line) {
|
||||
for (auto it = this->lineLinks.begin(), end = this->lineLinks.end(); it != end; ++it, ++line) {
|
||||
std::vector<UITextButton*> buttons = *it;
|
||||
if (line >= top) {
|
||||
int x = 0;
|
||||
for (UITextButton* button : buttons) {
|
||||
UIString* text = reinterpret_cast<UIString*>(button);
|
||||
if (text->text != "\n") {
|
||||
if (StringText(*text) != "\n") {
|
||||
text->Show(1);
|
||||
x = text->enabled == 0 ? x : x - 5;
|
||||
if (x < 0) {
|
||||
x = 0;
|
||||
}
|
||||
text->Move(x, !text->image.empty() ? y - 7 : y);
|
||||
x = text->geometry.width + x + 5;
|
||||
const bool hasImage = !StringImage(*text).empty();
|
||||
text->Move(x, hasImage ? y - 7 : y);
|
||||
x = x + 5 + text->geometry.width;
|
||||
}
|
||||
}
|
||||
y += 21;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue