Skip to content

Commit

Permalink
actually added a fuckign rectangle fuck you
Browse files Browse the repository at this point in the history
  • Loading branch information
Aklaran committed Apr 23, 2017
1 parent ab1dc1a commit 35f89bd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions code/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ def __init__(self):
camera2d.reparentTo(render2d)
dr.setCamera(camera2d)

self.stamBar = MeshDrawer2D()
self.stamBar.setBudget(10)
self.stamBarNode = self.stamBar.getRoot()
self.stamBarNode.reparentTo(render2d)
self.stamBarNode.setTwoSided(True)

self.gradeText = OnscreenText(pos=(-0.1, 0.02), scale=0.07,
mayChange=True, parent=self.a2dBottomRight)
self.taskMgr.add(self.drawUITask, 'drawUI')
Expand All @@ -110,6 +116,12 @@ def drawUITask(self, task):
gradeStr = self.tricker.grade
self.gradeText.setText(gradeStr)

self.stamBar.begin()

self.stamBar.rectangleRaw(0,0,10,10,0,0,0,0, (0,1,0,1))

self.stamBar.end()

return Task.cont

def FollowCamTask(self, task):
Expand Down

0 comments on commit 35f89bd

Please sign in to comment.