just showed up the screen,like python's launcher

This commit is contained in:
cuu
2018-06-18 19:52:42 +08:00
parent c9de67c78f
commit 85b9423b0d
21 changed files with 77 additions and 17 deletions

View File

@@ -1,6 +1,7 @@
package UI
import (
"fmt"
"io/ioutil"
"log"
"strings"
@@ -18,7 +19,7 @@ type IconPool struct {
func NewIconPool() *IconPool {
i := &IconPool{}
i.GameShellIconPath = SkinMap("gameshell/icons/")
i.GameShellIconPath = SkinMap("sysgo/gameshell/icons/")
i.Icons = make( map[string]*sdl.Surface )
return i
}
@@ -49,6 +50,7 @@ func (self *IconPool) GetImgSurf(keyname string) *sdl.Surface {
if _,ok := self.Icons[keyname]; ok {
return self.Icons[keyname]
} else {
fmt.Println("IconPool GetImgSurf ", keyname, " failed")
return nil
}
}