GCompris-qt
Inherits QtQuick.Image, and Image.
Signals | |
void | loose () |
void | win () |
Public Member Functions | |
void | bad (name) |
void | good (name) |
Properties | |
string | looseSound |
string | winSound |
Detailed Description
A QML component providing user feedback upon winning/loosing.
Usually triggered by an activity when a user has won/lost a level via the good / bad methods. Bonus then provides visual and auditive feedback to the user and emits the win / loose signals when finished.
Maintains a list of possible audio voice resources to be playebd back upon winning/loosing events, and selects randomly from them when triggered.
Member Function Documentation
void Bonus::bad | ( | name | ) |
Triggers loose feedback.
Tries to play back a voice resource for loosing, if not found fall back to the looseSound.
- Parameters
-
name Type of win image to show. Possible values are "flower", "gnu", "lion", "note", "smiley", "tux"
void Bonus::good | ( | name | ) |
Triggers win feedback.
Tries to play back a voice resource for winning, if not found fall back to the winSound.
- Parameters
-
name Type of win image to show. Possible values are "flower", "gnu", "lion", "note", "smiley", "tux"
|
signal |
Emitted when the loose event is over.
After the animation has finished.
|
signal |
Emitted when the win event is over.
After the animation has finished.
Property Documentation
string Bonus::looseSound |
string Bonus::winSound |
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2015 The KDE developers.
Generated on Tue Jun 2 2015 21:47:48 by doxygen 1.8.9.1 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.