Skip to content

Commit

Permalink
fix layout alignment in club stats
Browse files Browse the repository at this point in the history
  • Loading branch information
fallahn committed Jul 17, 2023
1 parent 75a1edc commit 0faed87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions samples/golf/buildnumber.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#ifndef BUILD_NUMBER_H_
#define BUILD_NUMBER_H_

#define BUILDNUMBER 810
#define BUILDNUMBER_STR "810"
#define BUILDNUMBER 812
#define BUILDNUMBER_STR "812"

#endif /* BUILD_NUMBER_H_ */
4 changes: 2 additions & 2 deletions samples/golf/src/golf/StatsState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ void StatsState::buildScene()
const float stride = 102.f;
auto sprite = spriteSheet.getSprite("button_highlight");
bounds = sprite.getTextureBounds();
const float offset = 52.f;
const float offset = 51.f;

for (auto i = 0; i < TabID::Max; ++i)
{
Expand Down Expand Up @@ -512,7 +512,7 @@ void StatsState::createClubStatsTab(cro::Entity parent, const cro::SpriteSheet&
label += "Top/Side";

labelEnt = m_scene.createEntity();
labelEnt.addComponent<cro::Transform>().setPosition({ 4.f, -12.f, 0.3f });
labelEnt.addComponent<cro::Transform>().setPosition({ 4.f, -11.f, 0.3f });
labelEnt.addComponent<cro::Drawable2D>();
labelEnt.addComponent<cro::Text>(font).setString(label);
labelEnt.getComponent<cro::Text>().setCharacterSize(InfoTextSize);
Expand Down

0 comments on commit 0faed87

Please sign in to comment.