diff classes/ActionButton.lua @ 155:806a61b331a0

Pushed the state implementation into Bar
author Flick <flickerstreak@gmail.com>
date Fri, 15 May 2009 22:38:19 +0000
parents 42cade25d40d
children 799c6ea9da7b
line wrap: on
line diff
--- a/classes/ActionButton.lua	Fri May 08 17:30:22 2009 +0000
+++ b/classes/ActionButton.lua	Fri May 15 22:38:19 2009 +0000
@@ -52,8 +52,8 @@
     else
       action = 0
     end
-  elseif page and state and page[state] then
-    action = self:GetAttribute("action-"..page[state]) 
+  elseif state and settings[state] and settings[state].page then
+    action = self:GetAttribute("action-"..settings[state].page) 
   end
   if action == nil then
     action = self:GetAttribute("default-action")