Added ImguiImageAlign::CenterIndented.
This commit is contained in:
parent
7c4d69b0a1
commit
44b84ab800
@ -872,9 +872,13 @@ struct Imgui
|
||||
{
|
||||
xx = m_widgetX;
|
||||
}
|
||||
else //if (ImguiImageAlign::Center == _align).
|
||||
else if (ImguiImageAlign::Center == _align)
|
||||
{
|
||||
xx = m_widgetX + (m_scrollAreaInnerWidth-_width)/2;
|
||||
xx = m_scrollAreaX + (m_scrollAreaInnerWidth-_width)/2;
|
||||
}
|
||||
else //if (ImguiImageAlign::CenterIndented == _align).
|
||||
{
|
||||
xx = (m_widgetX + m_scrollAreaInnerWidth + m_scrollAreaX - _width)/2;
|
||||
}
|
||||
|
||||
const int32_t yy = m_widgetY;
|
||||
|
@ -49,6 +49,7 @@ struct ImguiImageAlign
|
||||
{
|
||||
Left,
|
||||
Center,
|
||||
CenterIndented,
|
||||
};
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user