The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: &&&&&&&&&&&&& on June 30, 2013, 07:27:55 PM

Title: [RMVXA] Grey in menu
Post by: &&&&&&&&&&&&& on June 30, 2013, 07:27:55 PM
I'm not sure if this is scripting related, but I'm curious on how I might remove the grey from my menu.

Spoiler for:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi109.photobucket.com%2Falbums%2Fn52%2Fdreamslayer7%2Fdontknowif_zps8e20b55d.png&hash=116e61663b8417d2732c7dcabe447c7aff19ad14) (http://s109.photobucket.com/user/dreamslayer7/media/dontknowif_zps8e20b55d.png.html)

I would like to remove the grey that is above and below Window_MenuCommand, and also the grey bars dividing the Money, steps and playtime. It makes my menu patchy looking.


So (oh man, I know I'm wrong here) I'm thinking it has something to do with how the menu worked before. It would take a snapshot, then blur and fade it, and use it as the background of the menu. I'm looking for a way to disable that.
Title: Re: [RMVXA] Grey in menu
Post by: Zexion on June 30, 2013, 07:38:50 PM
Can you send me your menu script? Or post it? Also, are you sure it's not a windowskin error? You might have accidentally set up a different window skin for those windows.
Title: Re: [RMVXA] Grey in menu
Post by: &&&&&&&&&&&&& on June 30, 2013, 08:07:39 PM
Code: [Select]
#==============================================================================
# ** Scene_MenuBase
#------------------------------------------------------------------------------
#  This class performs basic processing related to the menu screen.
#==============================================================================

class Scene_MenuBase < Scene_Base
  #--------------------------------------------------------------------------
  # * Start Processing
  #--------------------------------------------------------------------------
  def start
    super
    create_background
    @actor = $game_party.menu_actor
  end
  #--------------------------------------------------------------------------
  # * Termination Processing
  #--------------------------------------------------------------------------
  def terminate
    super
    dispose_background
  end
  #--------------------------------------------------------------------------
  # * Create Background
  #--------------------------------------------------------------------------
  def create_background
    @background_sprite = Sprite.new
    @background_sprite.bitmap = SceneManager.background_bitmap
    @background_sprite.color.set(16, 16, 16, 128)
  end
  #--------------------------------------------------------------------------
  # * Free Background
  #--------------------------------------------------------------------------
  def dispose_background
    @background_sprite.dispose
  end
  #--------------------------------------------------------------------------
  # * Create Help Window
  #--------------------------------------------------------------------------
  def create_help_window
    @help_window = Window_Help.new
    @help_window.viewport = @viewport
  end
  #--------------------------------------------------------------------------
  # * Switch to Next Actor
  #--------------------------------------------------------------------------
  def next_actor
    @actor = $game_party.menu_actor_next
    on_actor_change
  end
  #--------------------------------------------------------------------------
  # * Switch to Previous Actor
  #--------------------------------------------------------------------------
  def prev_actor
    @actor = $game_party.menu_actor_prev
    on_actor_change
  end
  #--------------------------------------------------------------------------
  # * Change Actors
  #--------------------------------------------------------------------------
  def on_actor_change
  end
end
Code: [Select]
#==============================================================================
# ** Scene_Menu
#------------------------------------------------------------------------------
#  This class performs the menu screen processing.
#==============================================================================

class Scene_Menu < Scene_MenuBase
  #--------------------------------------------------------------------------
  # * Start Processing
  #--------------------------------------------------------------------------
  def start
    super
    create_command_window
    create_gold_window
    create_status_window
    create_steps_window
  end
  #--------------------------------------------------------------------------
  # * Create Command Window
  #--------------------------------------------------------------------------
  def create_command_window
    @command_window = Window_MenuCommand.new
    @command_window.set_handler(:item,      method(:command_item))
    @command_window.set_handler(:skill,     method(:command_personal))
    @command_window.set_handler(:equip,     method(:command_personal))
    @command_window.set_handler(:status,    method(:command_personal))
    @command_window.set_handler(:formation, method(:command_formation))
    @command_window.set_handler(:save,      method(:command_save))
    @command_window.set_handler(:game_end,  method(:command_game_end))
    @command_window.set_handler(:cancel,    method(:return_scene))
  end
  #--------------------------------------------------------------------------
  # * Create Playtime Window
  #--------------------------------------------------------------------------

  #--------------------------------------------------------------------------
  # * Create Steps Window
  #--------------------------------------------------------------------------
  def create_steps_window
    @steps_window = Window_Steps.new
    @steps_window.x = 384
    @steps_window.y = 320
  end
  #--------------------------------------------------------------------------
  # * Create Gold Window
  #--------------------------------------------------------------------------
  def create_gold_window
    @gold_window = Window_Gold.new
    @gold_window.x = 0
    @gold_window.y = Graphics.height - @gold_window.height
  end
  #--------------------------------------------------------------------------
  # * Create Status Window
  #--------------------------------------------------------------------------
  def create_status_window
    @status_window = Window_MenuStatus.new(@command_window.width, 0)
  end
  #--------------------------------------------------------------------------
  # * [Item] Command
  #--------------------------------------------------------------------------
  def command_item
    SceneManager.call(Scene_Item)
  end
  #--------------------------------------------------------------------------
  # * [Skill], [Equipment] and [Status] Commands
  #--------------------------------------------------------------------------
  def command_personal
    @status_window.select_last
    @status_window.activate
    @status_window.set_handler(:ok,     method(:on_personal_ok))
    @status_window.set_handler(:cancel, method(:on_personal_cancel))
  end
  #--------------------------------------------------------------------------
  # * [Formation] Command
  #--------------------------------------------------------------------------
  def command_formation
    @status_window.select_last
    @status_window.activate
    @status_window.set_handler(:ok,     method(:on_formation_ok))
    @status_window.set_handler(:cancel, method(:on_formation_cancel))
  end
  #--------------------------------------------------------------------------
  # * [Save] Command
  #--------------------------------------------------------------------------
  def command_save
    SceneManager.call(Scene_Save)
  end
  #--------------------------------------------------------------------------
  # * [Exit Game] Command
  #--------------------------------------------------------------------------
  def command_game_end
    SceneManager.call(Scene_End)
  end
  #--------------------------------------------------------------------------
  # * [OK] Personal Command
  #--------------------------------------------------------------------------
  def on_personal_ok
    case @command_window.current_symbol
    when :skill
      SceneManager.call(Scene_Skill)
    when :equip
      SceneManager.call(Scene_Equip)
    when :status
      SceneManager.call(Scene_Status)
    end
  end
  #--------------------------------------------------------------------------
  # * [Cancel] Personal Command
  #--------------------------------------------------------------------------
  def on_personal_cancel
    @status_window.unselect
    @command_window.activate
  end
  #--------------------------------------------------------------------------
  # * Formation [OK]
  #--------------------------------------------------------------------------
  def on_formation_ok
    if @status_window.pending_index >= 0
      $game_party.swap_order(@status_window.index,
                             @status_window.pending_index)
      @status_window.pending_index = -1
      @status_window.redraw_item(@status_window.index)
    else
      @status_window.pending_index = @status_window.index
    end
    @status_window.activate
  end
  #--------------------------------------------------------------------------
  # * Formation [Cancel]
  #--------------------------------------------------------------------------
  def on_formation_cancel
    if @status_window.pending_index >= 0
      @status_window.pending_index = -1
      @status_window.activate
    else
      @status_window.unselect
      @command_window.activate
    end
  end
end

For the different window skins, I just used "self.windowskin = Cache.system("MenuWindow1")".

Spoiler for:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi109.photobucket.com%2Falbums%2Fn52%2Fdreamslayer7%2FMenuWindow1_zps8a7c0559.png&hash=fe13a611f366b456b70e4868a553f294ca61b435)
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi109.photobucket.com%2Falbums%2Fn52%2Fdreamslayer7%2FMenuWindow2_zps315810cf.png&hash=7dcf45add7f377b5f08427cb1ae178c1e6f76def)
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi109.photobucket.com%2Falbums%2Fn52%2Fdreamslayer7%2FMenuWindow3_zps02e50ef8.png&hash=35bcc4844d49a09b3d7d70ec300649346b03812b)
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi109.photobucket.com%2Falbums%2Fn52%2Fdreamslayer7%2FMenuWindow4_zps2ce54de8.png&hash=9935046201bab3fd395c9d4a9a9bd22c36e5a914)
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi109.photobucket.com%2Falbums%2Fn52%2Fdreamslayer7%2FMenuWindow5_zpsa502aa35.png&hash=5d91480f83082c94feac1f5f7c7f984b4b43ef18)
Title: Re: [RMVXA] Grey in menu
Post by: Zexion on June 30, 2013, 08:43:26 PM
Uhm, is there any reason that you don't just delete the entire top right section of menuwindow1? That's what causes the grey lines.
Title: Re: [RMVXA] Grey in menu
Post by: &&&&&&&&&&&&& on June 30, 2013, 08:51:18 PM
Well...  ;9



I had no clue what that was for.

EDIT: I... hmmmm...

Spoiler for:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi109.photobucket.com%2Falbums%2Fn52%2Fdreamslayer7%2Fareyousure_zpsf3a713c7.png&hash=1fe808e12a15c6beec74244116b9f4a6c1c6d8f7) (http://s109.photobucket.com/user/dreamslayer7/media/areyousure_zpsf3a713c7.png.html)

EDIT2: Never mind. Got it working. I forgot to change one of them to purple.