|
|
|
|
|
|
|
|
res.clear("font", self._NODETEXT_DATA["font_src"]) |
|
|
res.clear("font", self._NODETEXT_DATA["font_src"]) |
|
|
Node2D._render(self, surface) |
|
|
Node2D._render(self, surface) |
|
|
if self._NODETEXT_DATA["surface"] is not None: |
|
|
if self._NODETEXT_DATA["surface"] is not None: |
|
|
pos = self.position |
|
|
|
|
|
|
|
|
pos = self.get_world_position() |
|
|
pos = (int(pos[0]), int(pos[1])) |
|
|
pos = (int(pos[0]), int(pos[1])) |
|
|
surface.blit(self._NODETEXT_DATA["surface"], pos) |
|
|
surface.blit(self._NODETEXT_DATA["surface"], pos) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fsurf = ssurf |
|
|
fsurf = ssurf |
|
|
|
|
|
|
|
|
# Place the sprite! WHEEEEE! |
|
|
# Place the sprite! WHEEEEE! |
|
|
pos = self.position |
|
|
|
|
|
|
|
|
pos = self.get_world_position() |
|
|
surface.blit(fsurf, pos) |
|
|
surface.blit(fsurf, pos) |
|
|
|
|
|
|
|
|
# Call on all children |
|
|
# Call on all children |