Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
cyo_adventure
master
CYOAdventure
Choice
Content
Ending
Image
Interactable
Node
Text
Built with Crystal 1.9.2
2023-10-07 20:26:15 UTC
class
CYOAdventure::Choice
CYOAdventure::Choice
CYOAdventure::Content
Reference
Object
Defined in:
cyo_adventure/choice.cr
Constructors
.new
(node : Node, hash_line : String)
Instance Method Summary
#draw
(offset =
0
, height =
0
)
#height
: Int32
#new_line
: Bool
#selected=
(selected : Bool)
Instance methods inherited from class
CYOAdventure::Content
draw(offset : Int32, height : Int32)
draw
,
height : Int32
height
,
new_line : Bool
new_line
,
next : Content | Nil
next
,
node : Node
node
,
node? : Node | Nil
node?
Constructor methods inherited from class
CYOAdventure::Content
new(node : Node, line : String, dir : String) : Content
new
Constructor Detail
def self.
new
(node :
Node
, hash_line : String)
#
[
View source
]
Instance Method Detail
def
draw
(offset =
0
, height =
0
)
#
[
View source
]
def
height
: Int32
#
[
View source
]
def
new_line
: Bool
#
[
View source
]
def
selected=
(selected : Bool)
#
[
View source
]