This repository has been archived by the owner on Jan 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Working on UI Manager, switched to Vim 💚
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
Showing
3 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |