XAIL MENU from RPG VX ACE to RPG XP
#40
EUREKA! Okay, it may not seem much to some, but this is something fun.

The 'full customization' feature allows the game designer (namely YOU) to be able to resize and reshape the given windows within the menu. However, here was the problem: I had no intention of inserting the size/shape values of the windows into the reused classes such as Window_Gold. If I had, the same gold window would be resized for all other menus and features! Arrrgh! I had to do something!

Enter my new and very simple method in the Window_Base class: re_content. A very basic method, it is merely a copy of the self.contents line within most initialize methods.

Code:
#--------------------------------------------------------------------------
# * Redefine Content Area
#--------------------------------------------------------------------------  
def re_content
  self.contents = Bitmap.new(width - 32, height - 32)
end
See? Very simple.

You see, when you initialize a window, it creates a content area that matches the specs of that window. But if you resize the window afterwards, the content area would stay 'fixed' to the original size. But now I can throw a call to re_content after I change the size of the window and the contents area becomes redefined to the NEW size of the window.

Bear in mind, some windows that have multiple rows of content will have their own variation which includes @item_max values. Winking

Now, the game designer can have a gold window in their Xail menu of one size, and have it the normal window size in their shop system. Bear in mind, these are just options... but I like to account for possibilities.

So it looks like my next step will be cleaning up the configs and then working out the Addon Bar System next! Happy And... when that's done... That would be IT!
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply


Messages In This Thread
RE: XAIL MENU from RPG VX ACE to RPG XP - by DerVVulfman - 04-12-2016, 06:45 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Parts of the Equip, Spells, and Status menus persist even after exiting the menu Ace_V 5 1,133 12-29-2024, 06:09 AM
Last Post: Ace_V
   Plugin or Script help with Item menu, SKill menu, and Equip menu JayRay 3 948 11-22-2024, 07:02 PM
Last Post: JayRay
   Need help with my menu - Current issue is item grid layout LilyFrog 41 44,681 09-24-2018, 02:03 AM
Last Post: LilyFrog
   Special Items Separate Menu Diorm 41 47,871 02-10-2018, 06:06 PM
Last Post: Diorm
Question  Mog Menu script: help me stop the crazy picture movement during transitions Zachariad 4 10,994 05-31-2017, 05:10 AM
Last Post: Zachariad
Tongue  Healing Spell doesn't work right in Menu? Bounty Hunter Lani 8 13,900 01-15-2015, 07:45 PM
Last Post: Bounty Hunter Lani
   My Options Menu needs help firestalker 0 3,577 08-11-2014, 02:31 PM
Last Post: firestalker
   Vx Ace Custom Menu help? Skitzen 1 5,841 10-07-2013, 03:10 PM
Last Post: JayRay
   Dargor's Large Party script and shop menu Simon Greedwell 2 7,158 08-28-2013, 10:12 PM
Last Post: Simon Greedwell
   Help with Shop Menu [RPG Maker XP] JackMonty 6 14,113 05-23-2013, 10:14 AM
Last Post: JackMonty



Users browsing this thread: 1 Guest(s)