Exemple #1
0
    def draw(self, surface):

        x = self.x_coordinate
        y = self.y_coordinate
        w = self.__width

        Draw.color(x, y, w, surface, Color3.darkGray)
        if not self._opened:
            Draw.useImage(x, y, w, surface, "tile")
        else:
            Draw.useImage(x, y, w, surface, str(self._type))