Esempio n. 1
0
void Level::Impl::initMainUI()
{
  PlayerCityPtr city = game->city();
  gui::Ui& ui = *game->gui();

  ui.clear();

  topMenu = &ui.add<TopMenu>(topMenuHeight, !city->getOption(PlayerCity::c3gameplay));

  //bool fitToHeidht = OSystem::isAndroid();
  //menu = Menu::create( ui.rootWidget(), -1, city, fitToHeidht );
  //menu->hide();

  WindowMessageStack::create( ui.rootWidget() );

  if( KILLSWITCH( rightMenu ) )
  {
    //rightPanel->setSide( MenuRigthPanel::rightSide );
    //menu->setSide( Menu::rightSide, rightPanel->lefttop() );
    //extMenu->setSide( Menu::rightSide, rightPanel->lefttop() );
  }
  else
  {
    //rightPanel->setSide( MenuRigthPanel::leftSide );
    //menu->setSide( Menu::leftSide, rightPanel->righttop() );
    //extMenu->setSide( Menu::leftSide, rightPanel->righttop() );
  }
}
Esempio n. 2
0
Tax::Tax( Camera& camera, PlayerCityPtr city)
  : Info( camera, city, 9 )
{
  if( !city->getOption( PlayerCity::c3gameplay ) )
    _loadColumnPicture( ResourceGroup::sprites, 124 );

  _addWalkerType( walker::taxCollector );
  _initialize();
}