Ajout du système d'objets cliquable et changement du système #21
27
src/engine/plugins/clickable.py
Normal file
27
src/engine/plugins/clickable.py
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
"""
|
||||||
|
Definit un plugin qui verifie si un objet Hover est cliqué.
|
||||||
|
"""
|
||||||
|
|
||||||
|
from engine import *
|
||||||
|
|
||||||
|
|
||||||
|
class ClickablePlugin(Plugin):
|
||||||
|
"""
|
||||||
|
Plugin qui verifie si un objet Hover est cliqué.
|
||||||
|
"""
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def _update(world: World) -> None:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
class Clickable:
|
||||||
|
"""
|
||||||
|
Un composant qui marque une entitée comme pouvant etre cliqué.
|
||||||
|
"""
|
||||||
|
|
||||||
|
class Clicked:
|
||||||
|
"""
|
||||||
|
Un composant qui marque une entitée comme etant cliqué.
|
||||||
|
"""
|
Loading…
Reference in a new issue