void updateTitle() { DivinityPtr divinity = rome::Pantheon::get( currentDivinity ); std::string text = utils::format( 0xff, "##hold_%s_festival##", divinity.isValid() ? divinity->debugName().c_str() : "unknown" ); lbTitle->setText( _(text) ); }
Temple::Temple( DivinityPtr divinity, object::Type type, int imgId, const Size& size ) : ServiceBuilding( divinity.isValid() ? divinity->serviceType() : Service::srvCount, type, size ), _td( new Impl ) { _td->divinity = divinity; _td->buff.value = 0; _picture().load( ResourceGroup::security, imgId ); _fgPictures().resize( 3 ); _td->fires.animation = gfx::AnimationBank::instance().simple( "temple_fire" ); }