Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
cards
master
Cards
Blackjack
CardPlayer
ChipTray
CpuPlayer
Dealer
GameMode
Hand
Result
Key
Manager
Player
Seat
SeatPlayer
Card
CardBack
CardBacks
Bordered
Stripes
CardFront
CardFronts
Standard
CardStack
Chip
Amount
ChipStack
Deck
GameMode
Key
Main
MainMenu
Menu
MenuItem
MenuItemInput
Popup
Rank
SaveMenu
Solitare
Foundation
FoundationSpriteConverter
GameMode
Stack
Stock
Waste
StandardDeck
Suit
TestDeck
Built with Crystal 1.9.2
2023-10-07 18:23:32 UTC
class
Cards::Popup
Cards::Popup
Cards::Menu
Reference
Object
Direct Known Subclasses
Cards::SaveMenu
Defined in:
cards/popup.cr
Constructors
.new
(title : String =
""
, items =
[]
of
String
)
Instance Method Summary
#back
#draw
#on
(item, &block : Proc(Nil))
#select_item
#title
: String
Instance methods inherited from class
Cards::Menu
arrange_items
arrange_items
,
back
back
,
done=(done : Bool)
done=
,
done? : Bool
done?
,
draw
draw
,
draw_background
draw_background
,
draw_header(text : String)
draw_header
,
exit? : Bool
exit?
,
focus(asc =
true
, wrap =
true
)
focus
,
focus_last
focus_last
,
focus_next
focus_next
,
hide
hide
,
items=(items : Array(String))
items=
,
items_height
items_height
,
items_width
items_width
,
select_item
select_item
,
show
show
,
shown? : Bool
shown?
,
update(frame_time)
update
Constructor methods inherited from class
Cards::Menu
new(items : Array(String))
new
Constructor Detail
def self.
new
(title : String =
""
, items =
[]
of
String
)
#
[
View source
]
Instance Method Detail
def
back
#
[
View source
]
def
draw
#
[
View source
]
def
on
(item, &block : Proc(Nil))
#
[
View source
]
def
select_item
#
[
View source
]
def
title
: String
#
[
View source
]