Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 KToggleButtons
#1
KToggleButtons XP + VX + ACE

by Kyonides Arkanthes


Introduction

Are you Boring bored of using the same old text buttons?
Now you can replace them with some good looking Toggle Buttons! Shocked

"Old Screenshots"

[Image: ktogglebuttonsxp02.jpg][Image: ktogglebuttonsvx02.jpg][Image: ktogglebuttonsace02.jpg]

Instructions

Define a New Style
XP & VX Ways
STYLES[:style_name] = { :name => "Basica", :cursor => "cursor1",
  :cursor_off => "cursor2", :on => "toggle1", :off => "toggle2", :button => "toggle3" }

ACE Way
STYLES[:basic] = { name: "Basica", cursor: "cursor1",
    cursor_off: "cursor2", on: "toggle1", off: "toggle2", button: "toggle3" }

Change Current Toggle Button Style - Use any of the keys you enter in the STYLES Hash.
$game_system.toggle_button_style = :basic

How to Define a Toggle Button Manager
Code:
@manager = KToggle::Manager.new(FontSize, LineHeight, "Name", LabelsArray)
@manager.setup_buttons(X, Y, LabelWidth, LabelHeight)
@manager.setup_cursor(true) # Create an Active Cursor

How to Set a State - Repeat as many times as deemed necessary!
@manager.set_state(1, some_variable)
@manager.set_state(2, some_variable)

How to Get a State - Here 1 stands for the first position in the Array.
@manager.state?(1)

Since the demos include a TestScene script, you can take a Detective look at it to learn a bit more on how to create your custom scene script. Winking


Terms & Conditions

Free for non commercial games.
Contact me if you needed for commercial games.
Mention me in your game credits.
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9

Maranatha!

The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.

[Image: SP1-Scripter.png]
[Image: SP1-Writer.png]
[Image: SP1-Poet.png]
[Image: SP1-PixelArtist.png]
[Image: SP1-Reporter.png]

My Original Stories (available in English and Spanish)

List of Compiled Binary Executables I have published...
HiddenChest & Roole

Give me a free copy of your completed game if you include at least 3 of my scripts! Laughing + Tongue sticking out

Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Reply }


Messages In This Thread
KToggleButtons - by kyonides - 11-03-2022, 03:13 AM
RE: KToggleButtons - by kyonides - 11-03-2022, 11:25 PM
RE: KToggleButtons - by kyonides - 11-10-2022, 02:27 AM
RE: KToggleButtons - by Kain Nobel - 11-11-2022, 01:38 PM
RE: KToggleButtons - by kyonides - 11-12-2022, 12:23 AM
RE: KToggleButtons - by Kain Nobel - 11-12-2022, 07:04 AM
RE: KToggleButtons - by kyonides - 12-07-2023, 07:59 AM



Users browsing this thread: