diff --git a/client/client.go b/client/client.go index 264fb7e..202ef3c 100644 --- a/client/client.go +++ b/client/client.go @@ -152,7 +152,7 @@ func (e *client) setReport(r report.Report) { func (e *client) BuildUI(w fyne.Window) { mapCanvas := newInteractiveRaster(e, e.raster, e.onRasterWidgetLayout, e.onScrolled, e.onDragged, e.onDradEnd, e.onTapped) - mapCanvas.SetMinSize(fyne.NewSize(292, 292)) + mapCanvas.SetMinSize(fyne.NewSize(640, 480)) toolbar := widget.NewToolbar( widget.NewToolbarAction( @@ -202,20 +202,6 @@ func (e *client) loadWorld(w *world.World) { e.wp.CameraYWorldFp = w.H / 2 e.world.SetTheme(world.ThemeDark) - // if e.world == nil { - // w.SetCircleRadiusScaleFp(world.SCALE / 4) - // e.world = w - // e.wp.CameraXWorldFp = w.W / 2 - // e.wp.CameraYWorldFp = w.H / 2 - // e.world.SetTheme(world.ThemeDark) - // } else { - // if e.world.Theme().ID() == "theme.light.v1" { - // e.world.SetTheme(world.ThemeDark) - // } else { - // e.world.SetTheme(world.ThemeLight) - // } - // } - e.RequestRefresh() }