diff --git a/ropy-33.blend b/ropy-33.blend index c24f342..1f88159 100644 Binary files a/ropy-33.blend and b/ropy-33.blend differ diff --git a/rp_about.py b/rp_about.py index 9f039c5..9917122 100644 --- a/rp_about.py +++ b/rp_about.py @@ -78,8 +78,11 @@ def open(): # Liens 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-upbge'].color= color_link + scene.objects['About_text-upbge'].color= color_link # Animation scene.objects['About'].setVisible(True,True) @@ -132,16 +135,33 @@ def open_anim(): ## def hl(cont): - if cont.sensors['MO'].status == JUST_ACTIVATED: + + # Focus sourie + 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: + # 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 name=obj.name[:-7] 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 ## @@ -156,18 +176,6 @@ def link(cont): 'About_link-upbge' : 'https://www.upbge.org'} 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 ############################################################################### diff --git a/rp_config.xml b/rp_config.xml index ad9ea0d..ac61dce 100644 --- a/rp_config.xml +++ b/rp_config.xml @@ -3,14 +3,14 @@ 1.0 False - -3.413217782974243 - -5.997838020324707 - 7.996504783630371 + 0.0057830810546875 + -26.440298080444336 + 20.22315788269043 - 1557 - 875 - 0 + 1556 + 876 + 4