Project1

标题: 对话框大小及位置的调整 [打印本页]

作者: 然然    时间: 2008-7-13 22:38
提示: 作者被禁止或删除 内容自动屏蔽
作者: dbshy    时间: 2008-7-13 22:56
679行
  case $game_system.message_position
      when 0 # 上
        self.y = 16
      when 1 # 中
        self.y = 160
      when 2 # 下
        self.y = 315
      end
      case $game_system.message_position  
      when 0  
        self.x = 0
      when 1
        self.x = 160
      when 2
        self.x = 0
      end
      
       if @face_bitmap == nil
         self.width = 800
       else
         self.width = 800
         self.x -= 20
       end
       self.height = 170
     end

自己去改数值
作者: 然然    时间: 2008-7-13 23:17
提示: 作者被禁止或删除 内容自动屏蔽
作者: dbshy    时间: 2008-7-13 23:19
if @face_bitmap == nil
        self.width = 800
      else
        self.width = 800
        self.x -= 20
      end
      self.height = 170
    end

width是宽,height是高,自己调坐标
[LINE]1,#dddddd[/LINE]系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~




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