added tooltips for all the other tools
[tabakrolletjie.git] / tabakrolletjie / scenes / help.py
index df27682e44da3f32cb37716c43ce926af2a8d998..d44e8f67cd6b38f6cb6a15f05058992d73ee049a 100644 (file)
@@ -6,7 +6,7 @@ import pymunk
 import pygame.locals as pgl
 
 from .base import BaseScene
-from ..widgets import ImageButton
+from ..widgets import ImageButton, Tooltip
 from ..constants import SCREEN_SIZE, FONTS, COLOURS
 from ..loader import loader
 from ..events import SceneChangeEvent
@@ -52,7 +52,7 @@ class HelpScene(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 create_items(self, gamestate):
@@ -96,10 +96,16 @@ class HelpScene(BaseScene):
                 " during the night. The battery recharges during the day."),
                 transform=Multiply(colour=COLOURS["yellow"])),
             HelpItem(("48", "pulsatinglamp.png"), (
-                "This is a pulsating lamp. Its light intensity is variable."),
+                "This is a pulsating lamp. Its light radius increases and"
+                " decreases."),
                 transform=Multiply(colour=COLOURS["cyan"])),
             HelpItem(("48", "spotlight.png"), (
-                "This is a spotlight. Unlike a lamp, it has a rotating beam."
+                "This is a spotlight. Unlike a lamp, it has a beam which is"
+                " pointed in a particular direction. To change the direction of"
+                " a beam, right-click near the spotlight and drag. You can only"
+                " do this during the day. Some spotlights rotate."),
+                transform=Multiply(colour=COLOURS["red"])),
+            HelpItem(("48", "lamp.png"), (
                 " Lights can be multicoloured, like this one. You can toggle"
                 " lights on and off at night to conserve power, and toggle the"
                 " colour of multicoloured lights."),
@@ -136,11 +142,15 @@ class HelpScene(BaseScene):
                 " available on your level.")),
             HelpItem(("32", "spotlight.png"), (
                 "Once you have selected a colour option, you will be able to"
-                " place the light."),
+                " place the light, as long as this does not reduce your seed"
+                " count to zero. The cost will be deducted from your seed"
+                " total."),
                 transform=Multiply(colour=COLOURS["magenta"])),
             HelpItem(("32", "remove.png"), (
                 "Buyer's remorse? Use this icon to blow up unwanted lights. You"
                 " don't get your money back. Sorry.")),
+            HelpItem(("32", "default_cursor.png"), (
+                "You can use this to change your cursor back to an arrow.")),
             HelpItem(("32", "night.png"), (
                 "When you have finished planting seeds and placing lights, you"
                 " can prepare for Boyd's night-time onslaught by clicking this"