Core/Node: Refactor interface
- Removed overloads taking multiple scalars - Removed CoordSys parameter (functions exists in two sets, local and global)
This commit is contained in:
committed by
Jérôme Leclercq
parent
194dba5002
commit
63c526cecc
@@ -25,7 +25,7 @@ namespace Nz
|
||||
{
|
||||
float contentPosition = (GetHeight() - m_content->GetHeight()) * (1.f - newValue);
|
||||
|
||||
m_content->SetPosition(0.f, contentPosition);
|
||||
m_content->SetPosition({ 0.f, contentPosition });
|
||||
m_content->SetRenderingRect(Nz::Rectf(-std::numeric_limits<float>::infinity(), -contentPosition, std::numeric_limits<float>::infinity(), GetHeight()));
|
||||
});
|
||||
|
||||
@@ -78,7 +78,7 @@ namespace Nz
|
||||
if (m_isScrollbarEnabled)
|
||||
m_horizontalScrollbar->Show();
|
||||
|
||||
m_horizontalScrollbar->SetPosition(contentSize.x, 0.f);
|
||||
m_horizontalScrollbar->SetPosition({ contentSize.x, 0.f, 0.f });
|
||||
m_horizontalScrollbar->Resize({ scrollBarWidth, GetHeight() });
|
||||
|
||||
ScrollToRatio(m_horizontalScrollbar->GetValue());
|
||||
|
||||
Reference in New Issue
Block a user