Instructions on How To Use MsgBoxSprite
Step 1 - Create a sprite!
Step 2 - Assign a backgroud bitmap to our brand new sprite!
Step 3 - Pick a nice title bar bitmap! (28 pixels tall at most, as wide as you might ever need, like 1280 pixels or so)
Step 4 - Choose a nice close icon! (some 24 x 24 pixels icon)
Step 5 - Create a bitmap where you will place all texts! (it can have the same dimensions as the background bitmap)
Step 6 - Display any text message!
Code:
@sprite = MsgBoxSprite.new
@sprite.bitmap = RPG::Cache.picture("SomePicture")
@sprite.bar_bitmap = RPG::Cache.picture("SomeTitleBarPicture")
@sprite.close_icon = RPG::Cache.icon("SomeIcon")
@sprite.contents = Bitmap.new(@sprite.width, @sprite.height)
@sprite.contents.draw_text(0, 0, @sprite.width, 26, "A Title", 1)
Actually the bar_bitmap and close_icon are optional, but the close_icon will let the player click on it to close that message box.
bar_bitmap's bitmap will be clipped automatically!
The contents width and height will be automatically adjusted so you will get a surface with original width - 8 pixels and original height - 4 pixels.
MsgBoxSprite does not offer any flash nor wave effect for obvious reasons!
"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