PlayScene: Set the Edit Button's position correctly

This commit is contained in:
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() size = s.editButton.Size()
padding = 8 padding = 8
) )
s.editButton.Present(d.Engine, render.Point{ s.editButton.MoveTo(render.Point{
X: canSize.W - size.W - padding, X: canSize.W - size.W - padding,
Y: canSize.H - size.H - padding, Y: canSize.H - size.H - padding,
}) })
s.editButton.Present(d.Engine, s.editButton.Point())
// Draw the alert box window. // Draw the alert box window.
if !s.alertBox.Hidden() { if !s.alertBox.Hidden() {