parent
0ddfafec50
commit
b213a90e20
5
main.go
5
main.go
|
@ -144,8 +144,7 @@ func main() {
|
||||||
|
|
||||||
// make this the main loop in an attempt to figure out the crashes
|
// make this the main loop in an attempt to figure out the crashes
|
||||||
// do not change this until the GUI is stable
|
// do not change this until the GUI is stable
|
||||||
gui.InitNewWindow(config, "SPLASH")
|
gui.StartNewWindow(config, false, "SPLASH")
|
||||||
gui.ShowWindow()
|
|
||||||
|
|
||||||
// gui.Data.Window1 = new(gui.WindowMap)
|
// gui.Data.Window1 = new(gui.WindowMap)
|
||||||
// gui.Data.Window1.AreaText = getSplashText()
|
// gui.Data.Window1.AreaText = getSplashText()
|
||||||
|
@ -345,7 +344,7 @@ func mainMouseClick(b *gui.ButtonMap) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (b.Action == "SHOW VM") {
|
} else if (b.Action == "SHOW VM") {
|
||||||
gui.Data.CurrentVM = b.VM
|
// gui.Data.CurrentVM = b.VM
|
||||||
if (gui.Data.Debug) {
|
if (gui.Data.Debug) {
|
||||||
log.Println("\tATTEMPTING TO SHOW VM IN WINDOW")
|
log.Println("\tATTEMPTING TO SHOW VM IN WINDOW")
|
||||||
// go gui.GoShowVM()
|
// go gui.GoShowVM()
|
||||||
|
|
|
@ -12,13 +12,28 @@ import "github.com/andlabs/ui"
|
||||||
import _ "github.com/andlabs/ui/winmanifest"
|
import _ "github.com/andlabs/ui/winmanifest"
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
c := pb.MakeDefaultConfig()
|
var c *pb.Config
|
||||||
|
c = pb.MakeDefaultConfig()
|
||||||
|
|
||||||
gui.Data.MouseClick = mainMouseClick
|
gui.Data.MouseClick = mainMouseClick
|
||||||
|
|
||||||
|
i := 0
|
||||||
|
|
||||||
|
gui.Data.Hostname = "splash " + string(i)
|
||||||
|
gui.StartNewWindow(c, true, "SPLASH")
|
||||||
|
|
||||||
|
i += 1
|
||||||
|
gui.Data.Hostname = "splash " + string(i)
|
||||||
|
gui.StartNewWindow(c, true, "BLAH")
|
||||||
|
|
||||||
for {
|
for {
|
||||||
gui.StartNewWindow(c, "SPLASH")
|
i += 1
|
||||||
gui.StartNewWindow(c, "BLAH")
|
gui.Data.Hostname = "splash " + string(i)
|
||||||
|
gui.StartNewWindow(c, false, "SPLASH")
|
||||||
|
|
||||||
|
i += 1
|
||||||
|
gui.Data.Hostname = "splash " + string(i)
|
||||||
|
gui.StartNewWindow(c, false, "BLAH")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue