2月3日、吉里吉里を落とした
■ このスレッドは過去ログ倉庫に格納されています
0502名前は開発中のものです。
03/07/02 20:02ID:oUI6UIpNfunction drawState(s)
{
if(!enabled) s = 0; // 無効状態
if(Butt_keyPressed) s = 1; // 押されている
opacity = 128;
// 枠とキャプションを描画
// クリア
face = dfBoth;
colorRect(0, 0, width, height, 0, -255);
// 文字のサイズを得る
var tw, th;
tw = font.getTextWidth(Butt_caption);
th = font.getTextHeight(Butt_caption);
drawText((width-tw)>>1, (height-th)>>1,
Butt_caption, Butt_captionColor, nodeEnabled?255:128);
if(s != 0) opacity = 255;
}
とでも書いてその動きを研究してみてくれ。
■ このスレッドは過去ログ倉庫に格納されています