This commit is contained in:
parent
ec67a9d641
commit
ef1a22d9a7
10
GlossMgr.py
10
GlossMgr.py
|
@ -182,7 +182,7 @@ class MenuSelector(clutter.Texture):
|
|||
def set_spinner(self, state):
|
||||
self.timeline = clutter.Timeline(25, 25)
|
||||
self.alpha = clutter.Alpha(self.timeline, clutter.ramp_inc_func)
|
||||
self.behaviour = clutter.BehaviourOpacity(self.alpha, 0,255)
|
||||
self.behaviour = clutter.BehaviourOpacity(opacity_start=0, opacity_end=255, alpha=self.alpha)
|
||||
if state:
|
||||
self.spinner = Spinner()
|
||||
|
||||
|
@ -291,8 +291,8 @@ class message():
|
|||
|
||||
self.timeline = clutter.Timeline(10,30)
|
||||
alpha = clutter.Alpha(self.timeline, clutter.ramp_inc_func)
|
||||
self.behaviour_group = clutter.BehaviourOpacity(alpha, 0, 255)
|
||||
self.behaviour_backdrop = clutter.BehaviourOpacity(alpha, 0, 180)
|
||||
self.behaviour_group = clutter.BehaviourOpacity(opacty_start=0, opacity_end=255, alpha=alpha)
|
||||
self.behaviour_backdrop = clutter.BehaviourOpacity(opacity_start=0, opacity_end=180, alpha=alpha)
|
||||
self.behaviour_group.apply(self.main_group)
|
||||
self.behaviour_backdrop.apply(self.backdrop)
|
||||
self.timeline.start()
|
||||
|
@ -302,8 +302,8 @@ class message():
|
|||
|
||||
self.timeline = clutter.Timeline(10,30)
|
||||
alpha = clutter.Alpha(self.timeline, clutter.ramp_inc_func)
|
||||
self.behaviour_group = clutter.BehaviourOpacity(alpha, 255, 0)
|
||||
self.behaviour_backdrop = clutter.BehaviourOpacity(alpha, 180, 0)
|
||||
self.behaviour_group = clutter.BehaviourOpacity(opacty_start=255, opacity_end=0, alpha=alpha)
|
||||
self.behaviour_backdrop = clutter.BehaviourOpacity(opacity_start=180, opacity_end=0, alpha=alpha)
|
||||
self.behaviour_group.apply(self.main_group)
|
||||
self.behaviour_backdrop.apply(self.backdrop)
|
||||
self.timeline.start()
|
||||
|
|
2
Menu.py
2
Menu.py
|
@ -380,7 +380,7 @@ class ListItem (clutter.Label):
|
|||
self.tempTexture.hide_all()
|
||||
|
||||
#Set position
|
||||
(abs_x, abs_y) = self.get_abs_position()
|
||||
(abs_x, abs_y) = self.get_position()
|
||||
|
||||
x = abs_x# - self.tempTexture.get_width()
|
||||
y = (self.menu.getStage().get_height()/2) - (self.tempTexture.get_height()/2)
|
||||
|
|
|
@ -6,7 +6,7 @@ class Texture_Reflection (clutter.Texture):
|
|||
clutter.Texture.__init__(self)
|
||||
self.set_pixbuf(origTexture.get_pixbuf())
|
||||
|
||||
(w, h) = origTexture.get_abs_size()
|
||||
(w, h) = origTexture.get_size()
|
||||
self.set_width(w)
|
||||
self.set_height(h)
|
||||
|
||||
|
@ -19,12 +19,12 @@ class Texture_Reflection (clutter.Texture):
|
|||
#self.set_rotation(clutter.Z_AXIS, ang_z[0], 0, 0, 0)
|
||||
|
||||
#Get the location for it
|
||||
(x, y) = origTexture.get_abs_position()
|
||||
(x, y) = origTexture.get_position()
|
||||
print (x, y)
|
||||
#self.set_clip(0,self.get_height()/2,self.get_width(), (self.get_height()/2))
|
||||
|
||||
#Flip it upside down
|
||||
#self.set_rotation(clutter.X_AXIS, 180, 0, origTexture.get_height(), 0)
|
||||
self.set_rotation(clutter.X_AXIS, 180, 0, origTexture.get_height(), 0)
|
||||
#self.rotate_x(180,origTexture.get_height(),0)
|
||||
self.set_opacity(50)
|
||||
|
||||
|
|
Binary file not shown.
BIN
Spinner.pyc
BIN
Spinner.pyc
Binary file not shown.
|
@ -120,7 +120,7 @@ class VideoController:
|
|||
timeline = clutter.Timeline(15, 25)
|
||||
timeline.connect('completed', self.end_video_event)
|
||||
alpha = clutter.Alpha(timeline, clutter.ramp_inc_func)
|
||||
self.behaviour = clutter.BehaviourOpacity(alpha, 255,0)
|
||||
self.behaviour = clutter.BehaviourOpacity(opacity_start=255, opacity_end=0, alpha=alpha)
|
||||
self.behaviour.apply(self.video_texture)
|
||||
if not (self.blackdrop is None):
|
||||
self.behaviour.apply(self.blackdrop)
|
||||
|
|
|
@ -44,7 +44,7 @@ class Module:
|
|||
timeline = clutter.Timeline(15, 25)
|
||||
timeline.connect('completed', self.end_video_event)
|
||||
alpha = clutter.Alpha(timeline, clutter.ramp_inc_func)
|
||||
behaviour = clutter.BehaviourOpacity(alpha, 255,0)
|
||||
behaviour = clutter.BehaviourOpacity(opacity_start=255, opacity_end=0, alpha=alpha)
|
||||
behaviour.apply(self.video)
|
||||
|
||||
timeline.start()
|
||||
|
|
Loading…
Reference in New Issue