mirror of
https://forge.apps.education.fr/blender-edutech/ropy.git
synced 2024-01-27 08:23:20 +01:00
About : liens forge et upbge avec le texte
This commit is contained in:
parent
bd2648ab78
commit
b36244ee86
BIN
ropy-33.blend
BIN
ropy-33.blend
Binary file not shown.
36
rp_about.py
36
rp_about.py
@ -78,8 +78,11 @@ def open():
|
|||||||
|
|
||||||
# Liens
|
# Liens
|
||||||
scene.objects['About_link-git'].color= color_link
|
scene.objects['About_link-git'].color= color_link
|
||||||
|
scene.objects['About_text-git'].color= color_link
|
||||||
|
scene.objects['About_text2-git'].color= color_link
|
||||||
scene.objects['About_link-gpl'].color= color_link
|
scene.objects['About_link-gpl'].color= color_link
|
||||||
scene.objects['About_link-upbge'].color= color_link
|
scene.objects['About_link-upbge'].color= color_link
|
||||||
|
scene.objects['About_text-upbge'].color= color_link
|
||||||
|
|
||||||
# Animation
|
# Animation
|
||||||
scene.objects['About'].setVisible(True,True)
|
scene.objects['About'].setVisible(True,True)
|
||||||
@ -132,16 +135,33 @@ def open_anim():
|
|||||||
##
|
##
|
||||||
|
|
||||||
def hl(cont):
|
def hl(cont):
|
||||||
if cont.sensors['MO'].status == JUST_ACTIVATED:
|
|
||||||
|
# Focus sourie
|
||||||
|
if cont.sensors['MO'].status == JUST_ACTIVATED :
|
||||||
obj = cont.owner
|
obj = cont.owner
|
||||||
name=obj.name[:-7]
|
name=obj.name[:-7]
|
||||||
scene.objects[name].color = color_link_hl
|
scene.objects[name].color = color_link_hl
|
||||||
|
|
||||||
if cont.sensors['MO'].status == JUST_RELEASED:
|
# Liens composés de texte
|
||||||
|
if name == "About_link-git":
|
||||||
|
scene.objects["About_text-git"].color = color_link_hl
|
||||||
|
scene.objects["About_text2-git"].color = color_link_hl
|
||||||
|
if name == "About_link-upbge":
|
||||||
|
scene.objects["About_text-upbge"].color = color_link_hl
|
||||||
|
|
||||||
|
# Perte du focus sourie
|
||||||
|
if cont.sensors['MO'].status == JUST_RELEASED :
|
||||||
obj = cont.owner
|
obj = cont.owner
|
||||||
name=obj.name[:-7]
|
name=obj.name[:-7]
|
||||||
scene.objects[name].color = color_link
|
scene.objects[name].color = color_link
|
||||||
|
|
||||||
|
# Liens composés de texte
|
||||||
|
if name == "About_link-git":
|
||||||
|
scene.objects["About_text-git"].color = color_link
|
||||||
|
scene.objects["About_text2-git"].color = color_link
|
||||||
|
if name == "About_link-upbge":
|
||||||
|
scene.objects["About_text-upbge"].color = color_link
|
||||||
|
|
||||||
##
|
##
|
||||||
# Liens
|
# Liens
|
||||||
##
|
##
|
||||||
@ -156,18 +176,6 @@ def link(cont):
|
|||||||
'About_link-upbge' : 'https://www.upbge.org'}
|
'About_link-upbge' : 'https://www.upbge.org'}
|
||||||
webbrowser.open(link [name])
|
webbrowser.open(link [name])
|
||||||
|
|
||||||
def link_hl(cont):
|
|
||||||
decal = 15
|
|
||||||
if cont.sensors['MO'].status == JUST_ACTIVATED :
|
|
||||||
obj = cont.owner
|
|
||||||
name=obj.name[:-7]
|
|
||||||
scene.objects[name].color = color_link_hl
|
|
||||||
|
|
||||||
if cont.sensors['MO'].status == JUST_RELEASED :
|
|
||||||
obj = cont.owner
|
|
||||||
name=obj.name[:-7]
|
|
||||||
scene.objects[name].color = color_link
|
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Page Crédits
|
# Page Crédits
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
@ -3,14 +3,14 @@
|
|||||||
<speed>1.0</speed>
|
<speed>1.0</speed>
|
||||||
<sound>False</sound>
|
<sound>False</sound>
|
||||||
<cam>
|
<cam>
|
||||||
<worldPosition.x>-3.413217782974243</worldPosition.x>
|
<worldPosition.x>0.0057830810546875</worldPosition.x>
|
||||||
<worldPosition.y>-5.997838020324707</worldPosition.y>
|
<worldPosition.y>-26.440298080444336</worldPosition.y>
|
||||||
<worldPosition.z>7.996504783630371</worldPosition.z>
|
<worldPosition.z>20.22315788269043</worldPosition.z>
|
||||||
</cam>
|
</cam>
|
||||||
<screen>
|
<screen>
|
||||||
<width>1557</width>
|
<width>1556</width>
|
||||||
<height>875</height>
|
<height>876</height>
|
||||||
<quality>0</quality>
|
<quality>4</quality>
|
||||||
</screen>
|
</screen>
|
||||||
</config>
|
</config>
|
||||||
<mission>
|
<mission>
|
||||||
|
Loading…
Reference in New Issue
Block a user