comparison options.lua @ 119:a88d485123b8 beta-mhg-2

Forgot to revert this when 305 was closed.
author Farmbuyer of US-Kilrogg <farmbuyer@gmail.com>
date Thu, 16 Aug 2012 23:07:22 -0400
parents fc2ff128835a
children 4dd67f8116f4
comparison
equal deleted inserted replaced
118:ec5174529e0f 119:a88d485123b8
224 -- This wording is not quite accurate, but auto-l10n is nice. 224 -- This wording is not quite accurate, but auto-l10n is nice.
225 _G.BIND_KEY_TO_COMMAND:format([['/ouroloot toggle']])) 225 _G.BIND_KEY_TO_COMMAND:format([['/ouroloot toggle']]))
226 button:SetFullWidth(true) 226 button:SetFullWidth(true)
227 --button:SetLabel("this is label text") 227 --button:SetLabel("this is label text")
228 button:SetKey(opts.keybinding_text) 228 button:SetKey(opts.keybinding_text)
229 button.msgframe:SetToplevel(true) -- XXX ace3 ticket #305
230 button:SetCallback("OnKeyChanged", function(_b,event,value) 229 button:SetCallback("OnKeyChanged", function(_b,event,value)
231 local possible_prev = opts.keybinding_text 230 local possible_prev = opts.keybinding_text
232 opts.keybinding_text = value 231 opts.keybinding_text = value
233 -- If they were already binding something at login, try updating. 232 -- If they were already binding something at login, try updating.
234 if not _G.OuroLootBindingOpen then return end 233 if not _G.OuroLootBindingOpen then return end