43 #include "UI/uimanager.h"
44 #include "UI/button.h"
45 #include "UI/screen.h"
62 Activation(AS_Deactivated)
67 Activation(AS_Deactivated)
71 Widget(RendName,RendRect,Parent),
72 Activation(AS_Deactivated)
77 Activation(AS_Deactivated)
130 for(
Whole X = 0 ; X < Codes->size() ; X++ )
137 return (Input::KEY_FIRST < Code && Input::KEY_LAST > Code) ||
138 (Input::MOUSEBUTTON_FIRST <= Code && Input::MOUSEBUTTON_LAST >= Code) ||
139 (Input::CONTROLLERBUTTON_FIRST <= Code && Input::CONTROLLERBUTTON_LAST >= Code);
221 if( (*ActIt).GetKeyData().IsKeyboardButton() ) {
233 if( (*ActIt).GetKeyData().IsMouseButton() ) {
245 if( (*ActIt).GetKeyData().IsControllerButton() ) {
287 (*CodeIt).GetKeyData().ProtoSerialize(CodesNode);
303 if( !PropertiesNode.
Empty() ) {
305 CurrAttrib = PropertiesNode.
GetAttribute(
"LockoutTime");
306 if( !CurrAttrib.
Empty() )
310 if( !CodesNode.
Empty() ) {
377 {
return new Button(RendName,Parent); }
380 {
return new Button(RendName,RendRect,Parent); }
383 {
return new Button(XMLNode,Parent); }
386 {
return new Button(Parent); }
392 {
return this->
CreateButton(RendName,RendRect,Parent); }
398 {
delete static_cast<Button*
>( ToBeDestroyed ); }