Class:Introcard
Defined in: Adventure/Introcard.js, line 5
Description
Introcard is a repository for properties used to print an introductory screen at the start of the game. Introcard is created automatically by Game. This is an internal class that authors should not need to construct. However, authors can set intro options from their game file as shown below.
Example:
var MyGame = new AdventureJS.Game( "MyGame", "GameDisplay" );
MyGame.introcard.set({
});
Private Constructor:
var foo = new AdventureJS.Introcard(game)
Parameters:
-
gameGame
A reference to the game instance.
- Index
- Methods
- Properties
Index
Methods Collapse all |
set
set(props) → {AdventureJS.Introcard}
Defined in: Adventure/Introcard.js, line 124
Parameters:
-
propsObject
A generic object containing properties to copy to the instance.
Returns:
AdventureJS.Introcard
Returns the instance the method is called on (useful for chaining calls.)
show
show()
Defined in: Adventure/Introcard.js, line 89
Properties |
clear_on_continue
clear_on_continue :Boolean
Defined in: Adventure/Introcard.js, line 51
Default value: false
hide_statusbar
hide_statusbar :Boolean
Defined in: Adventure/Introcard.js, line 58
Default value: false
hide_titlebar
hide_titlebar :Boolean
Defined in: Adventure/Introcard.js, line 73
Default value: false
prompt_text
prompt_text :String
Defined in: Adventure/Introcard.js, line 37
Default value: ""
prompt_to_continue
prompt_to_continue :boolean
Defined in: Adventure/Introcard.js, line 44
Default value: false
show_statusbar_on_continue
show_statusbar_on_continue :Boolean
Defined in: Adventure/Introcard.js, line 65
Default value: true
show_statusbar_on_continue
show_statusbar_on_continue :Boolean
Defined in: Adventure/Outrocard.js, line 86
Default value: true
show_titlebar_on_continue
show_titlebar_on_continue :Boolean
Defined in: Adventure/Introcard.js, line 80
Default value: true
text
text :String
Defined in: Adventure/Introcard.js, line 30
Default value: ""