YAPOG  0.0.1
Yet Another Pokemon Online Game
PokemonBattleInfoWidget.cpp
Go to the documentation of this file.
5 
7 
8 namespace ycl
9 {
11  : BattleInfoWidget (yap::Padding (40, 30, 0, 0))
12  , hpValue_ ()
13  , experienceBar_ ()
14  {
15  }
16 
18  {
19  // Set background
20  yap::WidgetBackground* background =
22  "Pictures/Battle/PokemonInfoBackground.png", true);
23  background->SetFixed (true);
24  battleInfoBox_.SetBackground (*background);
25 
27 
28  hpValue_.ChangeColor (sf::Color::Black);
29  battleInfoBox_.AddChild (hpValue_, yap::LayoutBox::Align::RIGHT);
30  }
31 
33  {
36  " / " +
38 
40  }
41 }