Emulator bug fix

This commit is contained in:
cuu
2018-12-12 14:34:46 +08:00
parent 8746a98d3b
commit ced5ed5440
5 changed files with 123 additions and 51 deletions

View File

@@ -1,6 +1,7 @@
package UI
import (
//"fmt"
// "github.com/veandco/go-sdl2/ttf"
// "github.com/cuu/gogame/surface"
@@ -33,11 +34,12 @@ func (self *InfoPageSelector) AnimateDraw(x2, y2 int) {
func (self *InfoPageSelector) Draw() {
idx := self.Parent.GetPsIndex()
mylist := self.Parent.GetMyList()
if idx < len(mylist) {
_,y := mylist[idx].Coord()
_,h := mylist[idx].Size()
self.PosY = y+1
self.Height = h-3