Mercurial > wow > cyborg-mmo7
comparison OptionView.lua @ 27:fa41b4402270
'getglobal' is not necessary when the global name is known beforehand.
| author | madcatzinc@35b17cf1-18cd-47ff-9ca3-31d6b526ef09 |
|---|---|
| date | Thu, 25 Apr 2013 01:30:56 +0000 |
| parents | 92b62e33887b |
| children | d18ce89b6d09 |
comparison
equal
deleted
inserted
replaced
| 26:92b62e33887b | 27:fa41b4402270 |
|---|---|
| 36 mode = mode + 1 | 36 mode = mode + 1 |
| 37 index = index - 13 | 37 index = index - 13 |
| 38 end | 38 end |
| 39 local buttonStr = CyborgMMO_StringTable[("CyborgMMO_OptionPageRebindMouseRow"..index.."Name")] | 39 local buttonStr = CyborgMMO_StringTable[("CyborgMMO_OptionPageRebindMouseRow"..index.."Name")] |
| 40 | 40 |
| 41 getglobal("CyborgMMO_BindingFrameButtonName"):SetText(buttonStr.." Mode "..mode) | 41 CyborgMMO_BindingFrameButtonName:SetText(buttonStr.." Mode "..mode) |
| 42 getglobal("CyborgMMO_BindingFrameKey"):SetText(CyborgMMO_StringTable["CyborgMMO_CurrentBinding"].." "..CyborgMMO_WowCommands[CyborgMMO_GetButtonIndex(lastButton)]) | 42 CyborgMMO_BindingFrameKey:SetText(CyborgMMO_StringTable["CyborgMMO_CurrentBinding"].." "..CyborgMMO_WowCommands[CyborgMMO_GetButtonIndex(lastButton)]) |
| 43 CyborgMMO_BindingFrame:Show() | 43 CyborgMMO_BindingFrame:Show() |
| 44 end | 44 end |
| 45 | 45 |
| 46 function CyborgMMO_SetBindingButtonText(name) | 46 function CyborgMMO_SetBindingButtonText(name) |
| 47 if not CyborgMMO_WowCommands then | 47 if not CyborgMMO_WowCommands then |
