Ejemplo n.º 1
0
 def create_text(self, text):
     f = leafs.TextoAlineado(text,
                             self.font,
                             size=1000,
                             alignx=0.5,
                             aligny=0.5)
     group = qgl.scene.Group()
     group.add(f)
     return group
Ejemplo n.º 2
0
 def __init__(self, nextScene, text="press enter...", *a):
     Scene.__init__(self, *a)
     self.nextScene = nextScene
     font = data.filepath('You Are Loved.ttf')
     figure = leafs.TextoAlineado(text,
                                  font,
                                  size=1000,
                                  alignx=0.5,
                                  aligny=0.5)
     self.group.add(figure)
     self.accept()
Ejemplo n.º 3
0
 def rend(st):
     scoreg = qgl.scene.Group()
     figure = leafs.TextoAlineado(st,
                                  self.font,
                                  size=100,
                                  alignx=0.5,
                                  aligny=0.5)
     col = qgl.scene.state.Color((1.0, 1.0, 1.0, 1))
     scoreg.add(col, figure)
     scoreg.scale = (5, 5, 1)
     return scoreg
Ejemplo n.º 4
0
 def __init__(self, caption, callback, x, y):
     font = filepath('You Are Loved.ttf')
     figure = leafs.TextoAlineado(caption, font, size=1000, alignx=0.5, aligny=0.5)
     self.group = qgl.scene.Group()
     self.group.add(figure)
     self.group.translate = (x, y, 0.0)
     self.group.selectable = True
     self.final_zoom = 4
     self.zoom = 4
     self.x, self.y = x, y
     self.callback = callback
Ejemplo n.º 5
0
    def create_line(self, text):
        font = data.filepath('MagicSchoolOne.ttf')
        figure = leafs.TextoAlineado(text,
                                     font,
                                     size=1000,
                                     alignx=0.5,
                                     aligny=0.5)
        group = qgl.scene.Group()
        group.add(figure)
        group.translate = (170, 0, 0)

        self.group.add(group)
        return group
Ejemplo n.º 6
0
    def __init__(self, nextScene, text="press enter...", *a):

        Scene.__init__(self, *a)
        self.nextScene = nextScene

        self.root_node.background_color = view.CELESTE_CIELO
        am = self.actionManager = Manager()

        clouds = self.createClouds()
        clouds.translate = (100, 0, 0)
        clouds2 = self.createClouds2()
        clouds2.translate = (-100, 300, 0)
        clouds3 = self.createClouds3()
        clouds3.translate = (50, 100, 0)

        dads = []
        basetime = 2500.0
        for d in range(10):
            dad = self.createDad()
            dad.translate = Point3(-300 + 60 * d, -600, 0)
            if d != 0:
                am.do(
                    dad,
                    delay(
                        sum([(basetime / (r + 1))
                             for r in range(d)]) - basetime) + move(
                                 (0, 1200, 0), duration=basetime / (d + 1)))
            dads.append(dad)

        varita = self.createVarita()

        font = data.filepath('You Are Loved.ttf')
        figure = leafs.TextoAlineado(text,
                                     font,
                                     size=1000,
                                     alignx=0.5,
                                     aligny=0.5)
        group = qgl.scene.Group()
        group.add(figure)
        group.translate = (0, 240, 0)

        self.group.add(group)
        self.accept()