Module: TyranoDsl::ParsingWords::SetTitleScreenBackground
- Includes:
- ParsingWordsModule
- Defined in:
- lib/tyrano_dsl/parsing_words/set_title_screen_background.rb
Instance Method Summary collapse
Instance Method Details
#set_title_screen_background(background_name) ⇒ void
This method returns an undefined value.
11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/tyrano_dsl/parsing_words/set_title_screen_background.rb', line 11 def set_title_screen_background(background_name) unless context.world.backgrounds.key? background_name raise_unknown('background', background_name, context.world.backgrounds.keys) end if context.world.title_screen.background raise TyranoDsl::TyranoException, 'Title screen background already defined' end context.world.title_screen.background = background_name add_parsed_word( TyranoDsl::Vocabulary::SET_TITLE_SCREEN_BACKGROUND, name: background_name ) end |