Difference between revisions of "Gb.popup"

From Gamebuino Wiki
Jump to: navigation, search
(Example: source from github)
m (Parameters: added default FPS)
Line 9: Line 9:
 
== Parameters ==
 
== Parameters ==
 
* F("Text") (progmem char*): The text to be popped-up
 
* F("Text") (progmem char*): The text to be popped-up
* duration (byte): how long will the popup stay on screen, expressed in number of frames.
+
* duration (byte): how long will the popup stay on screen, expressed in number of frames (20 frames per second by default)
  
 
== Returns ==
 
== Returns ==

Revision as of 2014-05-19T22:04:16


Description

Displays a pop-up message on the bottom of the screen for a given duration.

Syntax

gb.popup(F("Text"), duration);

Parameters

  • F("Text") (progmem char*): The text to be popped-up
  • duration (byte): how long will the popup stay on screen, expressed in number of frames (20 frames per second by default)

Returns

none

Example

See also