查看: 4144|回复: 1

[转载发布] 【XP】图标菜单优化+地图名

[复制链接]

石油鸡

梦石
0
星屑
179
在线时间
287 小时
注册时间
2014-1-27
回帖
211
发表于 2015-1-30 16:22:33 | 显示全部楼层 |阅读模式

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

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

×
本帖最后由 1041235896 于 2015-1-30 18:33 编辑

好吧我其实是大自然的搬运工!效果图来也
效果图那嘎嘎的.jpg
好了那啥啥的不说了
方法:
插入到main前面创建新的然后粘贴不用我多说吧- -
358行请改为@disabled = [ false, false, false, false, false, false ]
  1. #===================================================
  2. # ■ Ring Menu - Show Player Location - Release #1 (Enhanced By Dubealex)
  3. #===================================================
  4. # For more infos and update, visit:
  5. # asylum.dubealex.com
  6. #
  7. # Original Ring Menu by: 和希 (From XRXS)
  8. # Original Edit and Fix by: Maki
  9. # Show Player Location Version by: Dubealex
  10. #
  11. # You can customize this script at line #35 - Have fun !!
  12. # If you want to show more stuff, its easy to do, you can try to ask in the forum.
  13. #
  14. # [email]alex@dubealex.com[/email]
  15. #===================================================


  16. #===================================================
  17. # ▼ CLASS Scene_Menu Begins
  18. #===================================================

  19. class Scene_Menu
  20. #--------------------------------------------------------------------------
  21. # œ ƒIƒuƒWƒFƒNƒg‰Šú‰»
  22. #     menu_index : ƒRƒ}ƒ“ƒh‚̃J[ƒ\ƒ‹‰ŠúˆÊ’u
  23. #--------------------------------------------------------------------------
  24. def initialize(menu_index = 0)
  25.    @menu_index = menu_index
  26.    $location_text=[]
  27.    $window_size=[]
  28.    $ring_menu_text=[]
  29.    $chara_select=[]
  30.    @window_opacity=[]
  31.    @chara_select=[]
  32.    @window_position=[]
  33.   
  34.     #--------------------------------------------------------------------------------------------------
  35.     # ■ Ring Menu Customization Section: (By Dubealex)
  36.     #--------------------------------------------------------------------------------------------------
  37.     # Those variables defines how the script will act.
  38.     # Simply change the value by those you want.
  39.     # Remember that changing the font size has its limitation due to text space allocation.
  40.     #
  41.     # ▼ TEXT SETTINGS FOR SHOW PLAYER LOCATION WINDOW:
  42.     $location_text[0]="Tahoma"      # Font Type
  43.     $location_text[1]=22                # Font Size
  44.     $location_text[2]=6                  # Location Title Color
  45.     $location_text[4]=0                  # Map Name Color
  46.     $location_text[3]="Location:"     # Customize the "Location" Title Text
  47.    
  48.     # ▼ SHOW LOCATION WINDOW SETTINS:
  49.     @show_location_window=true                       #Set to false to not use it !
  50.     @window_opacity[0]=255                             # Border Opacity
  51.     @window_opacity[1]=130                             # Background Opacity
  52.     $window_location_skin="001-Blue01"            # Window Skin
  53.     @window_position[0]=20                             # X Axis Position
  54.     @window_position[1]=20                             # Y Axis Position
  55.     $window_size[0]=160                                  # Lengh
  56.     $window_size[1]=96                                    # Heigh
  57.    
  58.     # ▼  TEXT SETTINGS FOR INSIDE THE RING MENU:
  59.     $ring_menu_text[0]="Tahoma"      # Font Type
  60.     $ring_menu_text[7]=0                  # Font Color
  61.     $ring_menu_text[8]=22                # Font Size
  62.     $ring_menu_text[1]="Items"         # Items Menu Text
  63.     $ring_menu_text[2]="Skills"          # Skills Menu Text
  64.     $ring_menu_text[3]="Equip"         # Equip Menu Text
  65.     $ring_menu_text[4]="Stats"          # Stats Menu Text
  66.     $ring_menu_text[5]="Save"          # Save Menu Text
  67.     $ring_menu_text[6]="Quit"           # Quit Menu Text
  68.    
  69.     # ▼  CHARACTER SELECTION WINDOW SETTINGS :
  70.     @chara_select[0]=400               # X Axis Position
  71.     @chara_select[1]=0                  # Y Axis Position
  72.     $chara_select[0]="Tahoma"       # Font Type
  73.     $chara_select[1]=0                   # Font Color
  74.     $chara_select[5]=22                  # Font Size
  75.     $chara_select[2]=255               # Window Border Opacity
  76.     $chara_select[3]=130               # Window Background Opacity
  77.     $chara_select[4]="001-Blue01"  # Window Skin to use
  78.    #--------------------------------------------------------------------------------------------------
  79.   
  80. end
  81. #--------------------------------------------------------------------------
  82. # œ ƒƒCƒ“ˆ—
  83. #--------------------------------------------------------------------------
  84. def main
  85.   
  86.    # Show Player Location Feature:
  87.    if @show_location_window==true   
  88.    @window_location = Window_Location.new
  89.       @window_location.x = @window_position[0]
  90.       @window_location.y = @window_position[1]
  91.       @window_location.opacity = @window_opacity[0]
  92.       @window_location.back_opacity = @window_opacity[1]
  93.       end
  94.    #End of Show Player Location
  95.   
  96.    # ƒXƒvƒ‰ƒCƒgƒZƒbƒg‚ðì¬
  97.    @spriteset = Spriteset_Map.new
  98.    # ƒRƒ}ƒ“ƒhƒEƒBƒ“ƒhƒE‚ðì¬
  99.    px = $game_player.screen_x - 15
  100.    py = $game_player.screen_y - 24
  101.    @command_window = Window_RingMenu.new(px,py)
  102.    @command_window.index = @menu_index
  103.    # ƒp[ƒeƒBl”‚ª 0 l‚̏ꍇ
  104.    if $game_party.actors.size == 0
  105.      # ƒAƒCƒeƒ€AƒXƒLƒ‹A‘•”õAƒXƒe[ƒ^ƒX‚𖳌ø‰»
  106.      @command_window.disable_item(0)
  107.      @command_window.disable_item(1)
  108.      @command_window.disable_item(2)
  109.      @command_window.disable_item(3)
  110.    end
  111.    @command_window.z = 100
  112.    # ƒZ[ƒu‹ÖŽ~‚̏ꍇ
  113.    if $game_system.save_disabled
  114.      # ƒZ[ƒu‚𖳌ø‚É‚·‚é
  115.      @command_window.disable_item(4)
  116.    end
  117.    # ƒXƒe[ƒ^ƒXƒEƒBƒ“ƒhƒE‚ðì¬
  118.    @status_window = Window_RingMenuStatus.new
  119.    @status_window.x = @chara_select[0]
  120.    @status_window.y = @chara_select[1]
  121.    @status_window.z = 200
  122.    @status_window.opacity=$chara_select[2]
  123.    @status_window.back_opacity=$chara_select[3]
  124.    @status_window.visible = false
  125.    # ƒgƒ‰ƒ“ƒWƒVƒ‡ƒ“ŽÀs
  126.    Graphics.transition
  127.    # ƒƒCƒ“ƒ‹[ƒv
  128.    loop do
  129.      # ƒQ[ƒ€‰æ–Ê‚ðXV
  130.      Graphics.update
  131.      # “ü—͏î•ñ‚ðXV
  132.      Input.update
  133.      # ƒtƒŒ[ƒ€XV
  134.      update
  135.      # ‰æ–Ê‚ªØ‚è‘Ö‚í‚Á‚½‚烋[ƒv‚ð’†’f
  136.      if $scene != self
  137.        break
  138.      end
  139.    end
  140.    # ƒgƒ‰ƒ“ƒWƒVƒ‡ƒ“€”õ
  141.    Graphics.freeze
  142.    # ƒXƒvƒ‰ƒCƒgƒZƒbƒg‚ð‰ð•ú
  143.    @spriteset.dispose
  144.    # ƒEƒBƒ“ƒhƒE‚ð‰ð•ú
  145.    if @show_location_window==true
  146.    @window_location.dispose
  147.    end
  148.    @command_window.dispose
  149.    @status_window.dispose
  150. end
  151. #--------------------------------------------------------------------------
  152. # œ ƒtƒŒ[ƒ€XV
  153. #--------------------------------------------------------------------------
  154. def update
  155.    # ƒEƒBƒ“ƒhƒE‚ðXV
  156.    if @show_location_window==true
  157.    @window_location.update
  158.    end
  159.    @command_window.update
  160.    @status_window.update
  161.    # ƒRƒ}ƒ“ƒhƒEƒBƒ“ƒhƒE‚ªƒAƒNƒeƒBƒu‚̏ꍇ: update_command ‚ðŒÄ‚Ô
  162.    if @command_window.active
  163.      update_command
  164.      return
  165.    end
  166.    # ƒXƒe[ƒ^ƒXƒEƒBƒ“ƒhƒE‚ªƒAƒNƒeƒBƒu‚̏ꍇ: update_status ‚ðŒÄ‚Ô
  167.    if @status_window.active
  168.      update_status
  169.      return
  170.    end
  171. end
  172. #--------------------------------------------------------------------------
  173. # œ ƒtƒŒ[ƒ€XV (ƒRƒ}ƒ“ƒhƒEƒBƒ“ƒhƒE‚ªƒAƒNƒeƒBƒu‚̏ꍇ)
  174. #--------------------------------------------------------------------------
  175. def update_command
  176.    # B ƒ{ƒ^ƒ“‚ª‰Ÿ‚³‚ꂽê‡
  177.    if Input.trigger?(Input::B)
  178.      # ƒLƒƒƒ“ƒZƒ‹ SE ‚ð‰‰‘t
  179.      $game_system.se_play($data_system.cancel_se)
  180.      # ƒ}ƒbƒv‰æ–ʂɐ؂è‘Ö‚¦
  181.      $scene = Scene_Map.new
  182.      return
  183.    end
  184.    # C ƒ{ƒ^ƒ“‚ª‰Ÿ‚³‚ꂽê‡
  185.    if Input.trigger?(Input::C)
  186.      # ƒp[ƒeƒBl”‚ª 0 l‚ŁAƒZ[ƒuAƒQ[ƒ€I—¹ˆÈŠO‚̃Rƒ}ƒ“ƒh‚̏ꍇ
  187.      if $game_party.actors.size == 0 and @command_window.index < 4
  188.        # ƒuƒU[ SE ‚ð‰‰‘t
  189.        $game_system.se_play($data_system.buzzer_se)
  190.        return
  191.      end
  192.      # ƒRƒ}ƒ“ƒhƒEƒBƒ“ƒhƒE‚̃J[ƒ\ƒ‹ˆÊ’u‚Å•ªŠò
  193.      case @command_window.index
  194.      when 0  # ƒAƒCƒeƒ€
  195.        # Œˆ’è  SE ‚ð‰‰‘t
  196.        $game_system.se_play($data_system.decision_se)
  197.        # ƒAƒCƒeƒ€‰æ–ʂɐ؂è‘Ö‚¦
  198.        $scene = Scene_Item.new
  199.      when 1  # ƒXƒLƒ‹
  200.        # Œˆ’è SE ‚ð‰‰‘t
  201.        $game_system.se_play($data_system.decision_se)
  202.        # ƒXƒe[ƒ^ƒXƒEƒBƒ“ƒhƒE‚ðƒAƒNƒeƒBƒu‚É‚·‚é
  203.        @command_window.active = false
  204.        @status_window.active = true
  205.        @status_window.visible = true
  206.        @status_window.index = 0
  207.      when 2  # ‘•”õ
  208.        # Œˆ’è SE ‚ð‰‰‘t
  209.        $game_system.se_play($data_system.decision_se)
  210.        # ƒXƒe[ƒ^ƒXƒEƒBƒ“ƒhƒE‚ðƒAƒNƒeƒBƒu‚É‚·‚é
  211.        @command_window.active = false
  212.        @status_window.active = true
  213.        @status_window.visible = true
  214.        @status_window.index = 0
  215.      when 3  # ƒXƒe[ƒ^ƒX
  216.        # Œˆ’è SE ‚ð‰‰‘t
  217.        $game_system.se_play($data_system.decision_se)
  218.        # ƒXƒe[ƒ^ƒXƒEƒBƒ“ƒhƒE‚ðƒAƒNƒeƒBƒu‚É‚·‚é
  219.        @command_window.active = false
  220.        @status_window.active = true
  221.        @status_window.visible = true
  222.        @status_window.index = 0
  223.      when 4  # ƒZ[ƒu
  224.        # ƒZ[ƒu‹ÖŽ~‚̏ꍇ
  225.        if $game_system.save_disabled
  226.          # ƒuƒU[ SE ‚ð‰‰‘t
  227.          $game_system.se_play($data_system.buzzer_se)
  228.          return
  229.        end
  230.        # Œˆ’è SE ‚ð‰‰‘t
  231.        $game_system.se_play($data_system.decision_se)
  232.        # ƒZ[ƒu‰æ–ʂɐ؂è‘Ö‚¦
  233.        $scene = Scene_Save.new
  234.      when 5  # ƒQ[ƒ€I—¹
  235.        # Œˆ’è SE ‚ð‰‰‘t
  236.        $game_system.se_play($data_system.decision_se)
  237.        # ƒQ[ƒ€I—¹‰æ–ʂɐ؂è‘Ö‚¦
  238.        $scene = Scene_End.new
  239.      end
  240.      return
  241.    end
  242.    # ƒAƒjƒ[ƒVƒ‡ƒ“’†‚È‚çƒJ[ƒ\ƒ‹‚̏ˆ—‚ðs‚í‚È‚¢
  243.    return if @command_window.animation?
  244.    # ªor© ƒ{ƒ^ƒ“‚ª‰Ÿ‚³‚ꂽê‡
  245.    if Input.press?(Input::UP) or  Input.press?(Input::LEFT)
  246.      $game_system.se_play($data_system.cursor_se)
  247.      @command_window.setup_move_move(Window_RingMenu::MODE_MOVEL)
  248.      return
  249.    end
  250.    # «or¨ ƒ{ƒ^ƒ“‚ª‰Ÿ‚³‚ꂽê‡
  251.    if Input.press?(Input::DOWN) or  Input.press?(Input::RIGHT)
  252.      $game_system.se_play($data_system.cursor_se)
  253.      @command_window.setup_move_move(Window_RingMenu::MODE_MOVER)
  254.      return
  255.    end
  256. end
  257. #--------------------------------------------------------------------------
  258. # œ ƒtƒŒ[ƒ€XV (ƒXƒe[ƒ^ƒXƒEƒBƒ“ƒhƒE‚ªƒAƒNƒeƒBƒu‚̏ꍇ)
  259. #--------------------------------------------------------------------------
  260. def update_status
  261.    # B ƒ{ƒ^ƒ“‚ª‰Ÿ‚³‚ꂽê‡
  262.    if Input.trigger?(Input::B)
  263.      # ƒLƒƒƒ“ƒZƒ‹ SE ‚ð‰‰‘t
  264.      $game_system.se_play($data_system.cancel_se)
  265.      # ƒRƒ}ƒ“ƒhƒEƒBƒ“ƒhƒE‚ðƒAƒNƒeƒBƒu‚É‚·‚é
  266.      @command_window.active = true
  267.      @status_window.active = false
  268.      @status_window.visible = false
  269.      @status_window.index = -1
  270.      return
  271.    end
  272.    # C ƒ{ƒ^ƒ“‚ª‰Ÿ‚³‚ꂽê‡
  273.    if Input.trigger?(Input::C)
  274.      # ƒRƒ}ƒ“ƒhƒEƒBƒ“ƒhƒE‚̃J[ƒ\ƒ‹ˆÊ’u‚Å•ªŠò
  275.      case @command_window.index
  276.      when 1  # ƒXƒLƒ‹
  277.        # ‚±‚̃AƒNƒ^[‚̍s“®§ŒÀ‚ª 2 ˆÈã‚̏ꍇ
  278.        if $game_party.actors[@status_window.index].restriction >= 2
  279.          # ƒuƒU[ SE ‚ð‰‰‘t
  280.          $game_system.se_play($data_system.buzzer_se)
  281.          return
  282.        end
  283.        # Œˆ’è SE ‚ð‰‰‘t
  284.        $game_system.se_play($data_system.decision_se)
  285.        # ƒXƒLƒ‹‰æ–ʂɐ؂è‘Ö‚¦
  286.        $scene = Scene_Skill.new(@status_window.index)
  287.      when 2  # ‘•”õ
  288.        # Œˆ’è SE ‚ð‰‰‘t
  289.        $game_system.se_play($data_system.decision_se)
  290.        # ‘•”õ‰æ–ʂɐ؂è‘Ö‚¦
  291.        $scene = Scene_Equip.new(@status_window.index)
  292.      when 3  # ƒXƒe[ƒ^ƒX
  293.        # Œˆ’è SE ‚ð‰‰‘t
  294.        $game_system.se_play($data_system.decision_se)
  295.        # ƒXƒe[ƒ^ƒX‰æ–ʂɐ؂è‘Ö‚¦
  296.        $scene = Scene_Status.new(@status_window.index)
  297.      end
  298.      return
  299.    end
  300. end
  301. end

  302. #===================================================
  303. # ▲ CLASS Scene_Menu Ends
  304. #===================================================


  305. #===================================================
  306. # ▼ CLASS Window_RingMenu  Begins
  307. #===================================================
  308. class Window_RingMenu < Window_Base
  309. #--------------------------------------------------------------------------
  310. # › ƒNƒ‰ƒX’萔
  311. #--------------------------------------------------------------------------
  312. STARTUP_FRAMES = 20
  313. MOVING_FRAMES = 5  
  314. RING_R = 64        
  315. ICON_ITEM   = RPG::Cache.icon("034-Item03")
  316. ICON_SKILL  = RPG::Cache.icon("044-Skill01")
  317. ICON_EQUIP  = RPG::Cache.icon("001-Weapon01")
  318. ICON_STATUS = RPG::Cache.icon("050-Skill07")
  319. ICON_SAVE   = RPG::Cache.icon("038-Item07")
  320. ICON_EXIT   = RPG::Cache.icon("046-Skill03")
  321. ICON_DISABLE= RPG::Cache.icon("")
  322. SE_STARTUP = "056-Right02"
  323. MODE_START = 1
  324. MODE_WAIT  = 2
  325. MODE_MOVER = 3
  326. MODE_MOVEL = 4
  327. #--------------------------------------------------------------------------
  328. # › ƒAƒNƒZƒT
  329. #--------------------------------------------------------------------------
  330. attr_accessor :index
  331. #--------------------------------------------------------------------------
  332. # œ ƒIƒuƒWƒFƒNƒg‰Šú‰»
  333. #--------------------------------------------------------------------------
  334. def initialize( center_x, center_y )
  335.    super(0, 0, 640, 480)
  336.    self.contents = Bitmap.new(width-32, height-32)
  337.    self.contents.font.name = $ring_menu_text[0]
  338.    self.contents.font.color = text_color($ring_menu_text[7])
  339.    self.contents.font.size = $ring_menu_text[8]
  340.    self.opacity = 0
  341.    self.back_opacity = 0
  342.    s1 = $ring_menu_text[1]
  343.    s2 = $ring_menu_text[2]
  344.    s3 = $ring_menu_text[3]
  345.    s4 = $ring_menu_text[4]
  346.    s5 = $ring_menu_text[5]
  347.    s6 = $ring_menu_text[6]
  348.    @commands = [ s1, s2, s3, s4, s5, s6 ]
  349.    @item_max = 6
  350.    @index = 0
  351.    @items = [ ICON_ITEM, ICON_SKILL, ICON_EQUIP, ICON_STATUS, ICON_SAVE, ICON_EXIT ]
  352.    [url=home.php?mod=space&uid=249395]@disabled[/url] = [ false, false, false, false, false, false ]
  353.    @cx = center_x - 16
  354.    @cy = center_y - 16
  355.    setup_move_start
  356.    refresh
  357. end
  358. #--------------------------------------------------------------------------
  359. # œ ƒtƒŒ[ƒ€XV
  360. #--------------------------------------------------------------------------
  361. def update
  362.    super
  363.    refresh
  364. end
  365. #--------------------------------------------------------------------------
  366. # œ ‰æ–ʍĕ`‰æ
  367. #--------------------------------------------------------------------------
  368. def refresh
  369.    self.contents.clear
  370.    # ƒAƒCƒRƒ“‚ð•`‰æ
  371.    case @mode
  372.    when MODE_START
  373.      refresh_start
  374.    when MODE_WAIT
  375.      refresh_wait
  376.    when MODE_MOVER
  377.      refresh_move(1)
  378.    when MODE_MOVEL
  379.      refresh_move(0)
  380.    end
  381.    # ƒAƒNƒeƒBƒu‚ȃRƒ}ƒ“ƒh–¼•\ަ
  382.    rect = Rect.new(@cx - 272, @cy + 24, self.contents.width-32, 32)
  383.    self.contents.draw_text(rect, @commands[@index],1)
  384. end
  385. #--------------------------------------------------------------------------
  386. # › ‰æ–ʍĕ`‰æ(‰Šú‰»Žž)
  387. #--------------------------------------------------------------------------
  388. def refresh_start
  389.    d1 = 2.0 * Math::PI / @item_max
  390.    d2 = 1.0 * Math::PI / STARTUP_FRAMES
  391.    r = RING_R - 1.0 * RING_R * @steps / STARTUP_FRAMES
  392.    for i in 0...@item_max
  393.      j = i - @index
  394.      d = d1 * j + d2 * @steps
  395.      x = @cx + ( r * Math.sin( d ) ).to_i
  396.      y = @cy - ( r * Math.cos( d ) ).to_i
  397.      draw_item(x, y, i)
  398.    end
  399.    @steps -= 1
  400.    if @steps < 1
  401.      @mode = MODE_WAIT
  402.    end
  403. end
  404. #--------------------------------------------------------------------------
  405. # › ‰æ–ʍĕ`‰æ(‘Ò‹@Žž)
  406. #--------------------------------------------------------------------------
  407. def refresh_wait
  408.    d = 2.0 * Math::PI / @item_max
  409.    for i in 0...@item_max
  410.      j = i - @index
  411.      x = @cx + ( RING_R * Math.sin( d * j ) ).to_i
  412.      y = @cy - ( RING_R * Math.cos( d * j ) ).to_i
  413.      draw_item(x, y, i)
  414.    end
  415. end
  416. #--------------------------------------------------------------------------
  417. # › ‰æ–ʍĕ`‰æ(‰ñ“]Žž)
  418. #  mode : 0=”½ŽžŒv‰ñ‚è 1=ŽžŒv‰ñ‚è
  419. #--------------------------------------------------------------------------
  420. def refresh_move( mode )
  421.    d1 = 2.0 * Math::PI / @item_max
  422.    d2 = d1 / MOVING_FRAMES
  423.    d2 *= -1 if mode != 0
  424.    for i in 0...@item_max
  425.      j = i - @index
  426.      d = d1 * j + d2 * @steps
  427.      x = @cx + ( RING_R * Math.sin( d ) ).to_i
  428.      y = @cy - ( RING_R * Math.cos( d ) ).to_i
  429.      draw_item(x, y, i)
  430.    end
  431.    @steps -= 1
  432.    if @steps < 1
  433.      @mode = MODE_WAIT
  434.    end
  435. end
  436. #--------------------------------------------------------------------------
  437. # œ €–Ú‚Ì•`‰æ
  438. #     x :
  439. #     y :
  440. #     i : €–ڔԍ†
  441. #--------------------------------------------------------------------------
  442. def draw_item(x, y, i)
  443.    #p "x=" + x.to_s + " y=" + y.to_s + " i=" + @items[i].to_s
  444.    rect = Rect.new(0, 0, @items[i].width, @items[i].height)
  445.    if @index == i
  446.      self.contents.blt( x, y, @items[i], rect )
  447.      if @disabled[@index]
  448.        self.contents.blt( x, y, ICON_DISABLE, rect )
  449.      end
  450.    else
  451.      self.contents.blt( x, y, @items[i], rect, 128 )
  452.      if @disabled[@index]
  453.        self.contents.blt( x, y, ICON_DISABLE, rect, 128 )
  454.      end
  455.    end
  456. end
  457. #--------------------------------------------------------------------------
  458. # œ €–ڂ𖳌ø‚É‚·‚é
  459. #     index : €–ڔԍ†
  460. #--------------------------------------------------------------------------
  461. def disable_item(index)
  462.    @disabled[index] = true
  463. end
  464. #--------------------------------------------------------------------------
  465. # › ‰Šú‰»ƒAƒjƒ[ƒVƒ‡ƒ“‚̏€”õ
  466. #--------------------------------------------------------------------------
  467. def setup_move_start
  468.    @mode = MODE_START
  469.    @steps = STARTUP_FRAMES
  470.    if  SE_STARTUP != nil and SE_STARTUP != ""
  471.      Audio.se_play("Audio/SE/" + SE_STARTUP, 80, 100)
  472.    end
  473. end
  474. #--------------------------------------------------------------------------
  475. # › ‰ñ“]ƒAƒjƒ[ƒVƒ‡ƒ“‚̏€”õ
  476. #--------------------------------------------------------------------------
  477. def setup_move_move(mode)
  478.    if mode == MODE_MOVER
  479.      @index -= 1
  480.      @index = @items.size - 1 if @index < 0
  481.    elsif mode == MODE_MOVEL
  482.      @index += 1
  483.      @index = 0 if @index >= @items.size
  484.    else
  485.      return
  486.    end
  487.    @mode = mode
  488.    @steps = MOVING_FRAMES
  489. end
  490. #--------------------------------------------------------------------------
  491. # › ƒAƒjƒ[ƒVƒ‡ƒ“’†‚©‚Ç‚¤‚©
  492. #--------------------------------------------------------------------------
  493. def animation?
  494.    return @mode != MODE_WAIT
  495. end
  496. end

  497. #===================================================
  498. # ▲ CLASS Window_RingMenu Ends
  499. #===================================================


  500. #===================================================
  501. # ▼ CLASS Window_RingMenuStatus Begins
  502. #===================================================

  503. class Window_RingMenuStatus < Window_Selectable
  504. #--------------------------------------------------------------------------
  505. # œ ƒIƒuƒWƒFƒNƒg‰Šú‰»
  506. #--------------------------------------------------------------------------
  507. def initialize
  508.    super(204, 64, 232, 352)
  509.    self.contents = Bitmap.new(width - 32, height - 32)
  510.    self.contents.font.size = $chara_select[5]
  511.    refresh
  512.    self.active = false
  513.    self.index = -1
  514. end
  515. #--------------------------------------------------------------------------
  516. # œ ƒŠƒtƒŒƒbƒVƒ…
  517. #--------------------------------------------------------------------------
  518. def refresh
  519.    self.contents.clear
  520.    self.windowskin = RPG::Cache.windowskin($chara_select[4])
  521.    self.contents.font.name = $chara_select[0]
  522.    self.contents.font.color = text_color($chara_select[1])
  523.    @item_max = $game_party.actors.size
  524.    for i in 0...$game_party.actors.size
  525.      x = 80
  526.      y = 80 * i
  527.      actor = $game_party.actors[i]
  528.      draw_actor_graphic(actor, x - 40, y + 80)
  529.      draw_actor_name(actor, x, y + 24)
  530.    end
  531. end
  532. #--------------------------------------------------------------------------
  533. # œ ƒJ[ƒ\ƒ‹‚Ì‹éŒ`XV
  534. #--------------------------------------------------------------------------
  535. def update_cursor_rect
  536.    if @index < 0
  537.      self.cursor_rect.empty
  538.    else
  539.      self.cursor_rect.set(0, @index * 80, self.width - 32, 80)
  540.    end
  541. end
  542. end
  543. #===================================================
  544. # ▲ CLASS Window_RingMenuStatus Ends
  545. #===================================================


  546. #===================================================
  547. # ▼ CLASS Game_Map Additional Code Begins
  548. #===================================================
  549. class Game_Map
  550.   
  551. #Dubealex Addition (from XRXS) to show Map Name on screen
  552. def name
  553.    $map_infos[@map_id]
  554. end
  555. end

  556. #===================================================
  557. # ▲ CLASS Game_Map Additional Code Ends
  558. #===================================================


  559. #===================================================
  560. # ▼ CLASS Scene_Title Additional Code Begins
  561. #===================================================
  562. class Scene_Title

  563. #Dubealex Addition (from XRXS) to show Map Name on screen
  564.    $map_infos = load_data("Data/MapInfos.rxdata")
  565.    for key in $map_infos.keys
  566.      $map_infos[key] = $map_infos[key].name
  567.    end
  568. end

  569. #===================================================
  570. # ▲ CLASS Scene_Title Additional Code Ends
  571. #===================================================


  572. #===================================================
  573. # ▼ CLASS Window_Location Begins
  574. #===================================================

  575. class Window_Location < Window_Base

  576. def initialize
  577.   super(0, 0, $window_size[0], $window_size[1])
  578.    self.contents = Bitmap.new(width - 32, height - 32)
  579.    self.contents.font.name = $location_text[0]
  580.    self.contents.font.size = $location_text[1]
  581.   refresh
  582. end

  583. def refresh
  584.   self.contents.clear
  585.   self.windowskin = RPG::Cache.windowskin($window_location_skin)
  586.   self.contents.font.color = text_color($location_text[2])
  587.   self.contents.draw_text(4, 0, 120, 32, $location_text[3])
  588.   self.contents.font.color = text_color($location_text[4])
  589.   self.contents.draw_text(4, 32, 120, 32, $game_map.name, 2)
  590. end
  591. end
  592. #===================================================
  593. # ▲ CLASS Window_Location Ends
  594. #===================================================

  595. #===================================================
  596. # ▲ Ring Menu - Show Player Location R1 - Ends
  597. #===================================================
复制代码

似乎有点长,,,不过效果还是很可观的- -
那么!给点糖呗     

评分

参与人数 2星屑 +230 收起 理由
怪蜀黍 + 225 发布糖
zmz6668 + 5 塞糖

查看全部评分

唉
梦石
0
星屑
400
在线时间
602 小时
注册时间
2014-5-8
回帖
602
发表于 2015-1-30 17:27:42 | 显示全部楼层
358行有错误

点评

好了我把告示加上去了→_→  发表于 2015-1-30 18:34
好吧不知为啥那里无法修改- -还是得那啥  发表于 2015-1-30 18:27
已修改- -可重新复制粘贴  发表于 2015-1-30 18:26
这是常识- -  发表于 2015-1-30 17:56
回复

使用道具 举报

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

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部