add throughput, format code, and begin to add MUC preview window
This commit is contained in:
@@ -115,6 +115,10 @@ var commentB64 string = base64.StdEncoding.EncodeToString(commentBytes)
|
||||
var informationBytes []byte
|
||||
var informationB64 string = base64.StdEncoding.EncodeToString(informationBytes)
|
||||
|
||||
//go:embed assets/car.png
|
||||
var carBytes []byte
|
||||
var carB64 string = base64.StdEncoding.EncodeToString(carBytes)
|
||||
|
||||
func init() {
|
||||
|
||||
loader := gdkpixbuf.NewPixbufLoader()
|
||||
@@ -331,4 +335,12 @@ func init() {
|
||||
loader.Close()
|
||||
|
||||
clientAssets["status_"] = gdk.NewTextureForPixbuf(loader.Pixbuf())
|
||||
|
||||
loader = gdkpixbuf.NewPixbufLoader()
|
||||
|
||||
carData, _ := base64.StdEncoding.DecodeString(carB64)
|
||||
loader.Write(carData)
|
||||
loader.Close()
|
||||
|
||||
clientAssets["car"] = gdk.NewTextureForPixbuf(loader.Pixbuf())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user