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

Project1

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

[综合信息] 【VX】图标查看器汉化,显示Iconset里的图标ID

[复制链接]

Lv1.梦旅人

梦石
0
星屑
48
在线时间
678 小时
注册时间
2010-8-11
帖子
1533
跳转到指定楼层
1
发表于 2011-7-15 23:45:37 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式

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

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

x
嗯……虽然是汉化内容……不过只汉化了5个词……囧
话说能汉化的就只有5个词啊!
放上截图




脚本:
  1. #===============================================================================
  2. #
  3. # Yanfly Engine Melody - Iconview Melody
  4. # Last Date Updated: 2010.05.24
  5. # Level: Easy
  6. #
  7. # Don't know how to use Photoshop's X and Y coordinates to count your icons or
  8. # just too lazy to do it? Well, you can use this tool to make your life easier
  9. # by loading up the icons on a static sheet and figuring out what those icons
  10. # are indexed as. This script will mark 256 icons per page and allows you to
  11. # scroll through those pages as lagless as possible. The icons are displayed
  12. # in columns of 16 icons each, following exactly the way your IconSet is made
  13. # (or should be made).
  14. #
  15. #===============================================================================
  16. # Updates
  17. # -----------------------------------------------------------------------------
  18. # o 2010.05.24 - Started Script and Finished.
  19. #===============================================================================
  20. # Instructions
  21. # -----------------------------------------------------------------------------
  22. # To install this script, open up your script editor and copy/paste this script
  23. # to an open slot below ? Materials but above ? Main. Remember to save.
  24. #
  25. # Iconview only appears in testplay mode. If for some reason your game does not
  26. # use the command window in the title screen, there is an alternative way of
  27. # entering the Iconview scene by pressing F9 at the title screen.
  28. #===============================================================================

  29. $imported = {} if $imported == nil
  30. $imported["IconviewMelody"] = false

  31. module YEM
  32.   module ICONVIEW
  33.    
  34.     # If for some reason you wish to change the name of the command that
  35.     # appears on the title screen, edit this constant.
  36.     COMMAND_NAME = "图标查看器"
  37.    
  38.   end # ICONVIEW
  39. end # YEM

  40. #===============================================================================
  41. # Editting anything past this point may potentially result in causing computer
  42. # damage, incontinence, explosion of user's head, coma, death, and/or halitosis.
  43. # Therefore, edit at your own risk.
  44. #===============================================================================

  45. #===============================================================================
  46. # Window_Command
  47. #===============================================================================

  48. class Window_Command < Window_Selectable
  49.   
  50.   #--------------------------------------------------------------------------
  51.   # public instance variables
  52.   #--------------------------------------------------------------------------
  53.   attr_accessor :commands
  54.   attr_accessor :item_max
  55.   
  56. end # Window_Command

  57. #===============================================================================
  58. # Window_Iconview
  59. #===============================================================================

  60. class Window_Iconview < Window_Selectable
  61.   
  62.   #--------------------------------------------------------------------------
  63.   # public instance variables
  64.   #--------------------------------------------------------------------------
  65.   attr_accessor :max_pages
  66.   attr_accessor :page
  67.   attr_accessor :image
  68.   
  69.   #--------------------------------------------------------------------------
  70.   # initialize
  71.   #--------------------------------------------------------------------------
  72.   def initialize
  73.     super(Graphics.width - 416, 0, 416, 416)
  74.     self.z += 1
  75.     @item_max = 256
  76.     @column_max = 16
  77.     @page = @index = @spacing = 0
  78.     @image = Cache.system("IconSet")
  79.     @max_pages = (@image.height / 384.0).ceil
  80.     @icon_sprite = Sprite.new
  81.     @icon_sprite.bitmap = Bitmap.new(384, 384)
  82.     @icon_sprite.x = self.x + 16
  83.     @icon_sprite.y = self.y + 16
  84.     @icon_sprite.z = self.z - 1
  85.     self.opacity = self.back_opacity = 0
  86.     refresh
  87.   end
  88.   
  89.   #--------------------------------------------------------------------------
  90.   # dispose
  91.   #--------------------------------------------------------------------------
  92.   def dispose
  93.     @icon_sprite.bitmap.dispose
  94.     @icon_sprite.dispose
  95.     super
  96.   end
  97.   
  98.   #--------------------------------------------------------------------------
  99.   # update
  100.   #--------------------------------------------------------------------------
  101.   def update
  102.     super
  103.     return unless @max_pages > 1
  104.     if Input.repeat?(Input::L)
  105.       Sound.play_cursor
  106.       image_page_up
  107.     elsif Input.repeat?(Input::R)
  108.       Sound.play_cursor
  109.       image_page_down
  110.     end
  111.   end
  112.   
  113.   #--------------------------------------------------------------------------
  114.   # refresh
  115.   #--------------------------------------------------------------------------
  116.   def refresh
  117.     @icon_sprite.bitmap.dispose
  118.     @icon_sprite.bitmap = Bitmap.new(384, 384)
  119.     rect = Rect.new(0, @page * 384, 384, 384)
  120.     @icon_sprite.bitmap.blt(0, 0, @image, rect)
  121.   end
  122.   
  123.   #--------------------------------------------------------------------------
  124.   # cursor_down
  125.   #--------------------------------------------------------------------------
  126.   def cursor_down(wrap)
  127.     if @index < 240
  128.       @index += 16
  129.     elsif wrap
  130.       @index -= 240
  131.     end
  132.   end
  133.   
  134.   #--------------------------------------------------------------------------
  135.   # cursor_up
  136.   #--------------------------------------------------------------------------
  137.   def cursor_up(wrap)
  138.     if @index >= 16
  139.       @index -= 16
  140.     elsif wrap
  141.       @index += 240
  142.     end
  143.   end
  144.   
  145.   #--------------------------------------------------------------------------
  146.   # cursor_right
  147.   #--------------------------------------------------------------------------
  148.   def cursor_right(wrap)
  149.     if @index % 16 < 15
  150.       @index += 1
  151.     elsif wrap
  152.       @index -= 15
  153.     end
  154.   end
  155.   
  156.   #--------------------------------------------------------------------------
  157.   # cursor_left
  158.   #--------------------------------------------------------------------------
  159.   def cursor_left(wrap)
  160.     if @index % 16 > 0
  161.       @index -= 1
  162.     elsif wrap
  163.       @index += 15
  164.     end
  165.   end
  166.   
  167.   #--------------------------------------------------------------------------
  168.   # image_page_up
  169.   #--------------------------------------------------------------------------
  170.   def image_page_up
  171.     @page = @page == 0 ? @max_pages - 1 : @page - 1
  172.     refresh
  173.   end
  174.   
  175.   #--------------------------------------------------------------------------
  176.   # image_page_down
  177.   #--------------------------------------------------------------------------
  178.   def image_page_down
  179.     @page = @page == @max_pages - 1 ? 0 : @page + 1
  180.     refresh
  181.   end
  182.   
  183. end # Window_Iconview

  184. #===============================================================================
  185. # Window_IconPageList
  186. #===============================================================================

  187. class Window_IconPageList < Window_Selectable
  188.   
  189.   #--------------------------------------------------------------------------
  190.   # initialize
  191.   #--------------------------------------------------------------------------
  192.   def initialize(icon_window)
  193.     @icon_window = icon_window
  194.     super(0, 128, Graphics.width-@icon_window.width, @icon_window.height-128)
  195.     self.active = false
  196.     self.index = 0
  197.     refresh
  198.   end
  199.   
  200.   #--------------------------------------------------------------------------
  201.   # refresh
  202.   #--------------------------------------------------------------------------
  203.   def refresh
  204.     @item_max = @icon_window.max_pages
  205.     create_contents
  206.     for i in 0...@item_max; draw_item(i); end
  207.   end
  208.   
  209.   #--------------------------------------------------------------------------
  210.   # draw_item
  211.   #--------------------------------------------------------------------------
  212.   def draw_item(index)
  213.     rect = item_rect(index)
  214.     self.contents.clear_rect(rect)
  215.     text = sprintf("Page%d", index+1)
  216.     self.contents.draw_text(rect, text, 1)
  217.   end
  218.   
  219.   #--------------------------------------------------------------------------
  220.   # update
  221.   #--------------------------------------------------------------------------
  222.   def update
  223.     super
  224.     if self.index != @icon_window.page
  225.       self.index = @icon_window.page
  226.     end
  227.   end
  228.   
  229. end # Window_IconPageList

  230. #===============================================================================
  231. # Window_Icondata
  232. #===============================================================================

  233. class Window_Icondata < Window_Base
  234.   
  235.   #--------------------------------------------------------------------------
  236.   # initialize
  237.   #--------------------------------------------------------------------------
  238.   def initialize(iconview_window)
  239.     @iconview_window = iconview_window
  240.     super(0, 0, Graphics.width - @iconview_window.width, 128)
  241.   end
  242.   
  243.   #--------------------------------------------------------------------------
  244.   # refresh
  245.   #--------------------------------------------------------------------------
  246.   def refresh
  247.     self.contents.clear
  248.     text = 256 * @iconview_window.page + @iconview_window.index
  249.     text = sprintf("ID:%d", text)
  250.     self.contents.draw_text(0, WLH*0, contents.width, WLH, text, 1)
  251.     text = @iconview_window.image.height / 24 * 16
  252.     text = sprintf("总共:%d", text)
  253.     self.contents.draw_text(0, WLH*1, contents.width, WLH, text, 1)
  254.     text = "Q=上一页"
  255.     self.contents.draw_text(0, WLH*2, contents.width, WLH, text, 1)
  256.     text = "W=下一页"
  257.     self.contents.draw_text(0, WLH*3, contents.width, WLH, text, 1)
  258.   end
  259.   
  260.   #--------------------------------------------------------------------------
  261.   # update
  262.   #--------------------------------------------------------------------------
  263.   def update
  264.     super
  265.     if @last_index != @iconview_window.index or
  266.     @last_page != @iconview_window.page
  267.       @last_index = @iconview_window.index
  268.       @last_page = @iconview_window.page
  269.       refresh
  270.     end
  271.   end
  272.   
  273. end # Window_Icondata

  274. #===============================================================================
  275. # Scene_Title
  276. #===============================================================================

  277. class Scene_Title < Scene_Base

  278.   #--------------------------------------------------------------------------
  279.   # alias method: create_command_window
  280.   #--------------------------------------------------------------------------
  281.   alias create_command_window_iconview create_command_window unless $@
  282.   def create_command_window
  283.     create_command_window_iconview
  284.     return unless $TEST
  285.     return if @command_window == nil
  286.     @command_window.commands.push(YEM::ICONVIEW::COMMAND_NAME)
  287.     @command_window.item_max += 1
  288.     @command_window.create_contents
  289.     @command_window.height += 24
  290.     @command_window.y -= 24
  291.     @command_window.refresh
  292.     x = @command_window.commands.index(Vocab.continue)
  293.     @command_window.draw_item(x, false) unless @continue_enabled
  294.   end
  295.   
  296.   #--------------------------------------------------------------------------
  297.   # alias method: update
  298.   #--------------------------------------------------------------------------
  299.   alias update_iconview update unless $@
  300.   def update
  301.     text = YEM::ICONVIEW::COMMAND_NAME
  302.     if (Input.trigger?(Input::C) and @command_window != nil and
  303.     @command_window.commands[@command_window.index] == text) or
  304.     Input.press?(Input::F9)
  305.       command_iconview
  306.     else
  307.       update_iconview
  308.     end
  309.   end
  310.   
  311.   #--------------------------------------------------------------------------
  312.   # new method: command_iconview
  313.   #--------------------------------------------------------------------------
  314.   def command_iconview
  315.     return unless $TEST
  316.     Sound.play_decision
  317.     $scene = Scene_Iconview.new
  318.   end
  319.   
  320. end # Scene_Title

  321. #===============================================================================
  322. # Scene_Iconview
  323. #===============================================================================

  324. class Scene_Iconview < Scene_Base
  325.   
  326.   #--------------------------------------------------------------------------
  327.   # start
  328.   #--------------------------------------------------------------------------
  329.   def start
  330.     super
  331.     create_menu_background
  332.     @iconview_window = Window_Iconview.new
  333.     dx = @iconview_window.x
  334.     dy = @iconview_window.y
  335.     dw = @iconview_window.width
  336.     dh = @iconview_window.height
  337.     @dummy_window = Window_Base.new(dx, dy, dw, dh)
  338.     @data_window = Window_Icondata.new(@iconview_window)
  339.     @page_window = Window_IconPageList.new(@iconview_window)
  340.   end
  341.   
  342.   #--------------------------------------------------------------------------
  343.   # terminate
  344.   #--------------------------------------------------------------------------
  345.   def terminate
  346.     super
  347.     dispose_menu_background
  348.     @iconview_window.dispose
  349.     @dummy_window.dispose
  350.     @data_window.dispose
  351.     @page_window.dispose
  352.   end
  353.   
  354.   #--------------------------------------------------------------------------
  355.   # update
  356.   #--------------------------------------------------------------------------
  357.   def update
  358.     super
  359.     update_menu_background
  360.     @iconview_window.update
  361.     @data_window.update
  362.     @page_window.update
  363.     if Input.trigger?(Input::B)
  364.       Sound.play_cancel
  365.       $scene = Scene_Title.new
  366.     end
  367.   end
  368.   
  369. end # Scene_Iconview

  370. #===============================================================================
  371. #
  372. # END OF FILE
  373. #
  374. #===============================================================================
