2016-01-21, 09:49
Hey there,
i´m working on a small text ticker addon. That means that, after you had input a desired text, the text is printed to the screen and is moving to the right.
When the text has reached the end it shall start from the left again.
Problem here is that i have no idea how to realise the animation.
Here is my code so far:
i´m working on a small text ticker addon. That means that, after you had input a desired text, the text is printed to the screen and is moving to the right.
When the text has reached the end it shall start from the left again.
Problem here is that i have no idea how to realise the animation.
Here is my code so far:
PHP Code:
import xbmcaddon
import xbmcgui
__addon__ = xbmcaddon.Addon()
__addonname__ = __addon__.getAddonInfo('name')
input = xbmcgui.Dialog().input("Geben sie ihren Text ein: ", )
xbmcgui.Dialog().notification("ausgabe", input)
script = xbmcgui.Window()
label = xbmcgui.ControlLabel(10, 10, 300, 800, input, "font35_title")
script.addControl(label)
script.doModal()
posx = label.getX()
while(True):
label.setPosition(posx - 1, label.getHeight())