Quantcast
Channel: Kodi allgemein - Kodinerds.net - Deutschsprachiges Forum zum Kodi Entertainment Center
Viewing all articles
Browse latest Browse all 5170

Problem mit Animation

$
0
0

Quellcode

  1. <control type="image">
  2. <posx>0</posx>
  3. <width>30</width>
  4. <height>30</height>
  5. <centertop>50%</centertop>
  6. <texture colordiffuse="$VAR[ColorHighlight]">backg/$VAR[FlagstarMusic1].png</texture>
  7. <visible>!Skin.HasSetting(furniture.numericrating)</visible>
  8. <animation condition="IntegerGreaterThan(MusicPlayer.UserRating,0)" type="WindowOpen">
  9. <effect type="fade" time="100"/>
  10. <effect type="zoom" center="auto" tween="back" easing="out" delay="1000" start="90" end="130" time="200"/>
  11. <effect type="zoom" center="auto" delay="1200" start="110" end="80" time="200"/>
  12. </animation>
  13. </control>
  14. <control type="image">
  15. <posx>35</posx>
  16. <width>30</width>
  17. <height>30</height>
  18. <centertop>50%</centertop>
  19. <texture colordiffuse="$VAR[ColorHighlight]">backg/$VAR[FlagstarMusic2].png</texture>
  20. <visible>!Skin.HasSetting(furniture.numericrating)</visible>
  21. <animation condition="IntegerGreaterThan(MusicPlayer.UserRating,2)" type="WindowOpen">
  22. <effect type="fade" time="100"/>
  23. <effect type="zoom" center="auto" tween="back" easing="out" delay="1050" start="90" end="130" time="200"/>
  24. <effect type="zoom" center="auto" delay="1250" start="110" end="80" time="200"/>
  25. </animation>
  26. </control>
  27. <control type="image">
  28. <posx>70</posx>
  29. <width>30</width>
  30. <height>30</height>
  31. <centertop>50%</centertop>
  32. <texture colordiffuse="$VAR[ColorHighlight]">backg/$VAR[FlagstarMusic3].png</texture>
  33. <visible>!Skin.HasSetting(furniture.numericrating)</visible>
  34. <animation condition="IntegerGreaterThan(MusicPlayer.UserRating,4)" type="WindowOpen">
  35. <effect type="fade" time="100"/>
  36. <effect type="zoom" center="auto" tween="back" easing="out" delay="1100" start="90" end="130" time="200"/>
  37. <effect type="zoom" center="auto" delay="1300" start="110" end="80" time="200"/>
  38. </animation>
  39. </control>
  40. <control type="image">
  41. <posx>105</posx>
  42. <width>30</width>
  43. <height>30</height>
  44. <centertop>50%</centertop>
  45. <texture colordiffuse="$VAR[ColorHighlight]">backg/$VAR[FlagstarMusic4].png</texture>
  46. <visible>!Skin.HasSetting(furniture.numericrating)</visible>
  47. <animation condition="IntegerGreaterThan(MusicPlayer.UserRating,6)" type="WindowOpen">
  48. <effect type="fade" time="100"/>
  49. <effect type="zoom" center="auto" tween="back" easing="out" delay="1150" start="90" end="130" time="200"/>
  50. <effect type="zoom" center="auto" delay="1350" start="110" end="80" time="200"/>
  51. </animation>
  52. </control>
  53. <control type="image">
  54. <posx>140</posx>
  55. <width>30</width>
  56. <height>30</height>
  57. <centertop>50%</centertop>
  58. <texture colordiffuse="$VAR[ColorHighlight]">backg/$VAR[FlagstarMusic5].png</texture>
  59. <visible>!Skin.HasSetting(furniture.numericrating)</visible>
  60. <animation condition="IntegerGreaterThan(MusicPlayer.UserRating,8)" type="WindowOpen">
  61. <effect type="fade" time="100"/>
  62. <effect type="zoom" center="auto" tween="back" easing="out" delay="1200" start="90" end="130" time="200"/>
  63. <effect type="zoom" center="auto" delay="1400" start="110" end="80" time="200"/>
  64. </animation>
  65. </control>
Alles anzeigen
Hallo,

habe ein kleines Problem beim Umsetzen einer Animation. Es geht um die Animation der Sterne, die die Bewertung anzeigen unten rechts, sobald ich die MusicVisualisation.xml aufrufe, wie in folgendem Video zu sehen:



Wenn ich das Fenster aufrufe, klappt die Animation, aber sobald ein neuer Titel aus der Playlist gespielt wird, läuft keine Animation mehr. Weil ich nicht weiß, welche Condition hier greifen könnte. Hier der Code:
musicvisualisation.xml

Welche Condition kann man denn hier einsetzen, so dass die Animation abläuft, sobald ein neuer Titel gespielt wird?

Danke im Voraus

Viewing all articles
Browse latest Browse all 5170