查看: 1436|回复: 0

[已经过期] 请问怎么把脚本中的消息滚动功能取消

[复制链接]
梦石
0
星屑
50
在线时间
30 小时
注册时间
2010-8-22
回帖
12
发表于 2013-3-31 21:33:42 | 显示全部楼层 |阅读模式

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

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

×
本帖最后由 hyyssk 于 2013-3-31 23:39 编辑

VX的脚本,怎么只删除消息滚动功能

  1. #==============================================================================
  2. # ■ Window_Message
  3. #------------------------------------------------------------------------------
  4. #  文章表示に使うメッセージウィンドウです。
  5. #==============================================================================

  6. class Window_Message < Window_Selectable
  7.   #--------------------------------------------------------------------------
  8.   # ● オブジェクト初期化
  9.   #
  10.   #修正:スクロール対応
  11.   #      補助ウィンドウ作成
  12.   #--------------------------------------------------------------------------
  13.   def initialize
  14. #   super(0, 288, 544, 128)
  15.     super(24, 276, 496, 128)
  16.    
  17.     self.z = 200
  18.     self.active = false
  19.     self.index = -1
  20.     self.openness = 0
  21.     self.back_opacity = 200

  22.     @opening = false            # ウィンドウのオープン中フラグ
  23.     @closing = false            # ウィンドウのクローズ中フラグ
  24.     @text = nil                 # 表示すべき残りの文章
  25.    
  26.     @text2 = []
  27.     @scroll_flg = 0
  28.     @skip_trigger = false
  29.     @messageSE = 0
  30.    
  31.     @choice_count = 0           # 選択肢表示用
  32.     @choice_skip  = 0           # 選択肢決定後に入力待ちしない
  33.    
  34.     @contents_x = 0             # 次の文字を描画する X 座標
  35.     @contents_y = 0             # 次の文字を描画する Y 座標
  36.     @line_count = 0             # 現在までに描画した行数
  37.     @wait_count = 0             # ウェイトカウント
  38.     @background = 0             # 背景タイプ
  39.     @position = 2               # 表示位置
  40.     @show_fast = false          # 早送りフラグ
  41.     @line_show_fast = false     # 行単位早送りフラグ
  42.     @pause_skip = false         # 入力待ち省略フラグ
  43.    
  44.     # 曜日ウィンドウ作成
  45.     create_day_window
  46.    
  47.     create_gold_window
  48.     create_number_input_window
  49.     create_back_sprite
  50.    
  51.   end
  52.   #--------------------------------------------------------------------------
  53.   # ● 解放
  54.   #
  55.   #修正:曜日ウィンドウ解放
  56.   #--------------------------------------------------------------------------
  57.   def dispose
  58.     super
  59.    
  60.     # 曜日ウィンドウ解放
  61.     dispose_day_window
  62.    
  63.     dispose_gold_window
  64.     dispose_number_input_window
  65.     dispose_back_sprite
  66.   end
  67.   #--------------------------------------------------------------------------
  68.   # ● メッセージスキップトリガー管理
  69.   #
  70.   #修正:曜日ウィンドウ解放
  71.   #--------------------------------------------------------------------------
  72.   def input_skip
  73.     return true if Input.press?(Input::A)
  74.     return false
  75.   end
  76.   #--------------------------------------------------------------------------
  77.   # ● ウィンドウ透明
  78.   #
  79.   #新規作成
  80.   #--------------------------------------------------------------------------
  81.   def window_hide
  82.     flg = (Input.trigger?(Input::L) or Input.trigger?(Input::R))
  83.     if flg == true
  84.       if $game_switches[2] == true
  85.         $game_switches[2] = false
  86.       else
  87.         $game_switches[2] = true
  88.       end
  89.     end
  90.    
  91.     if $game_switches[2] == true
  92.       self.y = 12
  93.     else
  94.       self.y = 276
  95.     end
  96.    
  97.     if $game_switches[7] == true and Input.trigger?(Input::X)
  98.       if self.opacity == 255
  99.         Sound.play_cancel
  100.         self.opacity = 0
  101.         self.contents_opacity = 0
  102.       elsif self.opacity != 255
  103.         Sound.play_cancel
  104.         self.opacity = 255
  105.         self.contents_opacity = 255
  106.       end
  107.     end
  108.   end
  109.   #--------------------------------------------------------------------------
  110.   # ● 文章送りの入力処理
  111.   #
  112.   #修正:ウィンドウ一時消去
  113.   #      LRボタンで継続早送り
  114.   #--------------------------------------------------------------------------
  115.   def input_pause
  116.    
  117.     window_hide
  118.       
  119.     if self.opacity != 255
  120.       # ウィンドウ一時消去中はメッセージ送りしない
  121.       
  122.     elsif input_skip
  123.       # 継続早送り
  124.       if @text != nil and not @text.empty?
  125.         new_page if @line_count >= MAX_LINE
  126.       else
  127.         terminate_message
  128.       end
  129.    
  130. #   if Input.trigger?(Input::B) or Input.trigger?(Input::C)
  131.     elsif Input.trigger?(Input::B) or Input.trigger?(Input::C)
  132.       self.pause = false
  133.       if @text != nil and not @text.empty?
  134.         new_page if @line_count >= MAX_LINE
  135.       else
  136.         terminate_message
  137.       end
  138.     end
  139.   end
  140.   #--------------------------------------------------------------------------
  141.   # ● 選択肢の入力処理
  142.   #
  143.   #修正:ウィンドウ一時消去
  144.   #--------------------------------------------------------------------------
  145.   def input_choice
  146.    
  147.     window_hide
  148.       
  149.     if self.opacity != 255
  150.       # ウィンドウ一時消去中はメッセージ送りしない
  151.       
  152. #   if Input.trigger?(Input::B)
  153.     elsif Input.trigger?(Input::B)
  154.       if $game_message.choice_cancel_type > 0
  155.         Sound.play_cancel
  156.         $game_message.choice_proc.call($game_message.choice_cancel_type - 1)
  157.         terminate_message
  158.       end
  159.     elsif Input.trigger?(Input::C)
  160.       Sound.play_decision
  161.       $game_message.choice_proc.call(self.index)
  162.       terminate_message
  163.     end
  164.   end
  165.   #--------------------------------------------------------------------------
  166.   # ● 早送りフラグの更新
  167.   #
  168.   #修正:早送りでのウェイト短縮は行わない
  169.   #      ダッシュボタンで継続早送り
  170.   #--------------------------------------------------------------------------
  171.   def update_show_fast
  172.     if self.pause or self.openness < 255
  173.       @show_fast = false
  174.     elsif input_skip
  175.       # 継続早送り
  176.       @show_fast = true
  177.     elsif Input.trigger?(Input::C) #and @wait_count < 2
  178.       @show_fast = true
  179.     elsif not Input.press?(Input::C)
  180.       @show_fast = false
  181.     end
  182. #  if @show_fast and @wait_count > 0
  183. #     @wait_count -= 1
  184. #   end
  185.   end
  186.   #--------------------------------------------------------------------------
  187.   # ● メッセージの開始
  188.   #
  189.   #修正:1行だけ読み込む
  190.   #      スクロール用配列に格納する
  191.   #--------------------------------------------------------------------------
  192.   def start_message
  193.     if self.openness < 255
  194.       # 最初の一行描写前は初期化する
  195.       contents.clear
  196.       @contents_y = 0
  197.       @line_count = 0
  198.       @scroll_flg = 0
  199.       @text = ""
  200.       @text2.clear
  201.       contents.font.color = text_color(0)
  202.     end
  203.     @text = ""
  204. #   @text += "  ・" if (@contents_y / WLH) >= $game_message.choice_start
  205.     @text += "  ・" if $game_message.choice_start != 99
  206.    
  207.     @text += $game_message.texts.shift
  208.    
  209.     @text3 = ""
  210.     @text3 += @text
  211.     convert_special_characters_SCROLL
  212.     @text2 << @text3
  213.    
  214.     @text += "\x00"
  215.     convert_special_characters

  216.     if @text2.size > 5
  217.       hoge = @text2.shift
  218.     end
  219.    
  220.     @item_max = $game_message.choice_max
  221.     reset_window
  222.     new_page
  223.    
  224.     # 既に4行描写している場合はスクロールフラグを立てる
  225.     @scroll_flg = 1 if @line_count >= 4

  226.   end
  227.   #--------------------------------------------------------------------------
  228.   # ● フレーム更新
  229.   #
  230.   #修正:スクロールフラグがONの場合の処理
  231.   #      曜日ウィンドウ更新
  232.   #--------------------------------------------------------------------------
  233.   def update
  234.     super
  235.    
  236.     # 曜日ウィンドウ更新
  237.     update_day_window
  238.    
  239.     update_gold_window
  240.     update_number_input_window
  241.     update_back_sprite
  242.     update_show_fast
  243.     unless @opening or @closing             # ウィンドウの開閉中以外
  244.       if @wait_count > 0                    # 文章内ウェイト中
  245.         @wait_count -= 1
  246.       elsif self.pause                      # 文章送り待機中
  247.         input_pause
  248.       elsif self.active                     # 選択肢入力中
  249.         input_choice
  250.         
  251.         # 選択肢決定後にpause状態になるのを防ぐ
  252.         @text = nil if @text != nil
  253.         
  254.       elsif @number_input_window.visible    # 数値入力中
  255.         input_number
  256.       elsif @scroll_flg != 0
  257.         text_scroll
  258.       elsif @text != nil                    # 残りの文章が存在
  259.         update_message                        # メッセージの更新
  260.       elsif continue?                       # 続ける場合
  261.         start_message                         # メッセージの開始
  262.         open                                  # ウィンドウを開く
  263.         $game_message.visible = true
  264.       else                                  # 続けない場合
  265.         close                                 # ウィンドウを閉じる
  266.         $game_message.visible = @closing
  267.         @skip_trigger = false
  268.       end
  269.     end
  270.   end
  271.   #--------------------------------------------------------------------------
  272.   # ● スクロール演出 半行分上にずらして4行描写
  273.   #
  274.   #新規作成
  275.   #--------------------------------------------------------------------------
  276.   def text_scroll
  277.     contents.clear
  278.    
  279.     @contents_x = 0
  280.     @contents_y = WLH * 3
  281.     y = -12 * @scroll_flg
  282.    
  283. #~     for i in [email]0...@text2.size[/email] - 1
  284. #~       contents.draw_text(@contents_x, y, 544, WLH, @text2[i])
  285. #~       y += WLH
  286. #~     end

  287.     texts = Marshal.load(Marshal.dump(@text2))
  288.     for i in 0...texts.size - 1
  289.       c = texts[i].slice(/./m)
  290.       case c
  291.       when nil                          # 描画すべき文字がない
  292.       when "\x01"                       # \C[n]  (文字色変更)
  293.         texts[i].sub!(/\x01\[([0-9]+)\]/, "")
  294.          c1 = text_color($1.to_i)
  295.         texts[i].sub!(/\x01\[([0-9]+)\]/, "")
  296.          c2 = text_color($1.to_i)
  297.         contents.font.color = c1
  298.         contents.draw_text(@contents_x, y, 544, WLH, texts[i])
  299.         contents.font.color = c2
  300.       else                              # 普通の文字
  301.         contents.draw_text(@contents_x, y, 544, WLH, texts[i])
  302.       end
  303.       y += WLH
  304.     end
  305.    
  306.     @scroll_flg += 1
  307.     @scroll_flg = 0 if @scroll_flg == 3
  308.   end
  309.   #--------------------------------------------------------------------------
  310.   # ● 改ページ処理
  311.   #
  312.   #修正:Y座標を初期化しない
  313.   #      顔グラ描写を立ち絵描写に変更
  314.   #      早送りフラグはオフにしない
  315.   #--------------------------------------------------------------------------
  316.   def new_page
  317. #   contents.clear
  318. #   if $game_message.face_name.empty?
  319.       @contents_x = 0
  320. #   else
  321. #     name = $game_message.face_name
  322. #     index = $game_message.face_index
  323. #     draw_face(name, index, 0, 0)
  324. #     @contents_x = 112
  325. #   end
  326. #   @contents_y = 0
  327. #   @line_count = 0
  328.     if input_skip
  329.       @show_fast = true
  330.     elsif Input.press?(Input::A)
  331.       @show_fast = false
  332.     end
  333.    
  334.     @line_show_fast = false
  335.     @pause_skip = false
  336. #   contents.font.color = text_color(0)
  337.   end
  338.   #--------------------------------------------------------------------------
  339.   # ● 改行処理
  340.   #
  341.   #修正:顔グラを無視
  342.   #--------------------------------------------------------------------------
  343.   def new_line
  344. #   if $game_message.face_name.empty?
  345.       @contents_x = 0
  346. #   else
  347. #     @contents_x = 112
  348. #   end
  349. #   @contents_y += WLH
  350. #   @line_count += 1
  351.     if @line_count >= 3
  352.       # 4行目以降を描写する場合
  353.       @contents_y = WLH * 3
  354.       @line_count += 1
  355.       # 文章に続きがある場合はスクロールフラグを立てる
  356. #      @scroll_flg = 1 if $game_message.texts.size != 0
  357.     else
  358.       # 1~3行目の場合
  359.       @contents_y += WLH
  360.       @line_count += 1
  361.     end
  362.     @line_show_fast = false
  363.   end
  364.   #--------------------------------------------------------------------------
  365.   # ● メッセージの終了
  366.   #
  367.   #修正:曜日ウィンドウを閉じる
  368.   #--------------------------------------------------------------------------
  369.   def terminate_message
  370.     self.active = false
  371.     self.pause = false
  372.     self.index = -1
  373.    
  374.     # 曜日ウィンドウを閉じる
  375.     @day_window.close
  376.    
  377.     @gold_window.close
  378.     @number_input_window.active = false
  379.     @number_input_window.visible = false
  380.     $game_message.main_proc.call if $game_message.main_proc != nil
  381.     $game_message.clear
  382.   end
  383.   #--------------------------------------------------------------------------
  384.   # ● メッセージの更新
  385.   #
  386.   #修正:曜日ウィンドウを開く
  387.   #--------------------------------------------------------------------------
  388.   def update_message
  389.     loop do
  390.       c = @text.slice!(/./m)            # 次の文字を取得
  391.       case c
  392.       when nil                          # 描画すべき文字がない
  393.         finish_message                  # 更新終了
  394.         break
  395.       when "\x00"                       # 改行
  396.         new_line
  397.         if @line_count >= MAX_LINE      # 行数が最大のとき
  398.           unless @text.empty?           # さらに続きがあるなら
  399.             self.pause = true           # 入力待ちを入れる
  400.             break
  401.           end
  402.         end
  403.       when "\x01"                       # \C[n]  (文字色変更)
  404.         @text.sub!(/\[([0-9]+)\]/, "")
  405.         contents.font.color = text_color($1.to_i)
  406.         next
  407.       when "\x02"                       # \G  (所持金表示)
  408.         @gold_window.refresh
  409.         @gold_window.open
  410.       when "\x03"                       # \.  (ウェイト 1/4 秒)
  411.         @wait_count = 15
  412.         break
  413.       when "\x04"                       # \|  (ウェイト 1 秒)
  414.         @wait_count = 60
  415.         break
  416.       when "\x05"                       # \!  (入力待ち)
  417.         self.pause = true
  418.         break
  419.       when "\x06"                       # \>  (瞬間表示 ON)
  420.         @line_show_fast = true
  421.       when "\x07"                       # \<  (瞬間表示 OFF)
  422.         @line_show_fast = false
  423.       when "\x08"                       # \^  (入力待ちなし)
  424.         @pause_skip = true
  425.       when "\x09"                       # \Y  (曜日表示)
  426.         @day_window.refresh
  427.         @day_window.open
  428.       else                              # 普通の文字
  429.         @messageSE += 1
  430.         if @messageSE >=2 and @choice_count == 0
  431.           Sound.play_message if @line_show_fast == false
  432.           @messageSE = 0
  433.         end
  434.         
  435.         contents.draw_text(@contents_x, @contents_y, 40, WLH, c)
  436.         c_width = contents.text_size(c).width
  437.         @contents_x += c_width
  438.       end
  439.       break unless @show_fast or @line_show_fast
  440.     end
  441.   end
  442.   #--------------------------------------------------------------------------
  443.   # ● メッセージの更新終了
  444.   #
  445.   #修正: 残り文章がある場合は読み込む
  446.   #--------------------------------------------------------------------------
  447.   def finish_message
  448.     if $game_message.choice_max > 0
  449.       # 選択肢の場合
  450.       @choice_count += 1
  451.       if $game_message.texts.empty? == false
  452.         # 残り文章がある場合は読み込む
  453.         start_message
  454.       elsif $game_message.choice_max > 0
  455.         start_choice
  456.         @choice_count = 0
  457.       end
  458.       
  459.     elsif $game_message.num_input_variable_id > 0
  460.       start_number_input
  461.     elsif @pause_skip
  462.       terminate_message
  463.     elsif $game_message.texts.empty? == false
  464.       # 残り文章がある場合は読み込む
  465.       start_message
  466.     else
  467.       self.pause = true
  468.       @text = nil
  469.       @wait_count = 0
  470.     end
  471.   end
  472.   #--------------------------------------------------------------------------
  473.   # ● カーソルの更新
  474.   #
  475.   #修正:顔グラは無視
  476.   #      カーソル形状変更
  477.   #--------------------------------------------------------------------------
  478.   def update_cursor
  479.     if @index >= 0
  480. #     x = $game_message.face_name.empty? ? 0 : 112
  481.       x = 8
  482.       y = ($game_message.choice_start + @index) * WLH
  483. #     self.cursor_rect.set(x, y, contents.width - x, WLH)
  484.       self.cursor_rect.set(x, y, WLH, WLH)
  485.     else
  486.       self.cursor_rect.empty
  487.     end
  488.   end
  489.   #--------------------------------------------------------------------------
  490.   # ● 曜日ウィンドウの作成
  491.   #
  492.   #新規作成
  493.   #--------------------------------------------------------------------------
  494.   def create_day_window
  495.     @day_window = Window_Day.new(0, 0)
  496.     @day_window.openness = 0
  497.     @day_window.z = 199
  498.   end
  499.   #--------------------------------------------------------------------------
  500.   # ● 曜日ウィンドウの解放
  501.   #
  502.   #新規作成
  503.   #--------------------------------------------------------------------------
  504.   def dispose_day_window
  505.     @day_window.dispose
  506.   end
  507.   #--------------------------------------------------------------------------
  508.   # ● 曜日ウィンドウの更新
  509.   #
  510.   #新規作成
  511.   #--------------------------------------------------------------------------
  512.   def update_day_window
  513.     @day_window.update
  514.   end
  515.   #--------------------------------------------------------------------------
  516.   # ● 特殊文字の変換(スクロール用)
  517.   #
  518.   #新規作成
  519.   #--------------------------------------------------------------------------
  520.   def convert_special_characters_SCROLL
  521.     @text3.gsub!(/\\V\[([0-9]+)\]/i) { $game_variables[$1.to_i] }
  522.     @text3.gsub!(/\\V\[([0-9]+)\]/i) { $game_variables[$1.to_i] }
  523.     @text3.gsub!(/\\N\[([0-9]+)\]/i) { $game_actors[$1.to_i].name }
  524.    
  525.     # キャラ名前(文頭)
  526.     @text3.gsub!(/^\\GN\[([0-9]+)\]/i) {
  527.       "\x01[#{8}]" + Vocab::Char_Name[$1.to_i] + "\x01[#{0}]"}
  528.       
  529.     # キャラ名前
  530.     @text3.gsub!(/\\GN\[([0-9]+)\]/i) {
  531.       Vocab::Char_Name[$1.to_i]}
  532.    
  533.     # エネミー名前(文頭)
  534.     @text3.gsub!(/^\\M\[([0-9]+)\]/i) {
  535.       "\x01[#{8}]" + $data_enemies[$1.to_i].name + "\x01[#{0}]"}
  536.       
  537.     # エネミー名前
  538.     @text3.gsub!(/\\M\[([0-9]+)\]/i) { $data_enemies[$1.to_i].name }
  539.    
  540.     # 固有名詞
  541.     @text3.gsub!(/\\TN\[([0-9]+)\]/i) { Vocab::Text_Name[$1.to_i] }
  542.    
  543.     # アイテム名前
  544.     @text3.gsub!(/\\I\[([0-9]+)\]/i) { $data_items[$1.to_i].name }
  545.     @text3.gsub!(/\\W\[([0-9]+)\]/i) { $data_weapons[$1.to_i].name }
  546.     @text3.gsub!(/\\A\[([0-9]+)\]/i) { $data_armors[$1.to_i].name }
  547.    
  548.    
  549.     # 先の曜日
  550.     @text.gsub!(/\\D\[([0-9]+)\]/i) {
  551.       Vocab::Day_Name[$1.to_i + $game_variables[5]]
  552.     }
  553.    
  554.     @text3.gsub!(/\\C\[([0-9]+)\]/i) { "" }
  555.    
  556.     # 曜日画面を開く
  557.     @text3.gsub!(/\\Y/)              { "" }
  558.    
  559.     @text3.gsub!(/\\G/)              { "" }
  560.     @text3.gsub!(/\\\./)             { "" }
  561.     @text3.gsub!(/\\\|/)             { "" }
  562.     @text3.gsub!(/\\!/)              { "" }
  563.     @text3.gsub!(/\\>/)              { "" }
  564.     @text3.gsub!(/\\</)              { "" }
  565.     @text3.gsub!(/\\\^/)             { "" }
  566.     @text3.gsub!(/\\\\/)             { "" }
  567.   end
  568.   #--------------------------------------------------------------------------
  569.   # ● 特殊文字の変換
  570.   #
  571.   #修正:固有名詞を表示する
  572.   #--------------------------------------------------------------------------
  573.   def convert_special_characters
  574.     @text.gsub!(/\\V\[([0-9]+)\]/i) { $game_variables[$1.to_i] }
  575.     @text.gsub!(/\\V\[([0-9]+)\]/i) { $game_variables[$1.to_i] }
  576.     @text.gsub!(/\\N\[([0-9]+)\]/i) { $game_actors[$1.to_i].name }
  577.    
  578.     # キャラ名前(文頭)
  579.     @text.gsub!(/^\\GN\[([0-9]+)\]/i) {
  580.       "\x01[#{8}]" + Vocab::Char_Name[$1.to_i] + "\x01[#{0}]"}
  581.       
  582.     # キャラ名前
  583.     @text.gsub!(/\\GN\[([0-9]+)\]/i) {
  584.       Vocab::Char_Name[$1.to_i]}
  585.       
  586.     # エネミー名前(文頭)
  587.     @text.gsub!(/^\\M\[([0-9]+)\]/i) {
  588.       "\x01[#{8}]" + $data_enemies[$1.to_i].name + "\x01[#{0}]"}
  589.    
  590.     # エネミー名前
  591.     @text.gsub!(/\\M\[([0-9]+)\]/i) { $data_enemies[$1.to_i].name }
  592.    
  593.     # 固有名詞
  594.     @text.gsub!(/\\TN\[([0-9]+)\]/i) { Vocab::Text_Name[$1.to_i] }
  595.       
  596.     # アイテム名前
  597.     @text.gsub!(/\\I\[([0-9]+)\]/i) { $data_items[$1.to_i].name }
  598.     @text.gsub!(/\\W\[([0-9]+)\]/i) { $data_weapons[$1.to_i].name }
  599.     @text.gsub!(/\\A\[([0-9]+)\]/i) { $data_armors[$1.to_i].name }
  600.    
  601.     # 先の曜日
  602.     @text.gsub!(/\\D\[([0-9]+)\]/i) {
  603.       Vocab::Day_Name[$1.to_i + $game_variables[5]]
  604.     }
  605.    
  606.     @text.gsub!(/\\C\[([0-9]+)\]/i) { "\x01[#{$1}]" }
  607.    
  608.     # 曜日画面を開く
  609.     @text.gsub!(/\\Y/)             { "\x09" }
  610.    
  611.     @text.gsub!(/\\G/)              { "\x02" }
  612.     @text.gsub!(/\\\./)             { "\x03" }
  613.     @text.gsub!(/\\\|/)             { "\x04" }
  614.     @text.gsub!(/\\!/)              { "\x05" }
  615.     @text.gsub!(/\\>/)              { "\x06" }
  616.     @text.gsub!(/\\</)              { "\x07" }
  617.     @text.gsub!(/\\\^/)             { "\x08" }
  618.     @text.gsub!(/\\\\/)             { "\" }
  619.   end
  620.   #--------------------------------------------------------------------------
  621.   # ● ウィンドウの背景と位置の設定
  622.   #--------------------------------------------------------------------------
  623.   def reset_window
  624.     @background = $game_message.background
  625.     @position = $game_message.position
  626. #~     if @background == 0   # 通常ウィンドウ
  627. #~       self.opacity = 255
  628. #~     else                  # 背景を暗くする、透明にする
  629. #~       self.opacity = 0
  630. #~     end
  631.     case @position
  632.     when 0  # 上
  633. #     self.y = 0
  634.       window_hide
  635.       @gold_window.y = 360
  636.     when 1  # 中
  637. #     self.y = 144
  638.       window_hide
  639.       @gold_window.y = 0
  640.     when 2  # 下
  641. #     self.y = 288
  642.       window_hide
  643.       @gold_window.y = 0
  644.     end
  645.   end
  646. end
复制代码
您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

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

在本版发帖返回顶部