This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
built_in:alert [2018/05/21 17:58] geez437 [HTML Alert] |
built_in:alert [2018/05/22 02:16] (current) |
||
---|---|---|---|
Line 67: | Line 67: | ||
htmlAlert.SetSize( 0.8, 0.2 ); | htmlAlert.SetSize( 0.8, 0.2 ); | ||
| | ||
- | | + | |
htmlAlertTitle = app.CreateText( title ); | htmlAlertTitle = app.CreateText( title ); | ||
htmlAlertTitle.SetTextSize( 30 ); | htmlAlertTitle.SetTextSize( 30 ); | ||
Line 73: | Line 73: | ||
htmlAlertTitle.SetTextColor( clr2 ); | htmlAlertTitle.SetTextColor( clr2 ); | ||
| | ||
+ | // | ||
htmlAlertHr = app.CreateText( "", | htmlAlertHr = app.CreateText( "", | ||
htmlAlertHr.SetBackColor( clr2 ); | htmlAlertHr.SetBackColor( clr2 ); | ||
| | ||
+ | //text in alert | ||
htmlAlertText = app.CreateText( "", | htmlAlertText = app.CreateText( "", | ||
htmlAlertText.SetMargins( 0.02 ); | htmlAlertText.SetMargins( 0.02 ); | ||
Line 81: | Line 83: | ||
htmlAlertText.SetTextColor( clr1 ); | htmlAlertText.SetTextColor( clr1 ); | ||
| | ||
+ | // | ||
htmlAlertHr2 = app.CreateText( "", | htmlAlertHr2 = app.CreateText( "", | ||
htmlAlertHr2.SetBackColor( clr2 ); | htmlAlertHr2.SetBackColor( clr2 ); | ||
| | ||
+ | //" | ||
htmlAlertButton = app.CreateText( " | htmlAlertButton = app.CreateText( " | ||
htmlAlertButton.SetPadding( 0, 0.01 ); | htmlAlertButton.SetPadding( 0, 0.01 ); | ||
htmlAlertButton.SetBackColor( bclr ); | htmlAlertButton.SetBackColor( bclr ); | ||
htmlAlertButton.SetTextColor( clr1 ); | htmlAlertButton.SetTextColor( clr1 ); | ||
- | htmlAlertButton.SetOnTouchUp( function() { geez437.Animate( " | + | htmlAlertButton.SetOnTouchUp( function() { htmlAlertLayout.Animate( " |
- | | + | |
| | ||
//add objects to app | //add objects to app |