Szyu's Simple Factions

A blurred image of the map, like in any other menu
then that's the other option. using Scene_MenuBase for the @background image.
The script needs to be changed a little bit. And I can work on having the background 'reused' in this scene.

So the best way I see it is to change the main script and these addons for one part.
change
class Scene_FactionList < Scene_Base
to
class Scene_FactionList < Scene_MenuBase

actually the main script needs to be change the rest can just be
class Scene_FactionList without the '< SceneMenuBase'

then you can simply alter the previous script I modified from Theoallen to this.
Ruby:
class Scene_FactionList[/S][/S]
 
[S][S]  alias theo_menuedit_start start
  def start
    theo_menuedit_start
    configure_menu
  end[/S][/S]
 
[S][S]  def configure_menu
    @ex_bg = Sprite.new
    @ex_bg.bitmap = @background_sprite.bitmap
    @ex_bg.z = 1
  end[/S][/S]
 
[S][S]  alias theo_menuedit_terminate terminate
  def terminate
    theo_menuedit_terminate
    @ex_bg.dispose
  end[/S][/S]
 
[S][S]end

Just discovered something. All you need is to change the class
The background image is transferred automatically if you are using Scene_MenuBase
This little script is not necessary.

Another discovery, when using Scene_MenuBase you don't need the opacity script either.
@Roninator2 Thanks, this works just fine. :LZSjoy:

Next thing I discovered is: how am I able to prevent whatever image I want to use as faction image to be stretched like hell?

In the script, I found a stretching argument...

Code:
def draw_faction_graphic
    return unless SZS_Factions::Factions[@faction.id][:graphic]
        gr = Cache.picture(SZS_Factions::Factions[@faction.id][:graphic])
     aspect = gr.width.to_f / gr.height.to_f
     h = contents.width * aspect
     contents.stretch_blt(Rect.new(0,(contents.height-h),contents.width, h),
        gr, Rect.new(0,0,gr.width, gr.height))
  end

... which is the weirdest flex I ever saw written in a script.

I tried to replace it with...

Code:
draw_picture(Cache.picture(SZS_Factions::Factions[@faction.id][:graphic]), 0, 0)

... but obviously, this errors out.
faction image to be stretched like hell?
Looks like it's taking an image and stretching it so that the width is the same as the height.
So is it an option to use photoshop to resize the image canvas so that it's the same for width and height? If not then you will have to make images that are perfectly the size for the window, which I think is harder.

Just tested a code change.
Ruby:
    contents.stretch_blt(Rect.new(0,0,contents.width, contents.height),
        gr, Rect.new(0,0,gr.width, gr.height))
Seems to show the image without changing the size.
@Roninator2 Yes, that's possible. However, if I do so, the picture still zooms. I'm just trying to display an image as is, like for example with the size 64x64 px without the script making some weird zoom.
I just edited my post before I saw you posted. try changing the code I mention above.
Sorry to bother you, I can't speak English. This is translated by translation machine.

Excuse me, how do you want to change the line for [description]? No matter how I change it, there will always be only one line displayed in the game. I can't change lines.
Can someone tell me how to change the description?

\n Seems useless

Original thread: https://forums.rpgmakerweb.com/threads/szyus-simple-factions.45682/