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 13:19] geez437 [HTML Alert] |
built_in:alert [2018/05/22 02:16] (current) |
||
---|---|---|---|
Line 58: | Line 58: | ||
{ | { | ||
// | // | ||
- | | + | |
- | | + | |
- | | + | |
| | ||
// | // | ||
- | | + | |
- | | + | |
- | | + | |
| | ||
+ | // | ||
+ | htmlAlertTitle = app.CreateText( title ); | ||
+ | htmlAlertTitle.SetTextSize( 30 ); | ||
+ | htmlAlertTitle.SetMargins( 0.02 ); | ||
+ | htmlAlertTitle.SetTextColor( clr2 ); | ||
| | ||
- | | + | |
- | geez437Title.SetTextSize( 30 ); | + | htmlAlertHr |
- | geez437Title.SetMargins( | + | |
- | | + | |
| | ||
- | | + | |
- | | + | htmlAlertText |
+ | htmlAlertText.SetMargins( | ||
+ | htmlAlertText.SetHtml( text ); | ||
+ | | ||
| | ||
- | | + | |
- | geez437Text.SetMargins( 0.02 ); | + | |
- | geez437Text.SetHtml( text ); | + | |
- | geez437Text.SetTextColor( clr1 ); | + | |
- | | + | |
- | | + | |
- | | + | |
- | + | ||
- | geez437Button = app.CreateText( " | + | |
- | geez437Button.SetPadding( 0, 0.01 ); | + | |
- | geez437Button.SetBackColor( bclr ); | + | |
- | geez437Button.SetTextColor( clr1 ); | + | |
- | geez437Button.SetOnTouchUp( function() { geez437.Animate( " | + | |
| | ||
+ | //" | ||
+ | htmlAlertButton = app.CreateText( " | ||
+ | htmlAlertButton.SetPadding( 0, 0.01 ); | ||
+ | htmlAlertButton.SetBackColor( bclr ); | ||
+ | htmlAlertButton.SetTextColor( clr1 ); | ||
+ | htmlAlertButton.SetOnTouchUp( function() { htmlAlertLayout.Animate( " | ||
| | ||
//add objects to app | //add objects to app | ||
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | app.AddLayout( | + | app.AddLayout( |
} | } | ||
</ | </ |