OSDN Git Service

MessageWidgetの手直しと、TextWidgetの実装
authorttwilb <ttwilb@users.sourceforge.jp>
Mon, 26 Aug 2013 13:27:47 +0000 (22:27 +0900)
committerttwilb <ttwilb@users.sourceforge.jp>
Mon, 26 Aug 2013 13:27:47 +0000 (22:27 +0900)
commitecdbbdf9f6aa93bab75e5d1d4169b3d8a8dc4838
tree035d4e469a5bf8c4dc372de31cf52a5107e7d7d4
parentaec32009797d56ba7696f1badf1bb916fc1d0d30
MessageWidgetの手直しと、TextWidgetの実装
TextWidgetは単に画面に非モーダルな文字ボックスを表示するウィジェットで、
mainManager.addWidget(new TextWidgetClass(mainManager, ["Hello, World", true, true, null, 'red']));
// args[0] : 表示するメッセージ。改行を含めることもできる。
// args[1] : アニメーション表示するか。省略可。規定値: true
// args[2] : アニメーション表示時に、最後の文字が表示された直後に閉じるかどうか。省略可。規定値/アニメーション無効時: false
// args[3] : このウィジェットがdetachされたときに実行されるWidget. args[2] == trueだったときのみ利用価値がある。(args[2] == falseのときにはどっちにしろ手動でこのWidgetをdetachする必要がある) 省略可
// args[4] : 背景色(default: black)
www/corelib/classes/MessageWidgetClass.js
www/corelib/classes/TextWidgetClass.js [new file with mode: 0644]
www/corelib/header.js