PlayScene: Set the Edit Button's position correctly

physics
Noah 2019-12-29 00:01:47 -08:00
parent b924ea9467
commit c08a1bc13e
2 changed files with 50 additions and 49 deletions

View File

@ -362,10 +362,11 @@ func (s *PlayScene) Draw(d *Doodle) error {
size = s.editButton.Size()
padding = 8
)
s.editButton.Present(d.Engine, render.Point{
s.editButton.MoveTo(render.Point{
X: canSize.W - size.W - padding,
Y: canSize.H - size.H - padding,
})
s.editButton.Present(d.Engine, s.editButton.Point())
// Draw the alert box window.
if !s.alertBox.Hidden() {