Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Commit

Permalink
Working on UI Manager, switched to Vim 💚
Browse files Browse the repository at this point in the history
If implemented this commit will:
  + Setup the foundation for a basic Frame system
  + The main idea is to have a border around each "UI"
    the border will consist of solid gray ish blocks
    maybe even add a special tile for the border
  + The config file will specify a minimum and a maximum size to
    which the game will run

TODO:
  +
  • Loading branch information
Alexandru-Paul Copil committed Dec 27, 2016
1 parent 6b1a4e7 commit 3e2b556
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
Binary file added src/manager/.game_ui.py.swp
Binary file not shown.
21 changes: 21 additions & 0 deletions src/manager/game_ui.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from utility import config

class FrameUI:

def __init__ (self, game_window):
self.game_window = game_window

self.map_width = 0
self.map_height = 0

self.right_width = 0
self.right_height = 0

self.bottom_width = 0
self.bottom_height = 0

@window.event
def on_resize(self, width, height):
pass
#TODO: Add calculations for width and height!
#NOTE: Switched to Vim
9 changes: 9 additions & 0 deletions src/manager/game_ui.py~
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from utility import config

class FrameUI:

def __init__ (self):
pass

def update_size(self):
pass

0 comments on commit 3e2b556

Please sign in to comment.