复制代码
PS:系统(BGM那些)汉化中……
小艾工作室开张= =

Lv1.梦旅人

梦石
0
星屑
79
在线时间
129 小时
注册时间
2011-3-19
帖子
124
2
发表于 2011-7-15 23:58:24 | 只看该作者
沙发是我的!前来支持
冷,冷,冷...好冷啊...
回复 支持 反对

使用道具 举报

Lv2.观梦者

铃铃塔的守护者

梦石
0
星屑
626
在线时间
961 小时
注册时间
2010-10-24
帖子
2768

贵宾

3
发表于 2011-7-16 00:10:27 | 只看该作者
沙发被抢走了~那么板凳就不客气了~话说这个东西的用处呢?

点评

写脚本时如果需要图标的话,就可以用这个,如果图标很多的话,那么找起来也很麻烦  发表于 2011-7-16 00:12

魔法麻将独立游戏制作中,欢迎热情的测试员与UI设计师合作开发~
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
2188 小时
注册时间
2011-6-23
帖子
1044
4
发表于 2011-7-16 01:18:27 | 只看该作者
好棒...的... 支持一下  T.T

回复 支持 反对

使用道具 举报

Lv2.观梦者

梦石
0
星屑
835
在线时间
119 小时
注册时间
2011-6-12
帖子
377
5
发表于 2011-7-16 09:25:43 | 只看该作者
我说,这有什么用啊?


