mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-21 06:33:22 +00:00
UI: Omit invisible views from viewgroup describe.
This commit is contained in:
parent
1aa7109c04
commit
7f9a68afeb
@ -158,11 +158,15 @@ void ViewGroup::Draw(UIContext &dc) {
|
||||
std::string ViewGroup::DescribeText() const {
|
||||
std::stringstream ss;
|
||||
// TODO: In some cases, might be nice to define as a list explicitly.
|
||||
for (size_t i = 0; i < views_.size(); ++i) {
|
||||
if (i != 0) {
|
||||
bool first = true;
|
||||
for (View *view : views_) {
|
||||
if (view->GetVisibility() != V_VISIBLE)
|
||||
continue;
|
||||
if (!first) {
|
||||
ss << "\n";
|
||||
}
|
||||
ss << views_[i]->DescribeText();
|
||||
first = false;
|
||||
ss << view->DescribeText();
|
||||
}
|
||||
return ss.str();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user