mirror of https://github.com/axmolengine/axmol.git
fix gui reader
This commit is contained in:
parent
11f6cf3b5b
commit
d06ca0e75d
|
@ -260,14 +260,6 @@ std::string WidgetPropertiesReader::getWidgetReaderClassName(Widget* widget)
|
||||||
{
|
{
|
||||||
readerName = "TextFieldReader";
|
readerName = "TextFieldReader";
|
||||||
}
|
}
|
||||||
else if (dynamic_cast<Layout*>(widget))
|
|
||||||
{
|
|
||||||
readerName = "LayoutReader";
|
|
||||||
}
|
|
||||||
else if (dynamic_cast<ScrollView*>(widget))
|
|
||||||
{
|
|
||||||
readerName = "ScrollViewReader";
|
|
||||||
}
|
|
||||||
else if (dynamic_cast<ListView*>(widget))
|
else if (dynamic_cast<ListView*>(widget))
|
||||||
{
|
{
|
||||||
readerName = "ListViewReader";
|
readerName = "ListViewReader";
|
||||||
|
@ -276,6 +268,15 @@ std::string WidgetPropertiesReader::getWidgetReaderClassName(Widget* widget)
|
||||||
{
|
{
|
||||||
readerName = "PageViewReader";
|
readerName = "PageViewReader";
|
||||||
}
|
}
|
||||||
|
else if (dynamic_cast<ScrollView*>(widget))
|
||||||
|
{
|
||||||
|
readerName = "ScrollViewReader";
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (dynamic_cast<Layout*>(widget))
|
||||||
|
{
|
||||||
|
readerName = "LayoutReader";
|
||||||
|
}
|
||||||
else if (dynamic_cast<Widget*>(widget))
|
else if (dynamic_cast<Widget*>(widget))
|
||||||
{
|
{
|
||||||
readerName = "WidgetReader";
|
readerName = "WidgetReader";
|
||||||
|
|
|
@ -354,7 +354,7 @@ void Text::copySpecialProperties(Widget *widget)
|
||||||
if (label)
|
if (label)
|
||||||
{
|
{
|
||||||
setFontName(label->_fontName);
|
setFontName(label->_fontName);
|
||||||
setFontSize(label->_labelRenderer->getSystemFontSize());
|
setFontSize(label->getFontSize());
|
||||||
setString(label->getString());
|
setString(label->getString());
|
||||||
setTouchScaleChangeEnabled(label->_touchScaleChangeEnabled);
|
setTouchScaleChangeEnabled(label->_touchScaleChangeEnabled);
|
||||||
setTextHorizontalAlignment(label->_labelRenderer->getHorizontalAlignment());
|
setTextHorizontalAlignment(label->_labelRenderer->getHorizontalAlignment());
|
||||||
|
|
Loading…
Reference in New Issue