设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 2568|回复: 5
打印 上一主题 下一主题

[RM脚本] 窗口以及字体颜色生成器

 关闭 [复制链接]

Lv1.梦旅人

查无此人

梦石
0
星屑
50
在线时间
9 小时
注册时间
2006-5-8
帖子
1399
跳转到指定楼层
1
发表于 2006-9-7 05:01:31 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有帐号?注册会员

x
首先很抱歉:
1 是因为时间相隔了1年多..严重滞后
2 是因为无法对该工程进行翻译(当然,还有西班牙文版的= =)

原帖在此:
http://www.dubealex.com/asylum/index.php?showtopic=1789
作者是伟大光荣的Dubealex大人:

使用方法:
选择1 是进行文字颜色编辑
选择2 是创建scene(最多9个窗口)


3个键:
TAB    窗口大小和位置的切换
BACKSPACE   调节幅度
ENTER  输出脚本

方向控制方向, 数字控制选择窗口.


下载:
http://ftp2.66rpg.com/3/临时� ... e Arena/Scene-1.rar



贴一个效果脚本,这是个有2个窗口组成的scene:
注意字体要改
  1. #===================================================
  2. # - CLASS Your_Scene Begins
  3. #===================================================
  4. class Your_Scene
  5.   
  6. #---------------------------------------------------------------------------------
  7.   def initialize
  8.   end
  9. #---------------------------------------------------------------------------------

  10. def main
  11.     @window1 = Window1.new
  12.     @window1.x =6
  13.     @window1.y =4
  14.     @window1.height = 473
  15.     @window1.width = 510
  16.    #@window1.z = 200       
  17.    
  18.     @window2 = Window2.new
  19.     @window2.x =522
  20.     @window2.y =0
  21.     @window2.height = 480
  22.     @window2.width = 100
  23.    #@window2.z = 200       
  24.    
  25. Graphics.transition
  26.     loop do
  27.       Graphics.update
  28.       Input.update
  29.      #update
  30.       if $scene != self
  31.         break
  32.       end
  33.     end

  34.     Graphics.freeze
  35.     @window1.dispose
  36.     @window2.dispose

  37.   end
  38. #---------------------------------------------------------------------------------

  39. #---------------------------------------------------------------------------------
  40.   def update
  41.   end
  42. #---------------------------------------------------------------------------------

  43. end
  44. #===================================================
  45. # - CLASS Your_Scene Ends
  46. #===================================================  



  47. #===================================================
  48. # - CLASS Window1 Begins
  49. #===================================================

  50. class Window1 < Window_Base

  51. #---------------------------------------------------------------------------------     
  52.   def initialize
  53.     super(0, 0, 510,473)
  54.     self.contents = Bitmap.new(width - 32, height - 32)
  55.     self.contents.font.name = "Tahoma"
  56.     self.contents.font.size = 22
  57.     self.contents.font.color = text_color(0)
  58.     self.contents.draw_text(0, 0, 33, 33, "1")
  59.   end
  60. #---------------------------------------------------------------------------------   

  61. end
  62. #===================================================
  63. # - CLASS Window1 Ends
  64. #===================================================


  65. #===================================================
  66. # - CLASS Window2 Begins
  67. #===================================================

  68. class Window2 < Window_Base

  69. #---------------------------------------------------------------------------------     
  70.   def initialize
  71.     super(0, 0, 100,480)
  72.     self.contents = Bitmap.new(width - 32, height - 32)
  73.     self.contents.font.name = "Tahoma"
  74.     self.contents.font.size = 22
  75.     self.contents.font.color = text_color(0)
  76.     self.contents.draw_text(0, 0, 33, 33, "2")
  77.   end
  78. #---------------------------------------------------------------------------------   

  79. end
  80. #===================================================
  81. # - CLASS Window2 Ends
  82. #===================================================
复制代码

KRKR + NS 学习中..........

Lv1.梦旅人

查无此人

梦石
0
星屑
50
在线时间
9 小时
注册时间
2006-5-8
帖子
1399
2
 楼主| 发表于 2006-9-7 05:01:31 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有帐号?注册会员

x
首先很抱歉:
1 是因为时间相隔了1年多..严重滞后
2 是因为无法对该工程进行翻译(当然,还有西班牙文版的= =)

原帖在此:
http://www.dubealex.com/asylum/index.php?showtopic=1789
作者是伟大光荣的Dubealex大人:

使用方法:
选择1 是进行文字颜色编辑
选择2 是创建scene(最多9个窗口)


3个键:
TAB    窗口大小和位置的切换
BACKSPACE   调节幅度
ENTER  输出脚本

