标题: 怎么做姓名框啊.....
KRKR大白
会员
Rank: 1



UID 2393
精华 0
积分 24
帖子 4
阅读权限 5
注册 2009-10-16
 
发表于 2009-10-16 16:37  资料  短消息  加为好友 
怎么做姓名框啊.....

到底怎么做的说啊........沮丧中..............

顶部
hanyueying
禁止发言




UID 2282
精华 0
积分 16118
帖子 3246
阅读权限 0
注册 2009-7-30
 
发表于 2009-10-16 17:57  资料  短消息  加为好友 
对话框会做不?跟那个一样,就是框小点而已

顶部
KRKR大白
会员
Rank: 1



UID 2393
精华 0
积分 24
帖子 4
阅读权限 5
注册 2009-10-16
 
发表于 2009-10-16 18:35  资料  短消息  加为好友 
那怎么在姓名框里输入姓名呢?

顶部
hanyueying
禁止发言




UID 2282
精华 0
积分 16118
帖子 3246
阅读权限 0
注册 2009-7-30
 
发表于 2009-10-17 01:44  资料  短消息  加为好友 
;-------------------------------------------------------
;显示姓名和姓名框
[macro name=sn]
;无名字消去框 直接录入
[eval exp="sf.nowname=mp.name"]
[eval exp="sf.historyable=1"]
[if exp="sf.nowname==(void)"]
        [current layer=message3 page=fore][er]
        [move layer=6 time=170 path=(53,405,0)]
        [action layer=6 module=LayerNormalZoomModule zoom=60 time=170]
        [wait time=200 canskip="false"]
        [history output="true"]
[elsif exp="sf.prename.length!=0"]
;之前有姓名,直接载入姓名
        [history output="true"]
        [position layer=message3 left=0 top=0 width=800 height=600 marginl=0 margint=0 marginr=0 marginb=0 opacity=0 visible=true page=fore]
        [current layer=message3 page=fore][er]
        [font face="隶书" size=22 color=0xffffff  bold=false"]
        [nowait]
                [if exp="mp.name.length==4"]
                        ;四字模式 164 452
                        [locate x=85 y=405]
                        [ch text=&mp.name]
                        [r]
                [elsif exp="mp.name.length==3"]
                        [locate x=100 y=405]
                        [ch text=&mp.name]
                        [r]
                [elsif exp="mp.name.length==2"]
                        [locate x=110 y=405]
                        [ch text=&mp.name]
                        [r]
                [endif]
        [endnowait]
[elsif exp="sf.prename.length==0"]
;之前没有姓名,重新载入姓名框
        [image layer=6 page=fore storage="gamenameform0.png" visible=true left=53 top=405 opacity=0]
        [action layer=6 module=LayerNormalZoomModule zoom=60 time=10]
        [wait time=100 canskip="false"]
        ;show_nameform
        [move layer=6 time=80 path=(53,405,255)]
        [action layer=6 module=LayerNormalZoomModule zoom=100 time=80]
        [wait time=200 canskip="false"]
        ;——————————————————————————————————————————————
        ;名字
        [history output="true"]
        [position layer=message3 left=0 top=0 width=800 height=600 marginl=0 margint=0 marginr=0 marginb=0 opacity=0 visible=true page=fore]
        [current layer=message3 page=fore][er]
        [font face="隶书" size=22 color=0xffffff  bold=false"]
        [nowait]
                [if exp="mp.name.length==4"]
                        ;四字模式 164 452
                        [locate x=85 y=405]
                        [ch text=&mp.name]
                        [r]
                [elsif exp="mp.name.length==3"]
                        [locate x=100 y=405]
                        [ch text=&mp.name]
                        [r]
                [elsif exp="mp.name.length==2"]
                        [locate x=110 y=405]
                        [ch text=&mp.name]
                        [r]
                [endif]
        [endnowait]
        [endif]
[endif]
;——————————————————————————————————————————————
;对话内容显示
[eval exp="sf.prename=mp.name"]
[position layer=message2 left=0 top=0 width=800 height=600 marginl=120 margint=460 marginr=80 marginb=27 opacity=0 visible=true page=fore]
[current layer=message2 page=fore][er]
[deffont face="幼圆" size=20 color=0xffffff bold="false" edge="false" shadow="false"]
[defstyle linespacing=15]
[resetfont]
[resetstyle]
[endmacro]

;----------------------------------------------------------------------------------
;对话框和系统按钮
;-----------------------------------------------------------------------------------
[macro name=talk]
[rclick call="true" target="*visible" storage="macro.ks" enabled="true"]
[image layer=4 page=fore storage="frame.png" visible=true left=0 top=600 opacity=0]
;按钮
[position layer=message0 left=0 top=0 width=800 height=600 marginl=80 margint=450 marginr=80 marginb=70 opacity=0 visible=true page=fore]
[current layer=message0 page=fore]
[move layer=message0 time=1 path=(0,600,0)]
[nowait]
[sysbutton name=save x=430 y=430 normal="gamesavebutton0.png" over="gamesavebutton1.png" on="gamesavebutton1.png" exp="kag.callExtraConductor('save.ks', '*start')" clickse="s1"  recthit=true]
[sysbutton name=load x=480 y=430 normal="gameloadbutton0.png" over="gameloadbutton1.png" on="gameloadbutton1.png" exp="kag.callExtraConductor('load.ks', '*start')" clickse="s1"  recthit=true]
[sysbutton name=auto x=530 y=430 normal="gameautobutton0.png" over="gameautobutton1.png" on="gameautobutton1.png"  exp="kag.autoMode?kag.cancelAutoMode():kag.enterAutoMode()"noStable=true clickse="s1"  recthit=true]
[sysbutton name=skip x=580 y=430 normal="gameskipbutton0.png" over="gameskipbutton1.png" on="gameskipbutton1.png"  exp="kag.skipMode?kag.cancelSkip():kag.skipToStop()" noStable=true clickse="s1"  recthit=true]
[sysbutton name=config x=630 y=430 normal="gamesystembutton0.png" over="gamesystembutton1.png" on="gamesystembutton1.png"  exp="kag.callExtraConductor('system.ks', '*start')" clickse="s1"  recthit=true]
[sysbutton name=exit x=700 y=430 normal="gamexitbutton0.png" over="gamexitbutton1.png" on="gamexitbutton1.png"  exp="kag.callExtraConductor('mainmenu.ks', '*exit')" clickse="s1"  recthit=true]
[endnowait]
;显示
[move layer=message0 time=800 path=(0,0,255)]
[move layer=4 time=800 path=(0,0,255 ]
[wait time=800 canskip="false"]
[current layer=message0 page=fore]
[endmacro]

;消去对话框
[macro name=xtalk]
[move layer=message0 time=800 path=(0,600,255)]
[move layer=4 time=800 path=(0,600,255 ]
[wait time=800 canskip="false"]
[current layer=message0 page=fore]
[endmacro]

;消去姓名和姓名框
[macro name=xnf]
[current layer=message3 page=fore][er]
[move layer=6 time=170 path=(53,405,0)]
[action layer=6 module=LayerNormalZoomModule zoom=30 time=170]
[wait time=200 canskip="false"]
[endmacro]

自己拿回去改改吧!

顶部
KRKR大白
会员
Rank: 1



UID 2393
精华 0
积分 24
帖子 4
阅读权限 5
注册 2009-10-16
 
发表于 2009-10-17 11:17  资料  短消息  加为好友 
嗯~ARIGADONA

顶部
 



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