Go Click on the HiddenBump!
Oh well, it's not like the hidden bump really matters but the latest version of HiddenChest should!!
Melana: I don't wanna be mean to you but why would you care about this release?
Me: Yeah, I knew somebody would ask me about it... and it had to be YOU!
Melana: Don't make get excited without reason! Tell me about it!
Me: Fine... Well from now on, both Sprites and Windows are Clickable! You might still need to add some Ruby code to any scene, but I know for sure it does work!
Melana: Wow! That's amazing indeed!
Me: Great isn't it? I know there are some scripts that add such features but I think it gotta be faster if most of the code were written in C++ to avoid many Ruby calls like additions and comparisons that normally force me to convert them to C values... Not something I'd love to do every single day but... it's already done.
Now windows like Window_Command own a new instance variable called @area. There you need to store all the x, y, width and height your command box will need. Keep in mind that you need to add the window's current x and y coordinates since the boxes where the command options are displayed ignore that by default due to internal calculations (processed in C++). I'd recommend doing that in the window's refresh method.
I know that might not sound easy to achieve but that's exactly why I've helped you with updated Scene_Example and WindowOpenness examples so you can basically copy and paste their changes. I even commented the new @area stuff. The scene update changes might be easy to understand if you're already used to read Ruby code.
DerVVulfman: What about the second chapter of this scripting story? Is it coming up next?
Me: Well, now that you mention it... Nope!
Notice
I have only updated HiddenChest source code so just those few that really know how to compile C++ and Ruby code might take advantage of this version of my engine. Besides I haven't tested this clickable feature on windows that have two columns nor Window_Item...
The new script calls are Sprite#mouse_above? or Sprite#mouse_inside? and Window#mouse_above?(command_index) or Window#mouse_inside?(command_index), where command_index is the command window's index starting from 0. (It's the window that show you "Start New Game" and such stuff. )
Happy BSOD! I mean... Happy Game Testing!
"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.
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!
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
Maranatha!
The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.
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!
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