[Ace] How can I have several windows settings ?

Hi everyone.

I'll try to make it easy. I'm resizing windows to make a alternative menu.

Here's my problem :

class Window_ItemList < Window_Selectable def initialize(x, y, width, height) super(200, 200, 250, 250) @category = :none @data = [] endI change this, it's ok.

class Window_EquipItem < Window_ItemList def initialize(x, y, width, height) super(200, 200, 100, 100) @actor = nil @slot_id = 0 endBut when I change this, the ItemList window only takes the first change (In item menu, and the same in equip menu, the number aren't the same).

It's the same for the help_window, there is only one setting for all menus. The help window is always at the same place.

Is there a way to make several settings for all menus ?

Somethings like :

Item (Help_window, Item_list)

Equip (Help_window2, Item_list2)

Skills (Help_window3, Item_list3)
You can check for the current scene with this code:

SceneManager.scene_is?(Scene_Name)With this, you can check which scene is currently active (item, equip, skill menu, etc), and call the 'super' line with different arguments for each scene.For example:

Code:
if SceneManager.scene_is?(Scene_Item)  super(200,200,120,120)elsif SceneManager.scene_is?(Scene_Equip)  super(0,0,Graphics.width,120)elsif SceneManager.scene_is?(Scene_Skill)  super(104,72,420,72)else  super(0,0,100,48)end
You can do this for all windows, just make sure to use the same amount of arguments as the original super calls. Some windows use 4 arguments, while other may use 2, etc.
if SceneManager.scene_is?(Scene_Item) super(200,200,120,120)elsif SceneManager.scene_is?(Scene_Equip) super(0,0,Graphics.width,120)elsif SceneManager.scene_is?(Scene_Skill) super(104,72,420,72)else super(0,0,100,48)endOk, with this I can have what I want.

Thank you very much !

Original thread: https://forums.rpgmakerweb.com/threads/ace-how-can-i-have-several-windows-settings.52164/