KButtonsManager ACE

KButtonsManager

XP + VX + ACE


by Kyonides Arkanthes
​


Introduction

Are you bored of using the same boring menu window in your game projects?
Do you want your game to look way different than those thousands of Steam games floating around?
Now you have got a chance to be original! 😀

A Brief Explanation​

Let's take a look at the custom Scene_Title script included in the demo as an example of how to use it effectively.

Here we got the create_buttons method I defined there. It pretty much contains all you need to know about the script calls needed to make it work properly. (By the way, it is called from the scene's main method.)

Ruby:
  def create_buttons
    # Create Button Manager - Pass (Total Options, Cursor Filename)
    @manager = KButtons::Manager.new(OPTIONS.size, CURSOR_FILE)
    # Set the Buttons' Direction - Pass = :horizontal or :vertical
    @manager.direction = :horizontal
    # Set the Offsets - Pass (X, Y)
    @manager.set_offsets(0, 4)
    # Set the Coordinates - Pass (X, Y, Z)
    @manager.set_xyz(80, 260, 100)
    # Draw Name and Picture
    # - Pass (Name's Height, Font Size, Names Array, Symbols Array)
    @manager.draw_text_picture(26, 24, OPTIONS, SYMBOLS)
    # Define List of States
    # - [Booleans like true or false, Add, As, Many, As, Necessary]
    @manager.enabled = [true, @continue, true, true]
    # Set the Initial Position of the Cursor - Usually Number 0
    @manager.index = (@continue_enabled and @index == 0)? 1 : @index
  end

Later on you would only need to dispose the Button Manager like this:

Ruby:
@manager.dispose

Side Notes

SceneManager.open is a custom method I had to create to let me pass arguments with ease.

Screenshot

kbuttonsmanagerace.jpg


Downlod DEMO​

Terms & Conditions

Free for use in non commercial games. 😀
Contact me if you are going commercial. 😉
Mention my nickname in your game credits.
hey, im trying to check the script but it says "failed to load actor data" .

edit: i saw it wont work with vx ace, ty anyways
Huh? Of course it does! There's a ZIP file for XP, VX and VX Ace so I'm pretty sure it runs normally. Actually, it didn't throw me any error message at my face at all. I reuploaded the ZIP file for VX Ace, but I know the previous one really worked fine. My copy of the engine just opened it for editing!

Anyway, my button system looks and works in a different way than your desired button menu would.
Huh? Of course it does! There's a ZIP file for XP, VX and VX Ace so I'm pretty sure it runs normally. Actually, it didn't throw me any error message at my face at all. I reuploaded the ZIP file for VX Ace, but I know the previous one really worked fine. My copy of the engine just opened it for editing!

Anyway, my button system looks and works in a different way than your desired button menu would.
it just wont open, ty anyways
Impossible. Anyway, I have also uploaded the kbuttonsmanagerace.rb and the scene_title ace.rb files. Actually, they're some TXT files with a Ruby extension. Just change the file extension back to .txt and it will let you open them with any text editor. Then copy and paste them in any section of the Script Editor below Scene_Debug. You gotta copy the contents of the Graphics directory included in my demo to a brand new project before testing or editing it.

Paste them in this order:

KButtonsManager ACE
Scene_Title for KBM

Anyway, I truly suspect that you downloaded the VX version instead of the ACE one.

Original thread: https://forums.rpgmakerweb.com/threads/kbuttonsmanager-ace.152862/