/** Sets the Picture */ void Button::SetPicture(Sprite2D* newpic) { core->GetVideoDriver()->FreeSprite( Picture ); ClearPictureList(); Picture = newpic; MarkDirty(); Flags |= IE_GUI_BUTTON_PICTURE; }
/** Sets the Picture */ void Button::SetPicture(Sprite2D* newpic) { Sprite2D::FreeSprite( Picture ); ClearPictureList(); Picture = newpic; MarkDirty(); Flags |= IE_GUI_BUTTON_PICTURE; }
/** Sets the Picture */ void Button::SetPicture(Sprite2D* newpic) { core->GetVideoDriver()->FreeSprite( Picture ); ClearPictureList(); Picture = newpic; Changed = true; Flags |= IE_GUI_BUTTON_PICTURE; Owner->Invalidate(); }
Button::~Button() { SetImage(BUTTON_IMAGE_NONE, NULL); Sprite2D::FreeSprite( Picture ); ClearPictureList(); gamedata->FreePalette( normal_palette); gamedata->FreePalette( disabled_palette); }
Button::~Button() { Video* video = core->GetVideoDriver(); SetImage(BUTTON_IMAGE_NONE, NULL); video->FreeSprite( Picture ); ClearPictureList(); if (Text) { free( Text ); } gamedata->FreePalette( normal_palette); gamedata->FreePalette( disabled_palette); }
Button::~Button() { Video* video = core->GetVideoDriver(); video->FreeSprite( Disabled ); video->FreeSprite( Selected ); video->FreeSprite( Pressed ); video->FreeSprite( Unpressed ); video->FreeSprite( Picture ); ClearPictureList(); if (Text) { free( Text ); } gamedata->FreePalette( normal_palette); gamedata->FreePalette( disabled_palette); }