标题: [插件] YesNoDialog.tjs图片窗口版(不支持半透明)
全局变量D
亲友
Rank: 2



UID 14
精华 1
积分 1262
帖子 719
阅读权限 50
注册 2006-12-20
 
发表于 2011-11-21 19:33  资料  短消息  加为好友 
格式范例:

一般的按钮,三张图:
一般:
按下:
选中:

YESNO里需要用到的按钮,一张图:





顶部
全局变量D
亲友
Rank: 2



UID 14
精华 1
积分 1262
帖子 719
阅读权限 50
注册 2006-12-20
 
发表于 2011-11-21 19:55  资料  短消息  加为好友 
使用普通按钮的方法:
还有,第二个办法是:
在一开始的
var yesButton; // [はい] ボタン
var noButton; // [いいえ] ボタン
这两行后面,加入:

        var tempLayer;        
        property temporaryLayer
        {
                // ワークエリアとして一時的に使用できるレイヤを返す
                getter()
                {
                        if(tempLayer === void)
                        {
                                tempLayer = new KAGLayer(this, primaryLayer);
                                tempLayer.name = "一時ワークレイヤ";
                        }
                        return tempLayer;
                }
        }


然后再采用
add(noButton = new ButtonLayer(this, primaryLayer));
noButton.loadButtons("normal", "over", "on");
的方式来处理按钮。





顶部
 



清除 Cookies - 联系我们 - [Key Fans Club] the Council of Doujin-game Development and Promotion - Archiver - WAP
Powered by Discuz! 5.5.0 © 2001-2006 Comsenz Inc.
Processed in 0.024424 second(s), 11 queries , Gzip enabled
粤ICP备05060595号
[ 当前模板 - 天高云淡 v 设计制作 - 七星论坛 v 请使用1024*768或以上分辨率浏览本模板 ]
请勿删除或修改此处版权图示