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:58]
geez437 [Examples]
built_in:alert [2018/05/22 02:16]
Line 1: Line 1:
-=====Alert===== 
- 
-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==== 
-^ Option   ^ Description                     ^ 
-| "NoDim"  | Set the background transparent  | 
- 
----- 
-====Examples==== 
- 
-===No Title=== 
- 
-<code javascript> 
- 
-function OnStart() 
-{ 
-  app.Alert( "Hello World!" ); 
- 
- 
-</code> 
- 
- 
-===Title=== 
- 
-<code javascript> 
- 
-function OnStart() 
-{ 
-  app.Alert( "Hello World!", "Message" ); 
- 
- 
-</code> 
- 
-===Hue=== 
- 
-The argument [[built_in:hue|hue]] represents the color of the title text and the horizontal line below.  
- 
-<code javascript> 
- 
-//Orange title and horizontal line 
-function OnStart() 
-{ 
-  app.Alert( "Hello World!", "Message", "", 180 ); 
-} 
- 
-</code> 
- 
-{{ https://i.imgur.com/TUgy5Cd.jpg }} 
- 
- 
- 
- 
- 
- 
  
built_in/alert.txt ยท Last modified: 2018/05/22 02:16 (external edit)