ember2inferno
Member
Heh, hey all.
Me and my friend are making a cms, and we have designed the design (Haha) like this:
http://i110.photobucket.com/albums/n118 ... 06/cms.jpg[/IMG]
So we've edited the Scene_Title and made it like this so far:
http://i110.photobucket.com/albums/n118 ... 6/cms1.jpg[/IMG]
We want to space out the text on the command bar. Where it says Status etc. Because, clearly, they dont fill up enough space.
I will post the code too,
Can anyone help?
~ Sam
Me and my friend are making a cms, and we have designed the design (Haha) like this:
http://i110.photobucket.com/albums/n118 ... 06/cms.jpg[/IMG]
So we've edited the Scene_Title and made it like this so far:
http://i110.photobucket.com/albums/n118 ... 6/cms1.jpg[/IMG]
We want to space out the text on the command bar. Where it says Status etc. Because, clearly, they dont fill up enough space.
I will post the code too,
Code:
#==============================================================================
# â– Scene_Menu
#------------------------------------------------------------------------------
#  メニュー画é¢ã®å‡¦ç†ã‚’è¡Œã†ã‚¯ãƒ©ã‚¹ã§ã™ã€‚
#==============================================================================
class Scene_Menu
#--------------------------------------------------------------------------
# ◠オブジェクトåˆæœŸåŒ–
# menu_index : コマンドã®ã‚«ãƒ¼ã‚½ãƒ«åˆæœŸä½ç½®
#--------------------------------------------------------------------------
def initialize(menu_index = 0)
@menu_index = menu_index
end
#--------------------------------------------------------------------------
# ◠メイン処ç†
#--------------------------------------------------------------------------
def main
# コマンドウィンドウを作æˆ
s1 = $data_system.words.item
s2 = $data_system.words.skill
s3 = $data_system.words.equip
s4 = "Status"
s5 = "Save"
s6 = "Exit"
@command_window = Window_Command.new(160, [s1, s2, s3, s4, s5, s6])
@command_window.index = @menu_index
@command_window.x = 480
@command_window.y = 95
@command_window.height = 386
# パーティ人数㌠0 人ã®å ´åˆ
if $game_party.actors.size == 0
# アイテムã€ã‚¹ã‚ルã€è£…å‚™ã€ã‚¹ãƒ†ãƒ¼ã‚¿ã‚¹ã‚’無効化
@command_window.disable_item(0)
@command_window.disable_item(1)
@command_window.disable_item(2)
@command_window.disable_item(3)
end
# セーブç¦æ¢ã®å ´åˆ
if $game_system.save_disabled
# セーブを無効ã«ã™ã‚‹
@command_window.disable_item(4)
end
# プレイ時間ウィンドウを作æˆ
@playtime_window = Window_PlayTime.new
@playtime_window.x = 0
@playtime_window.y = 0
# æ©æ•°ã‚¦ã‚£ãƒ³ãƒ‰ã‚¦ã‚’作æˆ
@steps_window = Window_Steps.new
@steps_window.x = 160
@steps_window.y = 0
# ゴールドウィンドウを作æˆ
@gold_window = Window_Gold.new
@gold_window.height = 96
@gold_window.x = 320
@gold_window.y = 0
# ステータスウィンドウを作æˆ
# トランジション実行
Graphics.transition
# メインループ
loop do
# ゲーム画é¢ã‚’æ›´æ–°
Graphics.update
# å…¥åŠ›æƒ…å ±ã‚’æ›´æ–°
Input.update
# フレーム更新
update
# ç”»é¢ãŒåˆ‡ã‚Šæ›¿ã‚ã£ãŸã‚‰ãƒ«ãƒ¼ãƒ—ã‚’ä¸æ–
if $scene != self
break
end
end
# トランジション準備
Graphics.freeze
# ウィンドウを解放
@command_window.dispose
@playtime_window.dispose
@steps_window.dispose
@gold_window.dispose
end
#--------------------------------------------------------------------------
# ◠フレーム更新
#--------------------------------------------------------------------------
def update
# ウィンドウを更新
@command_window.update
@playtime_window.update
@steps_window.update
@gold_window.update
# コマンドウィンドウãŒã‚¢ã‚¯ãƒ†ã‚£ãƒ–ã®å ´åˆ: update_command を呼ã¶
if @command_window.active
update_command
return
end
# ステータスウィンドウãŒã‚¢ã‚¯ãƒ†ã‚£ãƒ–ã®å ´åˆ: update_status を呼ã¶
if @status_window.active
update_status
return
end
end
#--------------------------------------------------------------------------
# ◠フレーム更新 (コマンドウィンドウãŒã‚¢ã‚¯ãƒ†ã‚£ãƒ–ã®å ´åˆ)
#--------------------------------------------------------------------------
def update_command
# B ボタンãŒæŠ¼ã•ã‚ŒãŸå ´åˆ
if Input.trigger?(Input::B)
# ã‚ャンセル SE ã‚’æ¼”å¥
$game_system.se_play($data_system.cancel_se)
# マップ画é¢ã«åˆ‡ã‚Šæ›¿ãˆ
$scene = Scene_Map.new
return
end
# C ボタンãŒæŠ¼ã•ã‚ŒãŸå ´åˆ
if Input.trigger?(Input::C)
# パーティ人数㌠0 人ã§ã€ã‚»ãƒ¼ãƒ–ã€ã‚²ãƒ¼ãƒ 終了以外ã®ã‚³ãƒžãƒ³ãƒ‰ã®å ´åˆ
if $game_party.actors.size == 0 and @command_window.index < 4
# ブザー SE ã‚’æ¼”å¥
$game_system.se_play($data_system.buzzer_se)
return
end
# コマンドウィンドウã®ã‚«ãƒ¼ã‚½ãƒ«ä½ç½®ã§åˆ†å²
case @command_window.index
when 0 # アイテãƒ
# 決定 SE ã‚’æ¼”å¥
$game_system.se_play($data_system.decision_se)
# アイテム画é¢ã«åˆ‡ã‚Šæ›¿ãˆ
$scene = Scene_Item.new
when 1 # スã‚ル
# 決定 SE ã‚’æ¼”å¥
$game_system.se_play($data_system.decision_se)
# ステータスウィンドウをアクティブã«ã™ã‚‹
@command_window.active = false
@status_window.active = true
@status_window.index = 0
when 2 # 装備
# 決定 SE ã‚’æ¼”å¥
$game_system.se_play($data_system.decision_se)
# ステータスウィンドウをアクティブã«ã™ã‚‹
@command_window.active = false
@status_window.active = true
@status_window.index = 0
when 3 # ステータス
# 決定 SE ã‚’æ¼”å¥
$game_system.se_play($data_system.decision_se)
# ステータスウィンドウをアクティブã«ã™ã‚‹
@command_window.active = false
@status_window.active = true
@status_window.index = 0
when 4 # セーブ
# セーブç¦æ¢ã®å ´åˆ
if $game_system.save_disabled
# ブザー SE ã‚’æ¼”å¥
$game_system.se_play($data_system.buzzer_se)
return
end
# 決定 SE ã‚’æ¼”å¥
$game_system.se_play($data_system.decision_se)
# セーブ画é¢ã«åˆ‡ã‚Šæ›¿ãˆ
$scene = Scene_Save.new
when 5 # ゲーム終了
# 決定 SE ã‚’æ¼”å¥
$game_system.se_play($data_system.decision_se)
# ゲーム終了画é¢ã«åˆ‡ã‚Šæ›¿ãˆ
$scene = Scene_End.new
end
return
end
end
#--------------------------------------------------------------------------
# ◠フレーム更新 (ステータスウィンドウãŒã‚¢ã‚¯ãƒ†ã‚£ãƒ–ã®å ´åˆ)
#--------------------------------------------------------------------------
def update_status
# B ボタンãŒæŠ¼ã•ã‚ŒãŸå ´åˆ
if Input.trigger?(Input::B)
# ã‚ャンセル SE ã‚’æ¼”å¥
$game_system.se_play($data_system.cancel_se)
# コマンドウィンドウをアクティブã«ã™ã‚‹
@command_window.active = true
@status_window.active = false
@status_window.index = -1
return
end
# C ボタンãŒæŠ¼ã•ã‚ŒãŸå ´åˆ
if Input.trigger?(Input::C)
# コマンドウィンドウã®ã‚«ãƒ¼ã‚½ãƒ«ä½ç½®ã§åˆ†å²
case @command_window.index
when 1 # スã‚ル
# ã“ã®ã‚¢ã‚¯ã‚¿ãƒ¼ã®è¡Œå‹•åˆ¶é™ãŒ 2 以上ã®å ´åˆ
if $game_party.actors[@status_window.index].restriction >= 2
# ブザー SE ã‚’æ¼”å¥
$game_system.se_play($data_system.buzzer_se)
return
end
# 決定 SE ã‚’æ¼”å¥
$game_system.se_play($data_system.decision_se)
# スã‚ル画é¢ã«åˆ‡ã‚Šæ›¿ãˆ
$scene = Scene_Skill.new(@status_window.index)
when 2 # 装備
# 決定 SE ã‚’æ¼”å¥
$game_system.se_play($data_system.decision_se)
# 装備画é¢ã«åˆ‡ã‚Šæ›¿ãˆ
$scene = Scene_Equip.new(@status_window.index)
when 3 # ステータス
# 決定 SE ã‚’æ¼”å¥
$game_system.se_play($data_system.decision_se)
# ステータス画é¢ã«åˆ‡ã‚Šæ›¿ãˆ
$scene = Scene_Status.new(@status_window.index)
end
return
end
end
end
Can anyone help?
~ Sam