06-29-2019, 06:10 AM
HiddenChest now offers a couple of minor additions, two script calls that might come handy for scripters!
Usually you would need to call a bitmap's text_size method and then choose to get the width or height like this:
Now you are able to get the desired parameter at once!
In case you are using a window instead of a sprite, you would need to use self.contents instead of self.bitmap!
Actually you could also leave out the self. specification as well.
Yeah, this announcement means I have uploaded a new ZIP file with a bunch of executable binaries for Windows! The main difference between them is their maximum resolution, ranging from 800 through 1680 px wide!
Usually you would need to call a bitmap's text_size method and then choose to get the width or height like this:
Code:
rect = self.bitmap.text_size('My text')
width = rect.width
height = rect.height
Now you are able to get the desired parameter at once!
Code:
width = self.bitmap.text_width('My text')
height = self.bitmap.text_height('My text')
In case you are using a window instead of a sprite, you would need to use self.contents instead of self.bitmap!
Actually you could also leave out the self. specification as well.
Yeah, this announcement means I have uploaded a new ZIP file with a bunch of executable binaries for Windows! The main difference between them is their maximum resolution, ranging from 800 through 1680 px wide!
"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