以下引用劍之飛龍☆于2008-8-26 11:02:45的发言:
http://rpg.blue/web/htm/news425.htm
以下引用IamI于2008-8-26 11:02:50的发言:
LS……那个……Window_Message的父类是Window_Selectable,文字取得不能
没有Window_Message,不敢乱动~所以纠结的设成定值。如果是默认Window_Message的话,再改一下。
#############################################
if self.is_a?(Window_Message)
cursor_width = 40
end
#############################################
[本贴由作者于 2008-8-26 11:04:29 最后编辑]
#############################################
if self.is_a?(Window_Message)
cursor_width = 40
end
#############################################
class Interpreter
#--------------------------------------------------------------------------
# ● 设置选择项
#--------------------------------------------------------------------------
def setup_choices(parameters)
# choice_max 为设置选择项的项目数
$game_temp.choice_max = parameters[0].size
# message_text 为设置选择项
for text in parameters[0]
$game_temp.message_text += text + "\n"
if $scene.is_a?(Scene_Map)
end
end
##############################
$scene.message_window.choices = parameters[0]
##############################
# 设置取消的情况的处理
$game_temp.choice_cancel_type = parameters[1]
# 返回调用设置
current_indent = @list[@index].indent
$game_temp.choice_proc = Proc.new { |n| @branch[current_indent] = n }
end
end
class Scene_Map
attr_accessor :message_window
end
class Window_Message
attr_accessor :choices
alias o_i initialize
def initialize
@choices = []
o_i
end
def update_cursor_rect(text = nil)
if @index >= 0
n = $game_temp.choice_start + @index
#######################################################
if text != nil and text != ""
@cursor_width = self.contents.text_size(@choices[@index]).width + 8
end
########################################################
self.cursor_rect.set(8, n * 32, @cursor_width, 32)
else
self.cursor_rect.empty
end
end
end
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |