User Tools

Site Tools


built_in:alert

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

built_in:alert [2018/05/20 19:50]
geez437 [Example - Hue]
built_in:alert [2018/05/22 02:16]
Line 1: Line 1:
-=====Alert===== 
- 
-====Description==== 
- 
-The **Alert** method shows a popup message on the screen which stays on  
-screen until the user presses the Ok button or back button.  
- 
-<code> app.Alert( text, title, options, hue );</code> 
-options can be "NoDim". The argument [[built_in:hue|hue]] represents the color of the title text and the horizontal line below.  
- 
----- 
- 
- 
- 
- 
-====Example - No Title==== 
- 
-<code javascript> 
- 
-function OnStart() 
-{ 
-  app.Alert( "Hello World!" ); 
- 
- 
-</code> 
- 
- 
-====Example - Title==== 
- 
-<code javascript> 
- 
-function OnStart() 
-{ 
-  app.Alert( "Hello World!", "Message" ); 
- 
- 
-</code> 
- 
-====Example - Hue ==== 
- 
-<code javascript> 
- 
-//Orange title and horizontal line 
-function OnStart() 
-{ 
-  app.Alert( "Hello World!", "Message", "", 180 ); 
-} 
- 
-</code> 
- 
-====Example - Picture==== 
- 
-{{ https://i.imgur.com/TUgy5Cd.jpg }} 
- 
- 
- 
- 
  
built_in/alert.txt · Last modified: 2018/05/22 02:16 (external edit)