Is a camera required to display a billboard?

I want to display a menu, and right now I have in my LoadLevel () method
(Copied from Walktut):

if(isMenu)
{
iCelMapFile* mapfile = region->CreateMapFile ();
mapfile->SetSectorName("0");
}
  else
  {
iCelMapFile* mapfile = region->CreateMapFile ();
mapfile->SetPath (level);
mapfile->SetFile ("world.xml");
  }


  iCelMapFile* entitiesfile = region->CreateMapFile ();
  entitiesfile->SetPath (level);
  entitiesfile->SetFile ("entities.xml");

and then I call ShowMenu () from MainApp::Application ():

bool MainApp::ShowMenu (){

csString menu = "/menu/";
if(!LoadLevel (true, menu))
return ReportError ("Error loading menu!");
 return true;

}

In my entities file, I have a simple billboard set up (Copied from the CEL
billboard tutorial):
<world>

  <addon plugin="cel.addons.celentity" entityname="menu_exit_entity" >
    <behaviour layer="thebl" name="menu_behave" />
    <propclass name="pc2d.billboard">
      <property name="name" string="menu_exit" />
      <property name="movable" bool="false" />
      <property name="color" vector = "1,0,1" />
      <property name ="text" string = "This is a button!" />
      <property name="text_fg_color" vector="1,1,1"/>
      <property name="clickable" bool="true" />
      <property name="restack" bool="false" />
      <property name="widthpct" float="3" />
      <property name="heightpct" float="3.2" />
      <property name="x" long="19000" />
      <property name="y" long="76600" />
    </propclass>
  </addon>
</world>

It compiles and runs without complaint, but I get a black screen. Could
someone please tell me what am I missing?

-Austin Bonander (Technus)
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Cel-main mailing list
Cel-main@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cel-main

Reply via email to