Project1

标题: 对话加强头像怎么设置到对话框前面? [打印本页]

作者: 风中承诺    时间: 2009-9-30 16:35
标题: 对话加强头像怎么设置到对话框前面?
本帖最后由 风中承诺 于 2009-9-30 18:00 编辑

RT,我把窗口修改以后,才发现对话加强还是会挡住头像,问,有没有办法吧图片转移到前面来?
  
把那个李逍遥的头像弄到对话框前面……各位帮帮忙了……
作者: clap_pl    时间: 2009-9-30 16:58
把图片的z坐标加大 加大 嗯 加大

看脚本饿
作者: 风中承诺    时间: 2009-9-30 17:09
这一段
#——左半身像设置
      if (/\\[Ll]\[(.+?)\]/.match(@now_text))!=nil then
        @face = "" + $1 + ".png"
        if $加密 == false
          if @left_picture != nil
            @left_picture.dispose
          end
          @left_picture = Sprite.new
          @left_picture.bitmap = Bitmap.new("Graphics/heads/#{@face}")
          @left_picture.y = 480-@left_picture.bitmap.height
          @left_picture.x = 0
          @left_picture.mirror = true
          @now_text.gsub!(/\\[Ll]\[(.*?)\]/) { "" }
        else         
          if FileTest.exist?("Graphics/heads/#{@face}")
            if @left_picture != nil
              @left_picture.dispose
            end
            @left_picture = Sprite.new
            @left_picture.bitmap = Bitmap.new("Graphics/heads/#{@face}")
            @left_picture.y = 480-@left_picture.bitmap.height
            @left_picture.x = 0
            @left_picture.mirror = true
            @now_text.gsub!(/\\[Ll]\[(.*?)\]/) { "" }
          end
        end        
      end
作者: clap_pl    时间: 2009-9-30 17:26
本帖最后由 clap_pl 于 2009-9-30 17:27 编辑

在 @left_picture.x = 0 下面
加一句 @left_picture.z = 99999
或者
如果这是在各窗口类的Refresh下面的
不知道这么写 会不会 报错
@left_picture.z =self.z + 1
作者: 风中承诺    时间: 2009-9-30 17:57
谢了……




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1