Skip to content

Commit

Permalink
(Fix #4) Set initial window positions; updated screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
txxia committed Aug 8, 2019
1 parent c8a3858 commit a0231cb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Starbound Map Viewer
====================
[![Build status](https://ci.appveyor.com/api/projects/status/c9xt316vgaqfte9c/branch/master?svg=true)](https://ci.appveyor.com/project/txxia/starbound-map/branch/master)
[![Downloads](https://img.shields.io/github/downloads/txxia/starbound-map/total.svg)](https://github.com/txxia/starbound-map/releases)

This tool is built on top of @blixt's awesome work: [Starbound Utilities](https://github.com/blixt/py-starbound).

Expand Down
2 changes: 2 additions & 0 deletions gui/windows/mapcontrol.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ def handle_event(self, event: GUIEventType, arg=None):
self.gamedata.game_root = self.config[self.CONFIG_GAME_ROOT]

def begin_gui(self) -> bool:
imgui.set_next_window_position(400, 100, imgui.FIRST_USE_EVER)
imgui.set_next_window_size(400, 400, imgui.FIRST_USE_EVER)
if not imgui.begin("Map Info", closable=False):
return False
if self.state.view is not None:
Expand Down
2 changes: 2 additions & 0 deletions gui/windows/mapview.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ def handle_event(self, event: GUIEventType, arg=None):
self.renderer.change_view(self.state.view)

def begin_gui(self) -> bool:
imgui.set_next_window_position(0, 100, imgui.FIRST_USE_EVER)
imgui.set_next_window_size(400, 400, imgui.FIRST_USE_EVER)
if not imgui.begin(self.WINDOW_NAME, closable=False,
flags=imgui.WINDOW_NO_SCROLLBAR):
return False
Expand Down
Binary file modified screenshots/MapViewer.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a0231cb

Please sign in to comment.