Project1
标题:
求個成績單的腳本~~
[打印本页]
作者:
ji3rul4coco
时间:
2013-3-16 19:19
标题:
求個成績單的腳本~~
本帖最后由 ji3rul4coco 于 2013-4-7 17:45 编辑
話說上會找到一個成績單的腳本,當時覺得沒有用就沒下載下來,後來怎麼找也找不到之前的帖子,請各位有腳本(或知道帖子位置)的幫個忙找找
關於成績單:
未命名.jpg
(85.44 KB, 下载次数: 24)
下载附件
保存到相册
2013-3-16 19:18 上传
作者:
布里蓝
时间:
2013-3-17 12:38
好歹说说在哪里找到的呀,日站还是外站还是6R还是其他网站?
作者:
布里蓝
时间:
2013-3-17 16:23
这个吧
module WhiteSnow
CONTENTS_SIZE = 6
# 表示する変数の数
CONTENTS = [
[ { "\\i[10]" => 0 } , {"\\v[15]" => 2} ],
[ { "\\i[11]" => 0 } , {"\\v[16]" => 2} ],
[ { "\\i[13]" => 0 } , {"\\v[17]" => 2} ],
[ { "\\i[14]" => 0 } , {"\\v[18]" => 2} ],
[ { "\\i[12]" => 0 } , {"\\v[19]" => 2} ],
[ { "\\i[15]" => 0 } , {"\\v[20]" => 2} ],
]
# 表示テキスト
# \\i[n]でn番のアイコンを描画、\\v[n]でn番の変数の値を描画します
end
#==============================================================================
# ■ Window_VariablesView
#==============================================================================
class Window_VariablesView < Window_Selectable
#--------------------------------------------------------------------------
# ● オブジェクト初期化
#--------------------------------------------------------------------------
def initialize
#~ super(0,0, window_width, fitting_height(WhiteSnow::CONTENTS_SIZE))
super(0,0, window_width, fitting_height(item_max))
refresh
end
#--------------------------------------------------------------------------
# ● ウィンドウ幅の取得
#--------------------------------------------------------------------------
def window_width
return 160
end
#--------------------------------------------------------------------------
# ● 項目数の取得
#--------------------------------------------------------------------------
def item_max
#~ return WhiteSnow::CONTENTS_SIZE
WhiteSnow::CONTENTS_SIZE - (WhiteSnow::CONTENTS_SIZE / 2)
end
#--------------------------------------------------------------------------
# ● リフレッシュ
#--------------------------------------------------------------------------
def refresh
contents.clear
WhiteSnow::CONTENTS_SIZE.times do |i|
WhiteSnow::CONTENTS[i].each do |content|
t = content.keys.pop
text = t.dup
unless text.scan(/\\v\[(\d+)\]/).empty?
text_v = text.gsub(/\\v\[(\d+)\]/) { "#{$game_variables[$1.to_i]}" }
text.nil?
text = "" if text.nil?
end
flag = true if text.scan(/\\i\[(\d+)\]/)
icon_index = $1.to_i
text_p = text.dup
text.gsub!(/\\i\[\d+\]/) { "" }
# 座標計算追加----------------------
item_width_x = item_width / 2
x = (i % 2) * item_width_x
y = (i / 2) * item_height
# ------------------------------------
if flag
case content[text_p]
when 0
#~ draw_icon(icon_index, 0, i * 24)
draw_icon(icon_index, x, y)
when 1
#~ draw_icon(icon_index, item_width / 2 - 12, i * 24)
draw_icon(icon_index, x + item_width_x / 2 - 12, y)
when 2
#~ draw_icon(icon_index, item_width, i * 24)
draw_icon(icon_index, x + item_width_x, y)
end
end
if text_v
#~ draw_text(0, i * 24, item_width, item_height, text_v, content[text])
draw_text(x, y, item_width_x, item_height, text_v, content[text])
else
#~ draw_text(0, i * 24, item_width, item_height, text, content[text]) unless text.empty?
draw_text(x, y, item_width_x, item_height, text, content[text]) unless text.empty?
end
end
end
end
#--------------------------------------------------------------------------
# ● ウィンドウを開く
#--------------------------------------------------------------------------
def open
refresh
super
end
end
#==============================================================================
# ■ Scene_Menu
#------------------------------------------------------------------------------
# メニュー画面の処理を行うクラスです。
#==============================================================================
class Scene_Menu < Scene_MenuBase
#--------------------------------------------------------------------------
# ● 開始処理
#--------------------------------------------------------------------------
alias variables_view_start start
def start
variables_view_start
create_variables_window
end
#--------------------------------------------------------------------------
# ● 変数ウィンドウの作成
#--------------------------------------------------------------------------
def create_variables_window
@variables_window = Window_VariablesView.new
@variables_window.x = 0
#@variables_window.y = Graphics.height - @gold_window.height - @variables_window.height
@variables_window.y = @command_window.height
end
end
复制代码
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1