PlayScene: Set the Edit Button's position correctly
This commit is contained in:
parent
b924ea9467
commit
c08a1bc13e
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user