Project1

标题: 简单任务系统 的问题 [打印本页]

作者: Oo呵呵oO    时间: 2008-10-16 20:48
提示: 作者被禁止或删除 内容自动屏蔽
作者: 塑望    时间: 2008-10-16 21:38
理解不能..

    $任务 = ""
    $支线 = nil
    $支线完成 = nil
这里可以不要改

  1.   # ● 刷新画面
  2.   #--------------------------------------------------------------------------
  3.   def refresh
  4.     self.contents.clear
  5.     self.contents.font.color = system_color
  6.     self.contents.font.size = 20
  7.     cx = self.contents.text_size("现在地点").width + 24
  8.     self.contents.draw_text(4, 0, cx, 24, "现在地点")
  9.     self.contents.font.color = normal_color
  10.     self.contents.draw_text(4 + cx, 0, 444 - cx, 24, $game_map.name.to_s)  
  11.     self.contents.font.color = system_color
  12.     cx = self.contents.text_size("主线任务").width + 24
  13.     self.contents.draw_text(4, 32, cx, 24, "主线任务")
  14.     self.contents.font.color = Color.new(240,250,75,255)
  15.     self.contents.draw_text(4 + cx, 32, 444 - cx, 24, $game_system.mission.to_s)  
  16.     self.contents.font.color = system_color
  17.     cx = self.contents.text_size("支线任务").width + 24
  18.     self.contents.draw_text(4, 96, cx, 24, "支线任务")
  19.     self.contents.font.color = normal_color
  20.     for i in 0...$game_system.partmission.size
  21.       self.contents.draw_text(4 + cx, 96 + i * 32, 444 - cx, 24, $game_system.partmission[i].to_s)
  22.     end
  23.   end
  24. end
复制代码


这里的文字修改即可.如[历练任务]

[LINE]1,#dddddd[/LINE]系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
作者: Oo呵呵oO    时间: 2008-10-16 21:41
提示: 作者被禁止或删除 内容自动屏蔽
作者: Oo呵呵oO    时间: 2008-10-17 01:01
提示: 作者被禁止或删除 内容自动屏蔽




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