- const Vector3 position( DISTANCE_BETWEEN_IMAGES * 0.5f + ( imageSize.x + DISTANCE_BETWEEN_IMAGES ) * column - pageSize.width * 0.5f,
- DISTANCE_BETWEEN_IMAGES * 0.5f + ( imageSize.y + DISTANCE_BETWEEN_IMAGES ) * row - pageSize.height * 0.5f,
- 0.0f);
-
- Control item = TextLabel::New( std::to_string( textNumber++ ) );
- item.SetProperty( Actor::Property::POSITION, position + imageSize * 0.5f );
- item.SetProperty( Actor::Property::SIZE, imageSize );
- item.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
- item.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER );
- item.SetProperty( TextLabel::Property::TEXT_COLOR, Color::BLACK );
- item.SetProperty( TextLabel::Property::PIXEL_SIZE, textPixelSize );
- item.SetProperty( TextLabel::Property::HORIZONTAL_ALIGNMENT, HorizontalAlignment::CENTER );
- item.SetProperty( TextLabel::Property::VERTICAL_ALIGNMENT, VerticalAlignment::CENTER );
- item.SetProperty( TextLabel::Property::OUTLINE, Property::Map{ { "width", 2 }, { "color", Color::WHITE } } );
- item.SetProperty( Control::Property::BACKGROUND, Vector4( Random::Range( 0.0f, 1.0f ), Random::Range( 0.0f, 1.0f ), Random::Range( 0.0f, 1.0f ), 0.7f ) );
+ const Vector3 position(DISTANCE_BETWEEN_IMAGES * 0.5f + (imageSize.x + DISTANCE_BETWEEN_IMAGES) * column - pageSize.width * 0.5f,
+ DISTANCE_BETWEEN_IMAGES * 0.5f + (imageSize.y + DISTANCE_BETWEEN_IMAGES) * row - pageSize.height * 0.5f,
+ 0.0f);
+
+ Control item = TextLabel::New(std::to_string(textNumber++));
+ item.SetProperty(Actor::Property::POSITION, position + imageSize * 0.5f);
+ item.SetProperty(Actor::Property::SIZE, imageSize);
+ item.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER);
+ item.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER);
+ item.SetProperty(TextLabel::Property::TEXT_COLOR, Color::BLACK);
+ item.SetProperty(TextLabel::Property::PIXEL_SIZE, textPixelSize);
+ item.SetProperty(TextLabel::Property::HORIZONTAL_ALIGNMENT, HorizontalAlignment::CENTER);
+ item.SetProperty(TextLabel::Property::VERTICAL_ALIGNMENT, VerticalAlignment::CENTER);
+ item.SetProperty(TextLabel::Property::OUTLINE, Property::Map{{"width", 2}, {"color", Color::WHITE}});
+ item.SetProperty(Control::Property::BACKGROUND, Vector4(Random::Range(0.0f, 1.0f), Random::Range(0.0f, 1.0f), Random::Range(0.0f, 1.0f), 0.7f));