class WMAbout extends Sprite

Available on all platforms

About message

Instance Fields

var bgAlpha:Float

background color alpha: default is 0.5

var bgColor:Int

background color: default is green

var descriptionColor:Int

font color for description: default is red

var font_large_ratio:Float

font size ratio for large characters: stageWidth * this value is used as font size. Default value is 0.05. If you set this value, you must invoke setFontSizeLargeByRatio function to set font size.

var font_size_large:Float

font size for characters such as "wm3d"; using font_large_ratio will be better since that value considers the window width. See it and setFontSizeSmallByRatio function.

var font_size_small:Float

font size for characters such as version name

var font_small_ratio:Float

font size ratio for small characters: stageWidth * this value is used as font size. Default value is 0.03. If you set this value, you must invoke setFontSizeSmallByRatio function to set font size.

var fontname:String

font name for drawing message: default is "Arial"

var margin:Int

window margin size; see also margin_ratio and setMarginByRatio function.

var margin_ratio:Float

margin size ratio: stageWidth * this value is used as the margin size. Default value is 0.1.

var noticeColor:Int

font color for notice message: default is black

var softnameColor:Int

font color for "wm3d" in about; default is black

var versionColor:Int

font color for version: default is black

function new(win:Stage):Void

Constructor. You can specify a Stage where about message will be displayed by win.

function drawAbout():WMAbout

draw about message

function get_bgAlpha():Float

getter for bgAlpha

function get_bgColor():Int

getter for bgColor

function get_descriptionColor():Int

getter for descriptionColor

function get_font_large_ratio():Float

getter for font_large_ratio

function get_font_size_large():Float

getter for font_size_large

function get_font_size_small():Float

getter for font_size_small

function get_font_small_ratio():Float

getter for font_small_ratio

function get_fontname():String

getter for fontname

function get_margin():Int

getter of margin

function get_margin_ratio():Float

getter for margin_ratio

function get_noticeColor():Int

getter for noticeColor

function get_softnameColor():Int

getter for softnameColor

function get_versionColor():Int

getter for versionColor

function resetFontSizes():Void

reset font size according to the font_large_ratio and font_small_ratio

function setFontSizeLargeByRatio(f:Float):Void

set font_size_large from font_large_ratio and stage width. If argument f is given, f is used as fontlargeratio.

function setFontSizeSmallByRatio(f:Float):Void

set font_size_small from font_small_ratio and stage width. If argument f is given, f is used as fontsmallratio.

function setMarginByRatio(f:Float):Void

set margin from margin_ratio and stage width. If argument f is given, f is used as margin_ratio.

function set_bgAlpha(a:Float):Float

setter for bgAlpha

function set_bgColor(c:Int):Int

setter for bgColor

function set_descriptionColor(c:Int):Int

setter for descriptionColor

function set_font_large_ratio(f:Float):Float

setter for font_large_ratio

function set_font_size_large(f:Float):Float

setter for font_size_large

function set_font_size_small(f:Float):Float

setter for font_size_small

function set_font_small_ratio(f:Float):Float

setter for font_small_ratio

function set_fontname(f:String):String

setter for fontname

function set_margin(f:Int):Int

setter of margin

function set_margin_ratio(f:Float):Float

setter for margin_ratio

function set_noticeColor(c:Int):Int

setter for noticeColor

function set_softnameColor(c:Int):Int

setter for softnameColor

function set_versionColor(c:Int):Int

setter for versionColor