Viewports on Scene_Battle

Faherya

The Knight of the Sad Figure
Veteran
Joined
Jul 25, 2013
Messages
254
Reaction score
582
First Language
Portuguese
Primarily Uses
RMVXA
Yeah, me again. And again I was editing the Scene_Battle windows when I came across it:
It took me a while to figure out the existence of the Viewports and that I could not move the windows out of them. So, quick search (1, 2, 3). Great, now I know what they are, but there are some points that I do not understand. First, movement. How do I move a specific viewport? For example, the Window_PartyCommand. I did not find where the viewport was created, so I tried to move it inside the initialize with lines like this:

Code:
self.ox = value
@info_viewport.oy = value
move_info_viewport(?)

No way it worked. So I went to look for something about in the help files (F1). It is very well explained how to create a viewport, but nothing - that I have found - about modifying an existing viewport. It is not very relevant to repeat what is there here, but if anyone wants to see the directory is this. Looking for some more, I found this on Spriteset_Battle, lines 27 through 31:

Code:
  def create_viewports
    @viewport1 = Viewport.new
    @viewport2 = Viewport.new
    @viewport3 = Viewport.new
    @viewport2.z = 50
    @viewport3.z = 100
  end
No coordinates, just priority (z), that confused me. The topic is already very long, so to summarize: If, when creating a viewport, I can tell exactly where they are, where are the specs of the viewports in Scene_Battle? If all windows use the same viewport, how do I know which one is being used for what? The respective codes of each window do not say anything about.

If it helps, I made some mockups of what I want to do:



I forgot to include it, but to the extreme right the target window will appear with a vertical, item-like list.

Anyway, sorry for the inconvenience again. The local forum is under maintenance, so I'm showing up over here. :(
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,981
Members
137,563
Latest member
cexojow
Top