added tooltips for all the other tools
[tabakrolletjie.git] / tabakrolletjie / scenes / load_level.py
index 015a5f69bb6b8b378d2c52db1e0c104521f2c5b6..af7bf6afaa350f1e8301ef4ff5a310b09a6d8cbe 100644 (file)
@@ -7,7 +7,7 @@ import pygame.locals as pgl
 from .base import BaseScene
 from ..constants import SCREEN_SIZE
 from ..events import SceneChangeEvent
-from ..widgets import TextButton, ImageButton
+from ..widgets import TextButton, ImageButton, Tooltip
 from ..loader import loader
 
 
@@ -41,7 +41,7 @@ class LoadLevelScene(BaseScene):
         tools = []
         tools.append(ImageButton(
             '32', 'exit.png', name='exit',
-            pos=(SCREEN_SIZE[0] - 50, SCREEN_SIZE[1] - 40)))
+            pos=(SCREEN_SIZE[0] - 50, SCREEN_SIZE[1] - 40), tooltip=Tooltip(["Exit"])))
         return tools
 
     def render(self, surface, gamestate):