方向控制方向, 数字控制选择窗口.


下载:
http://ftp2.66rpg.com/3/临时� ... e Arena/Scene-1.rar



贴一个效果脚本,这是个有2个窗口组成的scene:
注意字体要改
  1. #===================================================
  2. # - CLASS Your_Scene Begins
  3. #===================================================
  4. class Your_Scene
  5.   
  6. #---------------------------------------------------------------------------------
  7.   def initialize
  8.   end
  9. #---------------------------------------------------------------------------------

  10. def main
  11.     @window1 = Window1.new
  12.     @window1.x =6
  13.     @window1.y =4
  14.     @window1.height = 473
  15.     @window1.width = 510
  16.    #@window1.z = 200       
  17.    
  18.     @window2 = Window2.new
  19.     @window2.x =522
  20.     @window2.y =0
  21.     @window2.height = 480
  22.     @window2.width = 100
  23.    #@window2.z = 200       
  24.    
  25. Graphics.transition
  26.     loop do
  27.       Graphics.update
  28.       Input.update
  29.      #update
  30.       if $scene != self
  31.         break
  32.       end
  33.     end

  34.     Graphics.freeze
  35.     @window1.dispose
  36.     @window2.dispose

  37.   end
  38. #---------------------------------------------------------------------------------

  39. #---------------------------------------------------------------------------------
  40.   def update
  41.   end
  42. #---------------------------------------------------------------------------------

  43. end
  44. #===================================================
  45. # - CLASS Your_Scene Ends
  46. #===================================================  



  47. #===================================================
  48. # - CLASS Window1 Begins
  49. #===================================================

  50. class Window1 < Window_Base

  51. #---------------------------------------------------------------------------------     
  52.   def initialize
  53.     super(0, 0, 510,473)
  54.     self.contents = Bitmap.new(width - 32, height - 32)
  55.     self.contents.font.name = "Tahoma"
  56.     self.contents.font.size = 22
  57.     self.contents.font.color = text_color(0)
  58.     self.contents.draw_text(0, 0, 33, 33, "1")
  59.   end
  60. #---------------------------------------------------------------------------------   

  61. end
  62. #===================================================
  63. # - CLASS Window1 Ends
  64. #===================================================


  65. #===================================================
  66. # - CLASS Window2 Begins
  67. #===================================================

  68. class Window2 < Window_Base

  69. #---------------------------------------------------------------------------------     
  70.   def initialize
  71.     super(0, 0, 100,480)
  72.     self.contents = Bitmap.new(width - 32, height - 32)
  73.     self.contents.font.name = "Tahoma"
  74.     self.contents.font.size = 22
  75.     self.contents.font.color = text_color(0)
  76.     self.contents.draw_text(0, 0, 33, 33, "2")
  77.   end
  78. #---------------------------------------------------------------------------------   

  79. end
  80. #===================================================
  81. # - CLASS Window2 Ends
  82. #===================================================
复制代码

KRKR + NS 学习中..........

Lv1.梦旅人

有事烧纸

梦石
0
星屑
154
在线时间
509 小时
注册时间
2005-10-22
帖子
6982

贵宾VX城市地图大赛冠军第1届RMTV比赛冠军第1届TG大赛冠军

3
发表于 2006-9-7 05:53:24 | 只看该作者
这个```  好象  叶子还是谁发过`````
神隐中,偶尔诈尸
回复 支持 反对

使用道具 举报

Lv1.梦旅人

查无此人

梦石
0
星屑
50
在线时间
9 小时
注册时间
2006-5-8
帖子
1399
4
 楼主| 发表于 2006-9-7 06:24:12 | 只看该作者
发过...摔倒.....

明天换个.....{/shan}
KRKR + NS 学习中..........
回复 支持 反对

使用道具 举报

Lv2.观梦者

梦石
0
星屑
260
在线时间
1373 小时
注册时间
2005-10-16
帖子
5113

贵宾

5
发表于 2006-9-7 14:57:43 | 只看该作者
那个是叶子自己弄的,是某6的提议~~~~{/hx}
我只个搬答案的
叔叔我已经当爹了~
婚后闪人了……
回复 支持 反对

使用道具 举报

Lv1.梦旅人

66RPG站长

梦石
0
星屑
54
在线时间
615 小时
注册时间
2005-10-10
帖子
5734

RMVX自由创作大赛亚军第2届短篇游戏比赛亚军第5届短篇游戏比赛冠军

6
发表于 2006-12-13 20:42:57 | 只看该作者
链接过期了……
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-4-26 07:33

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表