Mercurial > wow > cyborg-mmo7
comparison CyborgMMO7.lua @ 61:adba10dfa908
Implemented the "Defaults" button for the key bindings options subpage.
author | madcatzinc@35b17cf1-18cd-47ff-9ca3-31d6b526ef09 |
---|---|
date | Fri, 03 May 2013 23:24:58 +0000 |
parents | a710bedc1ec4 |
children | 8b8b0bade520 |
comparison
equal
deleted
inserted
replaced
60:a710bedc1ec4 | 61:adba10dfa908 |
---|---|
428 CyborgMMO_SetMainPageSize(0.75) | 428 CyborgMMO_SetMainPageSize(0.75) |
429 CyborgMMO_SetMiniMapButton(true) | 429 CyborgMMO_SetMiniMapButton(true) |
430 CyborgMMO_SetCyborgHeadButton(true) | 430 CyborgMMO_SetCyborgHeadButton(true) |
431 end | 431 end |
432 | 432 |
433 function CyborgMMO_SetDefaultKeyBindings() | |
434 for mode=1,RAT7.MODES do | |
435 for button=1,RAT7.BUTTONS do | |
436 local k = (mode - 1) * RAT7.BUTTONS + button | |
437 CyborgMMO_ProfileKeyBindings[k] = CyborgMMO_DefaultKeyBindings[k] | |
438 CyborgMMO_SetBindingButtonText(string.format("CyborgMMO_OptionPageRebindMouseRow%XMode%d", button, mode)) | |
439 end | |
440 end | |
441 end | |
433 | 442 |
434 function CyborgMMO_SetupModeCallbacks(modeNum) | 443 function CyborgMMO_SetupModeCallbacks(modeNum) |
435 local fn = function() | 444 local fn = function() |
436 CyborgMMO_ModeDetected = true | 445 CyborgMMO_ModeDetected = true |
437 CyborgMMO_MouseModeChange(modeNum) | 446 CyborgMMO_MouseModeChange(modeNum) |