Custom Shop Menu Problems VX

Hi all im making a compact shop script to go with my 2 actor compact menu and compact battlehud
but am having some problems with moving resizing a couple of items any help would be amazing

thank you all in advance

Pic Below
||||||||||||||

help needed.jpg

im hoping to get this done so can move on the sell screen ive done without a problem just the problems in red
Could you elaborate a bit more? I doubt I have been able to get a grasp on what you are trying to achieve.
Could you elaborate a bit more? I doubt I have been able to get a grasp on what you are trying to achieve.
i will try im still learning a lot but here goes i want to make a compact shop i managed to find and change the shop items window and the help window and im 99 percent sure i can do the gold window
i just want to make the Buy Sell Cancel Window Smaller And The Possession window smaller and be able to move them around

I Have Done a Compact items script, compact status script,compact menu And Battle Hud Just Struggling with this
A lot of what you've been asking is not to hard if you know a little bit.
In the Scene_Shop you have def start
under that is create command window
looking down you find create command window on line 74.

the line @command_window = Window_Command.new(384, [s1, s2, s3], 3)
When you look into Window_Command class you see for initialize
def initialize(width, commands, column_max = 1, row_max = 0, spacing = 32)

so now we know that 384 is the width, s1, s2, s3 are the commands and 3 is the column_max.
The other values are if you are changing those and they have values set in the method. (row_max for example)
As you have seen before we can throw in another line to set the x position, since you probably want to move the window towards the middle.
@command_window.x = 100
Assuming that you lower the width to 284, thus subtracting 100 from the width.

The possession window is the status window.

If you want to move the gold window up, then simple change the numbers for line 16.
If you want it to be smaller, then add in commands for width.
The class structure works like this.
Window_Gold < Window_Base

If the method 'width' is not found in window_gold then it will go up to window_base to find it, if it doesn't find it there then it goes up to Window class (a hidden class). inside that is a width method.
So @gold_window.width = 120 will work. but it will cause an issue as the text is drawn at position 120.
So you would have to change the gold refresh method for draw_currency_value.
Which will change it for everywhere. So if you just want the shop scene to have a smaller gold window, you can copy the gold class and change the name. then change the reference to @gold_window = Window_Shop_Gold.new(300, 0)

If you need more help, reply back.

Original thread: https://forums.rpgmakerweb.com/threads/custom-shop-menu-problems-vx.141187/