回复 支持 反对

使用道具 举报

Lv4.逐梦者

醉啸 长风万里

梦石
0
星屑
6052
在线时间
6586 小时
注册时间
2007-12-16
帖子
4501

贵宾

6
发表于 2011-7-16 09:35:39 | 只看该作者
我发过完全汉化版的……没人看

还在龟速填坑中
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
2188 小时
注册时间
2011-6-23
帖子
1044
7
发表于 2011-7-16 10:32:52 | 只看该作者
仲秋启明 发表于 2011-7-16 09:35
我发过完全汉化版的……没人看

T.T


lsu666666于2011-7-16 10:32补充以下内容:
T.T

点评

是吗?地址有否?  发表于 2011-7-20 16:34
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
1031 小时
注册时间
2011-3-22
帖子
1069
8
发表于 2011-7-16 10:49:08 | 只看该作者
如果是道具图鉴还有用点吧~~~~~~

警告!企鹅是很多滴~请注意是否是正身~
回复 支持 反对

使用道具 举报

Lv1.梦旅人

资深恋爱专家

梦石
0
星屑
50
在线时间
90 小时
注册时间
2011-6-6
帖子
81
9
发表于 2011-7-16 13:16:25 | 只看该作者
仲秋启明 发表于 2011-7-16 09:35
我发过完全汉化版的……没人看

谁说的,我没看过吗= =

点评

点击数才528,还有20多次是我和达达点击的  发表于 2011-7-16 13:28

不通信,不见客,不赴宴。

回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
182 小时
注册时间
2015-11-14
帖子
56
10
发表于 2016-4-1 23:28:30 | 只看该作者
其实page没翻译,可以翻译成页数
...
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2024-4-24 04:53

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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