赞 | 2 |
VIP | 19 |
好人卡 | 10 |
积分 | 3 |
经验 | 57661 |
最后登录 | 2019-5-20 |
在线时间 | 574 小时 |
Lv2.观梦者
- 梦石
- 0
- 星屑
- 253
- 在线时间
- 574 小时
- 注册时间
- 2006-8-25
- 帖子
- 969
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
http://rpg.blue/web/htm/news197.htm
我用了这个脚本的\L[001]\R[001]显示图片的功能.
\L[001]会使图片翻转,刚好相反....我想\R[001]翻转,\L[001]不翻转.
于是我把在L的@left_picture.mirror = true删掉加在R里,发现出了不少问题.
谁会把它们效果反过来,脚本如下.
- #——左半身像设置
- if (/\\[Ll]\[(.+?)\]/.match(@now_text))!=nil then
- @face = "" + $1 + ".png"
- if $加密 == true
- if @left_picture != nil
- @left_picture.dispose
- end
- @left_picture = Sprite.new
- @left_picture.bitmap = Bitmap.new("Graphics/battlers/#{@face}")
- @left_picture.y = 0
- @left_picture.x = -50
- @left_picture.mirror = true
- @now_text.gsub!(/\\[Ll]\[(.*?)\]/) { "" }
- else
- if FileTest.exist?("Graphics/battlers/#{@face}")
- if @left_picture != nil
- @left_picture.dispose
- end
- @left_picture = Sprite.new
- @left_picture.bitmap = Bitmap.new("Graphics/battlers/#{@face}")
- @left_picture.y = 0
- @left_picture.x = -50
- @left_picture.mirror = true
- @now_text.gsub!(/\\[Ll]\[(.*?)\]/) { "" }
- end
- end
- end
- #——右半身像设置
- if (/\\[Rr]\[(.+?)\]/.match(@now_text))!=nil then
- @face = "" + $1 + ".png"
- if $加密 == true
- if @right_picture != nil
- @right_picture.dispose
- end
- @right_picture = Sprite.new
- @right_picture.bitmap = Bitmap.new("Graphics/battlers/#{@face}")
- @right_picture.y = 0
- @right_picture.x = 690-@right_picture.bitmap.width
- @now_text.gsub!(/\\[Rr]\[(.*?)\]/) { "" }
- else
- if FileTest.exist?("Graphics/battlers/#{@face}")
- if @right_picture != nil
- @right_picture.dispose
- end
- @right_picture = Sprite.new
- @right_picture.bitmap = Bitmap.new("Graphics/battlers/#{@face}")
- @right_picture.y = 0
- @right_picture.x = 690-@right_picture.bitmap.width
- @now_text.gsub!(/\\[Rr]\[(.*?)\]/) { "" }
- end
- end
- end
- if (/\\[Rr]k/.match(@now_text)) != nil
- @right_keep = true
- @now_text.sub!(/\\[Rr]k/) { "" }
- end
- if (/\\[Ll]k/.match(@now_text)) != nil
- @left_keep = true
- @now_text.sub!(/\\[Ll]k/) { "" }
- end
复制代码 版务信息:本贴由楼主自主结贴~ |
|