Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 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
   Need help with my menu - Current issue is item grid layout LilyFrog 41 33,138 09-24-2018, 02:03 AM
Last Post: LilyFrog
   Special Items Separate Menu Diorm 41 36,500 02-10-2018, 06:06 PM
Last Post: Diorm
Question  Mog Menu script: help me stop the crazy picture movement during transitions Zachariad 4 8,644 05-31-2017, 05:10 AM
Last Post: Zachariad
Tongue  Healing Spell doesn't work right in Menu? Bounty Hunter Lani 8 11,081 01-15-2015, 07:45 PM
Last Post: Bounty Hunter Lani
   My Options Menu needs help firestalker 0 2,989 08-11-2014, 02:31 PM
Last Post: firestalker
   Vx Ace Custom Menu help? Skitzen 1 4,903 10-07-2013, 03:10 PM
Last Post: JayRay
   Dargor's Large Party script and shop menu Simon Greedwell 2 6,046 08-28-2013, 10:12 PM
Last Post: Simon Greedwell
   Help with Shop Menu [RPG Maker XP] JackMonty 6 11,804 05-23-2013, 10:14 AM
Last Post: JackMonty
Brick Sub-menu Tab Iqus 5 8,050 01-23-2013, 02:01 PM
Last Post: Pherione
   Help with Compact Menu Selection Script JackMonty 4 6,340 09-19-2012, 10:56 PM
Last Post: JackMonty



Users browsing this thread: