YAPOG  0.0.1
Yet Another Pokemon Online Game
PokemonExperienceBarWidget.cpp
Go to the documentation of this file.
5 
7 #include "Pokemon/Pokemon.hpp"
8 
9 namespace ycl
10 {
12  : experienceBarContent_ (nullptr)
13  , mainLayout_ (nullptr)
14  {
16  yap::Padding (60, 0, 0, 11), yap::Padding (), false);
18  }
19 
21  {
22  SetSize (yap::Vector2 (258, 26));
23 
25  "Pictures/TeamManager/ExperienceBarContainer.png", true));
26 
28  "Pictures/TeamManager/ExperienceBarContent.png"));
29 
31 
32  mainLayout_->AddChild (*experienceBarContent_, yap::LayoutBox::Align::TOP);
33 
35  }
36 
38  {
40  137 * pokemon.GetExperiencePercentage (), 8));
41  }
42 
44  {
45  return false;
46  }
47 
49  {
50  }
51 
53  {
54  }
56  {
57  }
58 
60  {
61  }
62 
63  void PokemonExperienceBarWidget::HandleChangeColor (const sf::Color& color)
64  {
65  }
66 
68  {
69  }
70 
71 } // namespace ycl