Class: Smagacor::GameShutterButton

Inherits:
FXButton
  • Object
show all
Defined in:
lib/smagacor/smagacor-ui.rb

Overview

Widget for creating buttons for games easily.

Instance Method Summary collapse

Constructor Details

#initialize(p, name) ⇒ GameShutterButton

Create a new game button for the game name.



80
81
82
83
84
# File 'lib/smagacor/smagacor-ui.rb', line 80

def initialize( p, name )
  super( p, name, nil, nil, 0, BUTTON_TOOLBAR|TEXT_BELOW_ICON|FRAME_THICK|FRAME_RAISED|LAYOUT_FILL_X|LAYOUT_TOP|LAYOUT_LEFT )
  self.backColor = p.backColor
  self.textColor = FXRGB(255, 255, 255)
end