Closed paulocoutinhox closed 6 months ago
I tried create a Window like in tests Window1 example, but same problem:
fairygui::UIConfig::registerFont("Poppins-SemiBold", "fonts/Poppins-SemiBold.ttf");
groot = fairygui::GRoot::create(this);
groot->retain();
fairygui::UIPackage::addPackage("ui/dialog/dialog");
dialogWin = WinDialogWindow::create();
dialogWin->retain();
dialogWin->show();
WinDialogWindow.cpp:
#include "layers/WinDialogWindow.h"
using namespace fairygui;
void WinDialogWindow::onInit()
{
setContentPane(UIPackage::createObject("MainPackage", "Main")->as<GComponent>());
center();
}
void WinDialogWindow::onShown()
{
//
}
I stop using scale9 images and using now images with fixed size and it solve:
Hi,
I made a small dialog with FairyGUI Editor, but when use on AXMOL the title label and button position is different.
Editor Preview:
Editor:
Game:
Code:
What im doing wrong?