Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
TDT4240-group23
SpaceCheckers
Commits
b1113fbe
Commit
b1113fbe
authored
Apr 24, 2021
by
Anders H. Rebner
Browse files
Fixed avatars in front of eachother in LobbyView
parent
d38bb6cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
CheckersClient/core/src/com/mygdx/game/views/LobbyView.java
View file @
b1113fbe
...
...
@@ -546,11 +546,10 @@ public class LobbyView extends AbstractView {
3
);
animatedSprite
.
setOrigin
(
0
,
0
);
int
remX
=
i
%
4
;
int
remY
=
mod
(
2
,
i
+
2
);
int
xPad
=
10
;
int
xPad
=
25
;
animatedSprite
.
setPosition
(
lobbyImage
.
getX
()-
xPad
+
remX
*((
lobbyImage
.
getWidth
()-
xPad
)/
4
),
lobbyImage
.
getY
()-
remY
*(
lobbyImage
.
getHeight
()/
7.5f
));
animatedSprite
.
setPosition
(
lobbyImage
.
getX
()-
xPad
+
i
*((
lobbyImage
.
getWidth
()-
xPad
)/
4
.5
F
),
lobbyImage
.
getY
()-
remY
*(
lobbyImage
.
getHeight
()/
7.5f
));
animatedSprite
.
setScale
(
0.3f
+
0.025f
*
remY
,
0.3f
+
0.025f
*
remY
);
lobbyAvatars
.
add
(
animatedSprite
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment