Subtitled Menus, Add subtitles to help out the casuals... |
|
|
|
|
Nov 22 2009, 01:45 PM
|

Public memberTitle(String n)

Group: Revolutionary
Posts: 683
Type: Developer
RM Skill: Skilled

|
Version: 1.0Author: The Staff of RGSS2Dai PageTranslation: SuperMegaIntroductionThis is a translation of a fantastic script from Dai Page. I AM NOT the creator of this script, so I don't deserve full credit. I only translated the script, in order to share it with the English community. The primary functions of the script are translated, but not everything is. If anyone would like everything to be translated, please let me know. Let me also mention I can only help with basic problems, and not ones that involve the script. I'd also like to add that I am running out of translation ideas...  If you have any recommendations or something you want translated, just let me know. Features -Adds subtitles to various menu screens, explaining how to manuever in the menu -Text size, font color, position, display, and speed can all be altered to your liking. You can also specify a switch to turn the script off ScriptCODE =begin #------------------------------------------------------------------------------- Subtitled Menus Original Japanese Version From: RGSS2 DAIpage Translated into English By: SuperMega Version: 1.0 #-------------------------------------------------------------------------------
Script Features:
Function and Use: -Adds subtitles to various menu screens, explaining how to manuever in the menu -Text size, font color, position, display, and speed can all be altered to your liking. You can also specify a switch to turn the script off
This Script redifines the following: �‚‚Game_Temp, Scene_Title, Scene_Menu, Scene_Item, Scene_Skill, Scene_Equip, �‚‚Scene_Status, Scene_File, Scene_End, Scene_Shop, Scene_Name
Update History: �‚‚09/4/04: Fixed a bug in scene shop.
Changing this script may result in compatability errors, so do so at your own risk...
=end #============================================================================== # Begin Customization #============================================================================== module DAI_MINI_HELP #-------------------------------------------------------------------------- # Preferences #-------------------------------------------------------------------------- # Switch to display/turn off script (ON = Hidden OFF = Display) SWITCH = 0 # Color of the subtitle text(Color.new specified) COLOR_1 = Color.new(255,255,255) # Outline the text? (True or False) FRAME = false # Color of the outline if above is true COLOR_2 = Color.new(60,30,120) # Bold the text? (true / false) BOLD = false # Italicize the text? �†true / false�€ ITALIC = false # Scroll Type #(0: No scrolling 1: Always scroll 2: Scroll only if the characters do not fit) TYPE = 1 # Scroll speed (Distance measured in one frame) SPEED = 1 # Font size (If changed from the default of 16, you must adjust the Y-coordinates FONT_SIZE = 16 # X coordinates on screen (Type 0 and 2 if it does not scroll) X = 534 # Y coordinates on screen. This can be set to the bottom of the screen, # if you choose to do so Y = 382
#-------------------------------------------------------------------------- # �€”� Set Text #-------------------------------------------------------------------------- # Subtitle Displayed on the Title Screen TITLE = "New Game:Begins a new game Continue:Loads a game from a save file Shutdown:Closes the game" # Subtitle Displayed on the Menu Screen MENU = "Up/Down:Move the cursor C:Confirm B:Cancel" # Subtitle Displayed on the Item Screen ITEM = "Up/Down/Left/Right:Move the cursor�‚‚C:Confirm B:Cancel" # Subtitle Displayed on the Skills Screen SKILL = "Up/Down/Left/Right:Move the cursor L/R:Switch Characters�‚‚C:Confirm�‚‚B:Cancel" # Subtitle Displayed on the Equipment Screen EQUIP = "Up/Down:Move the cursor�‚‚L/R:Switch Characters�‚‚C:Confirm�‚‚B:Cancel" # Subtitle Displayed on the Status Screen STATUS = "L/R:Switch Characters�‚‚B:Return to Menu Screen" # Subtitle Displayed on the Save Screen FILE = "Up/Down:Select a save file�‚‚C:Save in selected file�‚‚B:Return to menu" # Subtitle Displayed on the End Screen SC_END = "Up/Down/Left/Right:Move the cursor�‚‚C:Confirm�‚‚B:Cancel" # Subtitle Displayed on the Shop Screen SHOP = "Up/Down/Left/Right:Move the cursor�‚‚C:Confirm�‚‚B:Cancel" # Subtitle Displayed on the Player Naming Screen NAME = "Up/Down/Left/Right:Move the cursor�‚‚C:Confirm�‚‚B:Cancel" #============================================================================== # End Customization #============================================================================== #-------------------------------------------------------------------------- # �€”� �€š��€š��’��’€�€š�の�“�†� #-------------------------------------------------------------------------- def create_mini_help_window(text) @_dummy_window = Window_Mini_Help_dummy.new(1000) @_dummy_window.visible = false @_dummy_window.contents.font.size = DAI_MINI_HELP::FONT_SIZE width = @_dummy_window.contents.text_size(text).width @_dummy_window.dispose @mini_help_window = Window_Mini_Help.new(width) case DAI_MINI_HELP::TYPE when 0 @mini_help_window.x = DAI_MINI_HELP::X when 1 @mini_help_window.x = 534 when 2 if @mini_help_window.width > 544 @mini_help_window.x = 534 else @mini_help_window.x = DAI_MINI_HELP::X end else @mini_help_window.x = DAI_MINI_HELP::X end @mini_help_window.set_text(text) @mini_help_window.visible = false if $game_switches[DAI_MINI_HELP::SWITCH] end #-------------------------------------------------------------------------- # �€”� �€š��€š��’��’€�€š�の位置�“正 #-------------------------------------------------------------------------- def correction_mini_help_window x = $game_temp.next_or_prev_actor unless $game_temp.next_or_prev_actor == 0 @mini_help_window.x = x - 1 $game_temp.next_or_prev_actor = 0 end end #-------------------------------------------------------------------------- # �€”� �€š��€š��€š��’��†€�€��„€šの�€š��€š �’��’€�€š�位置の�‚�„€š�‚‚避 #-------------------------------------------------------------------------- def next_or_prev_actor_temp if DAI_MINI_HELP::TYPE == 1 or DAI_MINI_HELP::TYPE == 2 && @mini_help_window.width >= 544 $game_temp.next_or_prev_actor = @mini_help_window.x end end #-------------------------------------------------------------------------- # �€”� �’€�’��’��’��€��€“� #-------------------------------------------------------------------------- def dai_mini_help_update_m return if DAI_MINI_HELP::TYPE == 0 if DAI_MINI_HELP::TYPE == 1 or DAI_MINI_HELP::TYPE == 2 && @mini_help_window.width >= 544 if @mini_help_window.x > 0 - @mini_help_window.width @mini_help_window.x -= DAI_MINI_HELP::SPEED else @mini_help_window.x = 544 end end end end #============================================================================== # �€“� Game_Temp #============================================================================== class Game_Temp #-------------------------------------------------------------------------- # �€”� �€��€“€�€š��’��€š��€š��’��€š��€� €� #-------------------------------------------------------------------------- attr_accessor :next_or_prev_actor #-------------------------------------------------------------------------- # �€”� �€š��’€“�€š��€š��€š��’†�†��“Ÿ�’€“ #-------------------------------------------------------------------------- alias dai_mini_help_initialize initialize def initialize dai_mini_help_initialize @next_or_prev_actor = 0 end end #============================================================================== # �€“� Window_Mini_Help #------------------------------------------------------------------------------ # �‚‚�€�面に�€œ��“�€“��€など�€š€™表示�„ �€š€�€š��€š��’��’€�€š�で�„�‚€š #============================================================================== class Window_Mini_Help < Window_Base #-------------------------------------------------------------------------- # �€”� �€š��’€“�€š��€š��€š��’†�†��“Ÿ�’€“ #-------------------------------------------------------------------------- def initialize(width) super(DAI_MINI_HELP::X, DAI_MINI_HELP::Y, width, WLH + 32) self.opacity = 0 end #-------------------------------------------------------------------------- # �€”� �’€�€š��€š��’†設�š #-------------------------------------------------------------------------- def set_text(text, align = 0) if text != @text or align != @align self.contents.clear self.contents.font.size = DAI_MINI_HELP::FONT_SIZE if DAI_MINI_HELP::FRAME self.contents.draw_text_mini_help(4, 0, self.width - 40, 18, text, align) else self.contents.font.color = DAI_MINI_HELP::COLOR_1 self.contents.font.italic = true if DAI_MINI_HELP::ITALIC self.contents.font.bold = true if DAI_MINI_HELP::BOLD self.contents.draw_text(4, 0, self.width - 40, 18, text, align) end @text = text @align = align end end end #============================================================================== # �€“� Window_Mini_Help_dummy #------------------------------------------------------------------------------ # �‚‚Window_Mini_Helpの�Ÿ�形�€š€™�€“�€”�„�€š€�€ š�の�‚�„€š�š€žな�€š��€š��’��’€�€š�で
�„�‚€š #============================================================================== class Window_Mini_Help_dummy < Window_Base #-------------------------------------------------------------------------- # �€”� �€š��’€“�€š��€š��€š��’†�†��“Ÿ�’€“ #-------------------------------------------------------------------------- def initialize(width) super(DAI_MINI_HELP::X, DAI_MINI_HELP::Y, width, WLH + 32) end end #============================================================================== # �€“� Scene_Title #============================================================================== class Scene_Title < Scene_Base include DAI_MINI_HELP #-------------------------------------------------------------------------- # �€”� �€“€�€�€��€ #-------------------------------------------------------------------------- alias dai_mini_help_start start def start dai_mini_help_start create_mini_help_window(DAI_MINI_HELP::TITLE) end #-------------------------------------------------------------------------- # �€”� �€š�€�€��€ #-------------------------------------------------------------------------- alias dai_mini_help_terminate terminate def terminate dai_mini_help_terminate @mini_help_window.dispose end #-------------------------------------------------------------------------- # �€”� �’€�’��’��’��€��€“� #-------------------------------------------------------------------------- alias dai_mini_help_update update def update dai_mini_help_update dai_mini_help_update_m end end #============================================================================== # �€“� Scene_Menu #============================================================================== class Scene_Menu < Scene_Base include DAI_MINI_HELP #-------------------------------------------------------------------------- # �€”� �€“€�€�€��€ #-------------------------------------------------------------------------- alias dai_mini_help_start start def start dai_mini_help_start create_mini_help_window(DAI_MINI_HELP::MENU) end #-------------------------------------------------------------------------- # �€”� �€š�€�€��€ #-------------------------------------------------------------------------- alias dai_mini_help_terminate terminate def terminate dai_mini_help_terminate @mini_help_window.dispose end #-------------------------------------------------------------------------- # �€”� �’€�’��’��’��€��€“� #-------------------------------------------------------------------------- alias dai_mini_help_update update def update dai_mini_help_update dai_mini_help_update_m end end #============================================================================== # �€“� Scene_Item #============================================================================== class Scene_Item < Scene_Base include DAI_MINI_HELP #-------------------------------------------------------------------------- # �€”� �€“€�€�€��€ #-------------------------------------------------------------------------- alias dai_mini_help_start start def start dai_mini_help_start create_mini_help_window(DAI_MINI_HELP::ITEM) end #-------------------------------------------------------------------------- # �€”� �€š�€�€��€ #-------------------------------------------------------------------------- alias dai_mini_help_terminate terminate def terminate dai_mini_help_terminate @mini_help_window.dispose end #-------------------------------------------------------------------------- # �€”� �’€�’��’��’��€��€“� #-------------------------------------------------------------------------- alias dai_mini_help_update update def update dai_mini_help_update dai_mini_help_update_m end end #============================================================================== # �€“� Scene_Skill #============================================================================== class Scene_Skill < Scene_Base include DAI_MINI_HELP #-------------------------------------------------------------------------- # �€”� �€“€�€�€��€ #-------------------------------------------------------------------------- alias dai_mini_help_start start def start dai_mini_help_start create_mini_help_window(DAI_MINI_HELP::SKILL) correction_mini_help_window end #-------------------------------------------------------------------------- # �€”� �€š�€�€��€ #-------------------------------------------------------------------------- alias dai_mini_help_terminate terminate def terminate dai_mini_help_terminate @mini_help_window.dispose end #-------------------------------------------------------------------------- # �€”� 次の�€š��€š��€š��’�の�€�面に�†€�€šŠ�€ ��† #-------------------------------------------------------------------------- alias dai_mini_help_next_actor next_actor def next_actor next_or_prev_actor_temp dai_mini_help_next_actor end #-------------------------------------------------------------------------- # �€”� �€�の�€š��€š��€š��’�の�€�面に�†€�€š �€��† #-------------------------------------------------------------------------- alias dai_mini_help_prev_actor prev_actor def prev_actor next_or_prev_actor_temp dai_mini_help_prev_actor end #-------------------------------------------------------------------------- # �€”� �’€�’��’��’��€��€“� #-------------------------------------------------------------------------- alias dai_mini_help_update update def update dai_mini_help_update dai_mini_help_update_m end end #============================================================================== # �€“� Scene_Equip #============================================================================== class Scene_Equip < Scene_Base include DAI_MINI_HELP #-------------------------------------------------------------------------- # �€”� �€“€�€�€��€ #-------------------------------------------------------------------------- alias dai_mini_help_start start def start dai_mini_help_start create_mini_help_window(DAI_MINI_HELP::EQUIP) correction_mini_help_window end #-------------------------------------------------------------------------- # �€”� �€š�€�€��€ #-------------------------------------------------------------------------- alias dai_mini_help_terminate terminate def terminate dai_mini_help_terminate @mini_help_window.dispose end #-------------------------------------------------------------------------- # �€”� 次の�€š��€š��€š��’�の�€�面に�†€�€šŠ�€ ��† #-------------------------------------------------------------------------- alias dai_mini_help_next_actor next_actor def next_actor next_or_prev_actor_temp dai_mini_help_next_actor end #-------------------------------------------------------------------------- # �€”� �€�の�€š��€š��€š��’�の�€�面に�†€�€š �€��† #-------------------------------------------------------------------------- alias dai_mini_help_prev_actor prev_actor def prev_actor next_or_prev_actor_temp dai_mini_help_prev_actor end #-------------------------------------------------------------------------- # �€”� �’€�’��’��’��€��€“� #-------------------------------------------------------------------------- alias dai_mini_help_update update def update dai_mini_help_update dai_mini_help_update_m end end #============================================================================== # �€“� Scene_Status #============================================================================== class Scene_Status < Scene_Base include DAI_MINI_HELP #-------------------------------------------------------------------------- # �€”� �€“€�€�€��€ #-------------------------------------------------------------------------- alias dai_mini_help_start start def start dai_mini_help_start create_mini_help_window(DAI_MINI_HELP::STATUS) correction_mini_help_window end #-------------------------------------------------------------------------- # �€”� �€š�€�€��€ #-------------------------------------------------------------------------- alias dai_mini_help_terminate terminate def terminate dai_mini_help_terminate @mini_help_window.dispose end #-------------------------------------------------------------------------- # �€”� 次の�€š��€š��€š��’�の�€�面に�†€�€šŠ�€ ��† #-------------------------------------------------------------------------- alias dai_mini_help_next_actor next_actor def next_actor next_or_prev_actor_temp dai_mini_help_next_actor end #-------------------------------------------------------------------------- # �€”� �€�の�€š��€š��€š��’�の�€�面に�†€�€š �€��† #-------------------------------------------------------------------------- alias dai_mini_help_prev_actor prev_actor def prev_actor next_or_prev_actor_temp dai_mini_help_prev_actor end #-------------------------------------------------------------------------- # �€”� �’€�’��’��’��€��€“� #-------------------------------------------------------------------------- alias dai_mini_help_update update def update dai_mini_help_update dai_mini_help_update_m end end #============================================================================== # �€“� Scene_File #============================================================================== class Scene_File < Scene_Base include DAI_MINI_HELP #-------------------------------------------------------------------------- # �€”� �€“€�€�€��€ #-------------------------------------------------------------------------- alias dai_mini_help_start start def start dai_mini_help_start create_mini_help_window(DAI_MINI_HELP::FILE) end #-------------------------------------------------------------------------- # �€”� �€š�€�€��€ #-------------------------------------------------------------------------- alias dai_mini_help_terminate terminate def terminate dai_mini_help_terminate @mini_help_window.dispose end #-------------------------------------------------------------------------- # �€”� �’€�’��’��’��€��€“� #-------------------------------------------------------------------------- alias dai_mini_help_update update def update dai_mini_help_update dai_mini_help_update_m end end #============================================================================== # �€“� Scene_End #============================================================================== class Scene_End < Scene_Base include DAI_MINI_HELP #-------------------------------------------------------------------------- # �€”� �€“€�€�€��€ #-------------------------------------------------------------------------- alias dai_mini_help_start start def start dai_mini_help_start create_mini_help_window(DAI_MINI_HELP::SC_END) end #-------------------------------------------------------------------------- # �€”� �€š�€�€��€ #-------------------------------------------------------------------------- alias dai_mini_help_terminate terminate def terminate dai_mini_help_terminate @mini_help_window.dispose end #-------------------------------------------------------------------------- # �€”� �’€�’��’��’��€��€“� #-------------------------------------------------------------------------- alias dai_mini_help_update update def update dai_mini_help_update dai_mini_help_update_m end end #============================================================================== # �€“� Scene_Shop #============================================================================== class Scene_Shop < Scene_Base include DAI_MINI_HELP #-------------------------------------------------------------------------- # �€”� �€“€�€�€��€ #-------------------------------------------------------------------------- alias dai_mini_help_start start def start dai_mini_help_start create_mini_help_window(DAI_MINI_HELP::SHOP) end #-------------------------------------------------------------------------- # �€”� �€š�€�€��€ #-------------------------------------------------------------------------- alias dai_mini_help_terminate terminate def terminate dai_mini_help_terminate @mini_help_window.dispose end #-------------------------------------------------------------------------- # �€”� �’€�’��’��’��€��€“� #-------------------------------------------------------------------------- alias dai_mini_help_update update def update dai_mini_help_update dai_mini_help_update_m end end #============================================================================== # �€“� Scene_Name #============================================================================== class Scene_Name < Scene_Base include DAI_MINI_HELP #-------------------------------------------------------------------------- # �€”� �€“€�€�€��€ #-------------------------------------------------------------------------- alias dai_mini_help_start start def start dai_mini_help_start create_mini_help_window(DAI_MINI_HELP::NAME) end #-------------------------------------------------------------------------- # �€”� �€š�€�€��€ #-------------------------------------------------------------------------- alias dai_mini_help_terminate terminate def terminate dai_mini_help_terminate @mini_help_window.dispose end #-------------------------------------------------------------------------- # �€”� �’€�’��’��’��€��€“� #-------------------------------------------------------------------------- alias dai_mini_help_update update def update dai_mini_help_update dai_mini_help_update_m end end #============================================================================== # �€“� Bitmap #============================================================================== class Bitmap def draw_text_mini_help(x, y, width, height, text, align=0) c = DAI_MINI_HELP::COLOR_1 font.color = DAI_MINI_HELP::COLOR_2 font.italic = true if DAI_MINI_HELP::ITALIC font.bold = true if DAI_MINI_HELP::BOLD draw_text(x, y-1, width, height, text, align) draw_text(x, y+1, width, height, text, align) draw_text(x+1, y, width, height, text, align) draw_text(x+1, y, width, height, text, align) font.color = c draw_text(x, y, width, height, text, align) end end CompatibilityUntested with other scripts. Should work fine with most things, but if it doesn't, you can report it, and help may just be found. ScreenshotDEMOI highly recommend playing the demo to get a good idea of how it can work, although it really is quite simple. DemoInstallationPractically Plug 'n Play, with the exception of customization that you might want to look at. FAQQ.Help!!! This script is giving me an error! A.Sadly, I can't help with that. I merely translated this script, and have a weak scripting ability. You may want to contact the script makers, to see what you can do to get it to work properly. If there's something you don't understand about the script, then those kind of questions are ones I can answer. CreditsRGSS2DaiPage Staff-The script SuperMega-Translation (Please credit both! Don't leave RGSS2Daipage Staff out of your credits! You know they did a great job!)
__________________________
|
|
|
|
|
|
|
|
 |
Replies
(1 - 3)
|
|
Nov 22 2009, 03:04 PM
|

Level 7

Group: Revolutionary
Posts: 102
Type: Developer
RM Skill: Beginner

|
perfect for tutorial missions and objectives, thanks XD
Another question, is there anyway that, if you are next to an event and do nothing, make a message that says "C: Talk"?
This post has been edited by Dan Blazing: Nov 22 2009, 03:27 PM
__________________________
*insert badass signature here*
|
|
|
|
|
|
|
|
|
Dec 1 2009, 02:31 PM
|

Public memberTitle(String n)

Group: Revolutionary
Posts: 683
Type: Developer
RM Skill: Skilled

|
QUOTE (Dan Blazing @ Nov 22 2009, 05:04 PM)  perfect for tutorial missions and objectives, thanks XD
Another question, is there anyway that, if you are next to an event and do nothing, make a message that says "C: Talk"? Sorry for the late response, I hadn't noticed you edited your post with your question. With this script, that isn't really possible, so you'll have to look elsewhere. I can point you to Woratana's gift box, where he has two scripts with the potential to do something like this: http://www.rpgrevolution.com/forums/index....c=25164&hl=
__________________________
|
|
|
|
|
|
|
|
  |
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
RPG RPG Revolution is an Privacy
Policy and Legal
|
|