Ejemplo n.º 1
0
    def __init__(self, *args, **kwargs):
        super(MonitorMain, self).__init__(*args, **kwargs)
        # basic overlay
        self.overlay = DivNode(parent=self)
        self.video = VideoNode(href="base_loop.avi",
                               loop=True,
                               parent=self.overlay,
                               size=(800, 600))
        self.video.play()
        self.topDiv = DivNode(parent=self.overlay,
                              pos=(0, 62),
                              size=(800, 200))
        self.bottomDiv = DivNode(parent=self.overlay,
                                 pos=(0, 363),
                                 size=(800, 200))
        ImageNode(href="rillen_70.png", parent=self.bottomDiv, size=(800, 300))
        ImageNode(href="rillen_70.png", parent=self.topDiv, size=(800, 300))
        ImageNode(href="schwarze_maske.png", parent=self.overlay)

        # top
        self.top = ContentViewer(parent=self.topDiv)

        # bottom
        self.bottom = ContentViewer(parent=self.bottomDiv)
        self._cwars = CWars(opacity=0, parent=self.bottom)
        self.bottom.addContent(self._cwars)
        print "running MonitorMain"
        g_log.trace(g_log.ERROR, "running monitormain now")
        self.bottom.nextContent()
Ejemplo n.º 2
0
    def init(self):
        rootNode = g_Player.getRootNode()

        orig = ImageNode(parent = rootNode, href='../graphics/testfiles/hsl.png')
        invert = ImageNode(parent = rootNode, href='../graphics/testfiles/hsl.png',
                pos=(orig.size.x+10, 0))
        invert.setEffect(avg.InvertFXNode())
Ejemplo n.º 3
0
 def __init__(self, text1="", text2="", text3="", *args, **kwargs):
     super(TextContent, self).__init__(*args, **kwargs)
     self.__whie = ImageNode(parent=self,
                             pos=(0, 0),
                             size=(800, 200),
                             href="hinweise/kasten_60.png",
                             opacity=0.6)
     self.__topText = WordsNode(parent=self,
                                text=text1,
                                font='arial',
                                color="000000",
                                pos=(30, 10),
                                opacity=1,
                                fontsize=40)
     self.__middleText = WordsNode(parent=self,
                                   text=text2,
                                   font='arial',
                                   color="000000",
                                   pos=(30, 80),
                                   opacity=1,
                                   fontsize=40)
     self.__bottomText = WordsNode(parent=self,
                                   text=text3,
                                   font='arial',
                                   color="000000",
                                   pos=(30, 140),
                                   opacity=1,
                                   fontsize=30)
Ejemplo n.º 4
0
    def init(self):
        rootNode = g_Player.getRootNode()

        background = ImageNode(parent=rootNode, href='../graphics/testfiles/hsl.png',
                size=(640,640))
        self.hsl_fx = avg.HueSatFXNode()
        background.setEffect(self.hsl_fx)
        self.sat = avg.WordsNode(pos=(800, 200), text="Sat: " +
                str(self.hsl_fx.saturation), parent=rootNode)
        self.light = avg.WordsNode(pos=(800, 250), text= "Bright" +
                str(self.hsl_fx.lightness), parent=rootNode)
        self.colorize = avg.WordsNode(pos=(800, 300), text="Colorized: " +
                str(self.hsl_fx.colorize), parent=rootNode)
        self.hue = avg.WordsNode(pos=(800, 350), text="Hue: " +
                str(self.hsl_fx.hue), parent=rootNode)
        rootNode.connectEventHandler(avg.KEYDOWN, avg.NONE, self,
                self.__onKeyDown)
        g_Player.setOnFrameHandler(self._increaseHue)
Ejemplo n.º 5
0
 def __init__(self, callback=None, *args, **kwargs):
     super(CWars, self).__init__(*args, **kwargs)
     self._video = VideoNode(parent=self,
                             href="werbung/c-wars/c-wars-trailer.mpg",
                             size=(800, 200))
     self._logo = ImageNode(parent=self,
                            href="werbung/c-wars/c-wars.tif",
                            pos=(66, 58))
     self._endCallback = callback
     self.__where_past = ImageNode(parent=self,
                                   href="werbung/c-wars/where_past.tif",
                                   pos=(48, 148))
     self.__meets_future = ImageNode(parent=self,
                                     href="werbung/c-wars/meets_future.tif",
                                     pos=(248, 148))
     self.__www_cwars_com = ImageNode(
         parent=self,
         href="werbung/c-wars/www_c-wars_com.tif",
         pos=(470, 152))