class MyPlugin < Plugin_Menu
def initialize
super('变量处理')
end
# 处理 data 和外部数据
def on_open; end
def on_close; end
def on_save; end
def on_cancel; end
def layout
title '操作变量'
align :vertical
form '变量' do
data[0] << 0
radio do
align :vertical
option do
label '单独'
data[1] << select_variables
end
option do
align :horizontal
label '统一'
data[1] << integer(0, $game_variables.size)
label '~'
data[2] << integer(0, $game_variables.size)
end
end
end
form '操作' do
radio do
align :horizontal
option do
label '代入'
data[3] << 0
end
option do
label '加法'
data[3] << 1
end
option do
label '减法'
data[3] << 2
end
option do
label '乘法'
data[3] << 3
end
option do
label '除法'
data[3] << 4
end
option do
label '取余'
data[3] << 5
end
end
end
form '操作数' do
radio do
align :horizontal
option do
label '常量'
data[4] << interger(-99_999, 99_999)
end
# ... 中间省略 ...
option '其它' do
listbox do
option do
label '地图ID'
data[4] << 0
end
# ... 中间省略 ...
option do
label '存档次数'
data[4] << 6
end
end
end
end
end
end
end
class MyPlugin < Plugin_Menu
def initialize
super('变量处理')
end
# 处理 data 和外部数据
def on_open; end
def on_close; end
def on_save; end
def on_cancel; end
def layout
title '操作变量'
align :vertical
form '变量' do
data[0] << 0
radio do
align :vertical
option do
label '单独'
data[1] << select_variables
end
option do
align :horizontal
label '统一'
data[1] << integer(0, $game_variables.size)
label '~'
data[2] << integer(0, $game_variables.size)
end
end
end
form '操作' do
radio do
align :horizontal
option do
label '代入'
data[3] << 0
end
option do
label '加法'
data[3] << 1
end
option do
label '减法'
data[3] << 2
end
option do
label '乘法'
data[3] << 3
end
option do
label '除法'
data[3] << 4
end
option do
label '取余'
data[3] << 5
end
end
end
form '操作数' do
radio do
align :horizontal
option do
label '常量'
data[4] << interger(-99_999, 99_999)
end
# ... 中间省略 ...
option '其它' do
listbox do
option do
label '地图ID'
data[4] << 0
end
# ... 中间省略 ...
option do
label '存档次数'
data[4] << 6
end
end
end
end
end
end
end