Main Menu
  • Welcome to The RPG Maker Resource Kit.

[RESOLVED] Battle menu on top of the screen [VXA]

Started by luxer19, September 23, 2012, 04:59:01 PM

0 Members and 1 Guest are viewing this topic.

luxer19

Hello, people.

I was looking at Jet's Viewed Battle System (Wich by the way is the best Side Battle System ever.) and I discovered that I could change character's position in battle. I was very happy, because most of the Side battle systems don't do this, and I couldn't use VXA battlerbacks in a logic way. Now... I have a small problem.




So, as you can see, the battle menu (Or window, or whatever, the thing with the life/mana/tp bars, commands, ect) is hiding one of the characters. So I thought it would be nice if I could put that window on top of the screen instead of botton. Then I remembered I didn't know how to, so I came here looking for help.

Anyone knows how to fix my problem?

Thanks for reading.

LuX

D&P3

#1
class Scene_Battle < Scene_Base
  #--------------------------------------------------------------------------
  # * Create Information Display Viewport
  #--------------------------------------------------------------------------
  alias putwindowabove_fjshr3 create_info_viewport
  def create_info_viewport
    # Call Original Method
    putwindowabove_fjshr3
   
    @info_viewport.rect.y = 0
    @status_window.viewport = @info_viewport
  end
end
All of my scripts are totally free to use for commercial use. You don't need to ask me for permission. I'm too lazy to update every single script post I ever made with this addendum. So ignore whatever "rule" I posted there. :)

All scripts can be found at: https://pastebin.com/u/diamondandplatinum3

luxer19

Woah! Thanks, that's very usefull! Thought, I'm having another problem.



The skill and item windows don't work, I can only see the description of the Item/Skill.

D&P3

My apologies for that, I finding lack of time to thoroughly test things :\

class Scene_Battle < Scene_Base
  #--------------------------------------------------------------------------
  # * Create Information Display Viewport
  #--------------------------------------------------------------------------
  alias putwindowabove_civ_fjshr3 create_info_viewport
  def create_info_viewport
    # Call Original Method
    putwindowabove_civ_fjshr3
   
    @info_viewport.rect.y = 0
    @status_window.viewport = @info_viewport
  end
end


#==============================================================================
# ** Window_BattleSkill
#------------------------------------------------------------------------------
#  This window is for selecting skills to use in the battle window.
#==============================================================================

class Window_BattleSkill < Window_SkillList
  #--------------------------------------------------------------------------
  # * Object Initialization
  #     info_viewport : Viewport for displaying information
  #--------------------------------------------------------------------------
  def initialize(help_window, info_viewport)
    y = (info_viewport.rect.height + help_window.height)
    super(0, y, Graphics.width, (((info_viewport.rect.height + y) - (help_window.height + 16))))
    self.visible = false
    @help_window = help_window
    @info_viewport = info_viewport
  end
end



#==============================================================================
# ** Window_BattleItem
#------------------------------------------------------------------------------
#  This window is for selecting items to use in the battle window.
#==============================================================================

class Window_BattleItem < Window_ItemList
  #--------------------------------------------------------------------------
  # * Object Initialization
  #     info_viewport : Viewport for displaying information
  #--------------------------------------------------------------------------
  def initialize(help_window, info_viewport)
    y = (info_viewport.rect.height + help_window.height)
    super(0, y, Graphics.width, (((info_viewport.rect.height + y) - (help_window.height + 16))))
    self.visible = false
    @help_window = help_window
    @info_viewport = info_viewport
  end
end



#==============================================================================
# ** Window_Help
#------------------------------------------------------------------------------
#  This window shows skill and item explanations along with actor status.
#==============================================================================

class Window_Help < Window_Base
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize(line_number = 2)
    super(0, 120, Graphics.width, fitting_height(line_number))
  end
end
All of my scripts are totally free to use for commercial use. You don't need to ask me for permission. I'm too lazy to update every single script post I ever made with this addendum. So ignore whatever "rule" I posted there. :)

All scripts can be found at: https://pastebin.com/u/diamondandplatinum3

luxer19


D&P3

All of my scripts are totally free to use for commercial use. You don't need to ask me for permission. I'm too lazy to update every single script post I ever made with this addendum. So ignore whatever "rule" I posted there. :)

All scripts can be found at: https://pastebin.com/u/diamondandplatinum3

D&P3

I just noticed that this script also affected the help window in your loading screen and other scenes when you weren't in battle.
Admittedly I find it looking rather cool having the help box display between selection and items, but you however might not.

So if you've found that and it is bothering you, this will fix it

class Scene_Battle < Scene_Base
  #--------------------------------------------------------------------------
  # * Create Information Display Viewport
  #--------------------------------------------------------------------------
  alias putwindowabove_civ_fjshr3 create_info_viewport
  def create_info_viewport
    # Call Original Method
    putwindowabove_civ_fjshr3
   
    @info_viewport.rect.y = 0
    @status_window.viewport = @info_viewport
  end
end


#==============================================================================
# ** Window_BattleSkill
#------------------------------------------------------------------------------
#  This window is for selecting skills to use in the battle window.
#==============================================================================

class Window_BattleSkill < Window_SkillList
  #--------------------------------------------------------------------------
  # * Object Initialization
  #     info_viewport : Viewport for displaying information
  #--------------------------------------------------------------------------
  def initialize(help_window, info_viewport)
    y = (info_viewport.rect.height + help_window.height)
    super(0, y, Graphics.width, (((info_viewport.rect.height + y) - (help_window.height + 16))))
    self.visible = false
    @help_window = help_window
    @info_viewport = info_viewport
  end
end



#==============================================================================
# ** Window_BattleItem
#------------------------------------------------------------------------------
#  This window is for selecting items to use in the battle window.
#==============================================================================

class Window_BattleItem < Window_ItemList
  #--------------------------------------------------------------------------
  # * Object Initialization
  #     info_viewport : Viewport for displaying information
  #--------------------------------------------------------------------------
  def initialize(help_window, info_viewport)
    y = (info_viewport.rect.height + help_window.height)
    super(0, y, Graphics.width, (((info_viewport.rect.height + y) - (help_window.height + 16))))
    self.visible = false
    @help_window = help_window
    @info_viewport = info_viewport
  end
end



#==============================================================================
# ** Window_Help
#------------------------------------------------------------------------------
#  This window shows skill and item explanations along with actor status.
#==============================================================================

class Window_Help < Window_Base
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize(line_number = 2)
    if SceneManager.scene_is?(Scene_Battle)
      super(0, 120, Graphics.width, fitting_height(line_number))
    else
      super(0, 0, Graphics.width, fitting_height(line_number))
    end
  end
end
All of my scripts are totally free to use for commercial use. You don't need to ask me for permission. I'm too lazy to update every single script post I ever made with this addendum. So ignore whatever "rule" I posted there. :)

All scripts can be found at: https://pastebin.com/u/diamondandplatinum3