From bee2e69e117af5205e96083cb7b0b128dd891e0c Mon Sep 17 00:00:00 2001 From: Alyssa Milburn Date: Fri, 4 Nov 2011 12:25:37 +0100 Subject: COMPOSER: Factor out button activation code. --- engines/composer/composer.cpp | 12 ++++++++++++ engines/composer/composer.h | 1 + engines/composer/scripting.cpp | 18 ++---------------- 3 files changed, 15 insertions(+), 16 deletions(-) (limited to 'engines/composer') diff --git a/engines/composer/composer.cpp b/engines/composer/composer.cpp index 595c2eca46..c2ebed32b6 100644 --- a/engines/composer/composer.cpp +++ b/engines/composer/composer.cpp @@ -571,4 +571,16 @@ const Button *ComposerEngine::getButtonFor(const Sprite *sprite, const Common::P return NULL; } +void ComposerEngine::setButtonActive(uint16 id, bool active) { + for (Common::List::iterator l = _libraries.begin(); l != _libraries.end(); l++) { + for (Common::List