| 417 | } |
| 418 | |
| 419 | std::string SkinExportSerializer::convertEditorToExportAlign(std::string_view _value) |
| 420 | { |
| 421 | MyGUI::Align align = MyGUI::Align::parse(_value); |
| 422 | |
| 423 | if (align.isHCenter()) |
| 424 | align |= MyGUI::Align::HStretch; |
| 425 | if (align.isVCenter()) |
| 426 | align |= MyGUI::Align::VStretch; |
| 427 | |
| 428 | if (align == MyGUI::Align::Stretch) |
| 429 | return "Stretch"; |
| 430 | if (align == MyGUI::Align::Center) |
| 431 | return "Center"; |
| 432 | |
| 433 | return align.print(); |
| 434 | } |
| 435 | |
| 436 | void SkinExportSerializer::sortByAlign(Data::VectorData& childs) |
| 437 | { |