Code: Select all
IFontObject* f = this->m_AshitaCore->GetFontManager()->Create("name");
f->SetPositionX(X);
f->SetPositionY(Y);
IPrimitiveObject* prim = f->GetBackground();
prim->SetColor(0x3F000000);
prim->SetTextureFromFile("image.png");
prim->SetVisibility(true);
f->SetFontHeight(10);
f->SetVisibility(true);
f->SetLocked(true);
f->SetText(" ");
it seems dependant on the font size and the text length
so to display it correctly i have to use
Code: Select all
f->SetFontHeight(50);
f->SetText(" ");
Code: Select all
prim->SetWidth(500);
prim->SetHeight(500);