this commit was sponsored by RAID SHADOW LEGENDS
This commit is contained in:
13
assets.go
13
assets.go
@@ -83,6 +83,10 @@ var hourglassB64 string = base64.StdEncoding.EncodeToString(hourglassBytes)
|
||||
var connectBytes []byte
|
||||
var connectB64 string = base64.StdEncoding.EncodeToString(connectBytes)
|
||||
|
||||
//go:embed assets/comment.png
|
||||
var commentBytes []byte
|
||||
var commentB64 string = base64.StdEncoding.EncodeToString(commentBytes)
|
||||
|
||||
func init() {
|
||||
|
||||
loader := gdkpixbuf.NewPixbufLoader()
|
||||
@@ -235,4 +239,13 @@ func init() {
|
||||
loader.Close()
|
||||
|
||||
clientAssets["connect"] = gdk.NewTextureForPixbuf(loader.Pixbuf())
|
||||
|
||||
|
||||
loader = gdkpixbuf.NewPixbufLoader()
|
||||
|
||||
commentData, _ := base64.StdEncoding.DecodeString(commentB64)
|
||||
loader.Write(commentData)
|
||||
loader.Close()
|
||||
|
||||
clientAssets["comment"] = gdk.NewTextureForPixbuf(loader.Pixbuf())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user