Sha256: ac0f328ffa7ca5cd9f1bd94dfd3168f3ec178213fb94c0dacea373fa2d01ce6c
Contents?: true
Size: 723 Bytes
Versions: 30
Compression:
Stored size: 723 Bytes
Contents
require_relative '../model/playing_card' class KlondikeSolitaire module View class EmptyPlayingCard include Glimmer::UI::CustomShape options :card_x, :card_y, :suit before_body do self.card_x ||= 0 self.card_y ||= 0 end body { rectangle(card_x, card_y, 49, 79, 15, 15) { foreground :gray if suit text { string Model::PlayingCard.suit_text(suit) x :default y :default is_transparent true foreground Model::PlayingCard::BLACK_SUITS.include?(suit) ? :black : :red } end } } end end end
Version data entries
30 entries across 30 versions & 1 rubygems