Hello, it's been awhile since I touched RMXP.
I remember I have an old project waiting to be completed and when I test some stuff out, I realized I don't like the original Menu Screen from XP, so I did a little tweaks.
The project timeline is at the early 20s and I want to make the menu into a keitai look alike
The menu back screen will be transparent and has a picture of the keitai as a frame, I will have description box at the top part of the frame, menu in the middle, and status and money at the bottom frame.
As for the menu options, I want them to have 2 columns and rows, not just a straight column like this one bellow
And maaaybe I'm asking too much? I might as well ask a bit help to make my character status and showing descriptions like the sketch because it looks like this atm...
And here's how my Window_Status looks like
Please let me know what should I write in the Scene_Menu or anything to get the menu I desired, thank you!
I remember I have an old project waiting to be completed and when I test some stuff out, I realized I don't like the original Menu Screen from XP, so I did a little tweaks.
The project timeline is at the early 20s and I want to make the menu into a keitai look alike
The menu back screen will be transparent and has a picture of the keitai as a frame, I will have description box at the top part of the frame, menu in the middle, and status and money at the bottom frame.
As for the menu options, I want them to have 2 columns and rows, not just a straight column like this one bellow
Code:
#==============================================================================
# ** Scene_Menu
#------------------------------------------------------------------------------
# This class performs menu screen processing.
#==============================================================================
class Scene_Menu
#--------------------------------------------------------------------------
# * Object Initialization
# menu_index : command cursor's initial position
#--------------------------------------------------------------------------
def initialize(menu_index = 0)
@menu_index = menu_index
end
#--------------------------------------------------------------------------
# * Main Processing
#--------------------------------------------------------------------------
def main
# Make command window
s1 = "Item Logs"
s2 = "Load Data"
s3 = "Save Data"
s4 = "Shutdown"
@command_window = Window_Command.new(140, [s1, s2, s3, s4])
@command_window.index = @menu_index
#--------------------------------------------------------------------------
@command_window.x = 350
@command_window.y = 210
@command_window.width = 300
@command_window.height = 150
#--------------------------------------------------------------------------
# If number of party members is 0
if $game_party.actors.size == 0
# Disable items, load, save, shutdown
@command_window.disable_item(0)
@command_window.disable_item(1)
@command_window.disable_item(2)
@command_window.disable_item(3)
end
# If save is forbidden
if $game_system.save_disabled
# Disable save
@command_window.disable_item(4)
end
# Make gold window
@gold_window = Window_Gold.new
@gold_window.x = 0
@gold_window.y = 416
# Make status window
@status_window = Window_MenuStatus.new
@status_window.x = 160
@status_window.y = 0
@status_window.width = 150
@status_window.height = 80
# Execute transition
Graphics.transition
# Main loop
loop do
# Update game screen
Graphics.update
# Update input information
Input.update
# Frame update
update
# Abort loop if screen is changed
if $scene != self
break
end
end
# Prepare for transition
Graphics.freeze
# Dispose of windows
@command_window.dispose
@gold_window.dispose
@status_window.dispose
end
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update
# Update windows
@command_window.update
@gold_window.update
@status_window.update
# If command window is active: call update_command
if @command_window.active
update_command
return
end
# If status window is active: call update_status
if @status_window.active
update_status
return
end
end
#--------------------------------------------------------------------------
# * Frame Update (when command window is active)
#--------------------------------------------------------------------------
def update_command
# If B button was pressed
if Input.trigger?(Input::B)
# Play cancel SE
$game_system.se_play($data_system.cancel_se)
# Switch to map screen
$scene = Scene_Map.new
return
end
# If C button was pressed
if Input.trigger?(Input::C)
# If command other than save or end game, and party members = 0
if $game_party.actors.size == 0 and @command_window.index < 4
# Play buzzer SE
$game_system.se_play($data_system.buzzer_se)
return
end
# Branch by command window cursor position
case @command_window.index
when 0 # item log
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Switch to item screen
$scene = Scene_Item.new
when 1 # load data
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Switch to load screen
$scene = Scene_Load.new
return
when 2 # save
# If saving is forbidden
if $game_system.save_disabled
# Play buzzer SE
$game_system.se_play($data_system.buzzer_se)
return
end
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Switch to save screen
$scene = Scene_Save.new
when 3 # end game
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Switch to end game screen
$scene = Scene_End.new
end
return
end
end
#--------------------------------------------------------------------------
# * Frame Update (when status window is active)
#--------------------------------------------------------------------------
def update_status
# If B button was pressed
if Input.trigger?(Input::B)
# Play cancel SE
$game_system.se_play($data_system.cancel_se)
# Make command window active
@command_window.active = true
@status_window.active = false
@status_window.index = -1
return
end
# If C button was pressed
if Input.trigger?(Input::C)
# Branch by command window cursor position
case @command_window.index
when 1 # skill
# If this actor's action limit is 2 or more
if $game_party.actors[@status_window.index].restriction >= 2
# Play buzzer SE
$game_system.se_play($data_system.buzzer_se)
return
end
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Switch to skill screen
$scene = Scene_Skill.new(@status_window.index)
when 2 # equipment
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Switch to equipment screen
$scene = Scene_Equip.new(@status_window.index)
when 3 # status
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Switch to status screen
$scene = Scene_Status.new(@status_window.index)
end
return
end
end
end
And maaaybe I'm asking too much? I might as well ask a bit help to make my character status and showing descriptions like the sketch because it looks like this atm...
And here's how my Window_Status looks like
Code:
#==============================================================================
# ** Window_Status
#------------------------------------------------------------------------------
# This window displays full status specs on the status screen.
#==============================================================================
class Window_Status < Window_Base
#--------------------------------------------------------------------------
# * Object Initialization
# actor : actor
#--------------------------------------------------------------------------
def initialize(actor)
super(0, 0, 340, 480)
self.contents = Bitmap.new(width - 60, height - 60)
@actor = actor
refresh
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
self.contents.clear
draw_actor_battler(@actor, 100, 112)
draw_actor_name(@actor, 2, 2)
draw_actor_state(@actor, 96, 64)
self.contents.font.color = system_color
self.contents.font.color = normal_color
self.contents.draw_text(300 + 80, 48, 84, 32, @actor.name, 2)
self.contents.font.color = system_color
end
def dummy
self.contents.font.color = system_color
end
end
Please let me know what should I write in the Scene_Menu or anything to get the menu I desired, thank you!