标题: 几个关于Button设置的问题
ddj30000
会员
Rank: 1



UID 723
精华 0
积分 19
帖子 3
阅读权限 5
注册 2008-2-28
 
发表于 2008-2-28 20:02  资料  短消息  加为好友 
几个关于Button设置的问题

我在编辑菜单的时候不论LOCATE的X值设为多少,出现的button总是贴着画面最左边出现,但Y的调整是有效的 具体语句如下:
[position layer=message1 visible=true opacity=0 top=0 height=600 left=0 width=800 marginl=0

margint=0 marginr=0 marginb=0 frame=""]
[rclick enabled=false]
[locate x=600 y=100]
[button normal="new game" over="new game1" on="new game"  target=*open storage=open.ks

recthit=true]


[locate x=400 y=150]
[button normal="load" over="load1" on="load" visible=true target=*load recthit=true]

能否设置button进入时候的也有像image似的位移和渐变效果,如果能,语句具体要怎么写?

如果不加限制,button的默认层是在message1么?

顶部
sarah707
亲友
Rank: 2


UID 15
精华 3
积分 825
帖子 366
阅读权限 50
注册 2006-12-20
 
发表于 2008-2-28 21:01  资料  短消息  加为好友 
current之后再locate
current在back层然后trans就可以
message层也可以move

用法:[current layer=message1 page=fore]

默认层是message0的fore






KX3游戏制作组
顶部
ddj30000
会员
Rank: 1



UID 723
精华 0
积分 19
帖子 3
阅读权限 5
注册 2008-2-28
 
发表于 2008-2-28 21:35  资料  短消息  加为好友 
那个X Y的问题好象是KCDDP本身的BUG,把[]改成@就好了,很奇怪

关于BUTTON的移动和图案渐变 能给个语句的例子么,还是不太明白要怎么写

顶部
sarah707
亲友
Rank: 2


UID 15
精华 3
积分 825
帖子 366
阅读权限 50
注册 2006-12-20
 
发表于 2008-2-29 01:25  资料  短消息  加为好友 
[current layer=message1 page=back]
[locate x=600 y=100]
[button normal="new game" over="new game1" on="new game"  target=*open storage=open.ks recthit=true]
[trans method=ripple time=1000]
[wt]

就是这样,如果要移动按钮也是移message层,用Move,跟其他一样的用法
xy的问题不清楚是不是bug,但是无论如何在防止按钮前current一下才是不出错的做法……






KX3游戏制作组
顶部
ddj30000
会员
Rank: 1



UID 723
精华 0
积分 19
帖子 3
阅读权限 5
注册 2008-2-28
 
发表于 2008-3-2 09:42  资料  短消息  加为好友 
谢谢解答 终于知道怎么弄了

顶部
 



清除 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.023454 second(s), 9 queries , Gzip enabled
粤ICP备05060595号
[ 当前模板 - 天高云淡 v 设计制作 - 七星论坛 v 请使用1024*768或以上分辨率浏览本模板 ]
请勿删除或修改此处版权图示