じ☆ve冰风 发表于 2026-8-2 21:26:31

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
    # -
    @manager.enabled =
    # 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





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.


本贴来自国际rpgmaker官方论坛作者:kyonides处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/kbuttonsmanager-ace.152862/
页: [1]
查看完整版本: KButtonsManager ACE