|
|
#1 |
|
Member
Join Date: May 2006
Posts: 14
|
Hi,
I’ll try to be as clear as possible, here is my problem : When I put shortcuts in my actionbar like : R, X, C,… etc: it’s all ok 2-buttons shortcuts like ctrl+R shift+E displays like this: c-R, Shi… SCREENSHOT : http://img136.imageshack.us/img136/8...0209092920.jpg No problem for the Control, but for the shift shortcuts it gets more complicated, I have 7 of them on my rogue, which is no such a problem because I know them al, the problem is when I go on rerolls So if someone knows an add-on, or know how to create shortcuts to replace Shi… by S-E Thank you PS : MAJ = SHIFT
__________________
Last edited by TrAsHeR; 03-02-2009 at 10:44 AM. |
|
|
|
|
|
#2 |
|
Asian Sheep Lover
Join Date: Aug 2007
Location: Singapore
Posts: 3,556
|
Your link is broken.
__________________
Author/Maintainer of Postal, Omen3, GemHelper, BankItems, WoWEquip, GatherMate, Routes, HandyNotes and some others. |
|
|
|
|
|
#3 |
|
Member
Join Date: May 2006
Posts: 14
|
It's ok
sorry
__________________
|
|
|
|
|
|
#4 |
|
Asian Sheep Lover
Join Date: Aug 2007
Location: Singapore
Posts: 3,556
|
The default UI abbrieviates ctrl, shift, and alt to c, s and a. So I'm not sure what "Maj" is, or what language that is.
![]()
__________________
Author/Maintainer of Postal, Omen3, GemHelper, BankItems, WoWEquip, GatherMate, Routes, HandyNotes and some others. |
|
|
|
|
|
#5 |
|
Member
Join Date: May 2006
Posts: 14
|
MAJ = SHIFT (french version)
__________________
|
|
|
|
|
|
#6 |
|
Legendary Member
Join Date: May 2006
Posts: 6,156
|
might just be a localization thing or something in the client
|
|
|
|
|
|
#7 |
|
Member
Join Date: May 2006
Posts: 14
|
MAJ = 3 Carac
SHIFT = 5 Carac CTRL = 4 Carac the client cut 4 carac + ![]()
__________________
|
|
|
|
|
|
#8 |
|
Member
Join Date: May 2006
Posts: 14
|
up
__________________
|
|
|
|
|
|
#9 |
|
Amazing Member
Join Date: Jul 2006
Posts: 1,362
|
This is a Blizzard bug.
Look at UIParent.lua, in the function GetBindingText(): Code:
local modKeys = '';
if ( not dashIndex ) then
dashIndex = 0;
else
modKeys = strsub(name, 1, dashIndex);
if ( tempName == "CAPSLOCK" ) then
gsub(tempName, "CAPSLOCK", "Caps");
end
-- replace for all languages
-- for the "push-to-talk" binding
modKeys = gsub(modKeys, "LSHIFT", LSHIFT_KEY_TEXT);
modKeys = gsub(modKeys, "RSHIFT", RSHIFT_KEY_TEXT);
modKeys = gsub(modKeys, "LCTRL", LCTRL_KEY_TEXT);
modKeys = gsub(modKeys, "RCTRL", RCTRL_KEY_TEXT);
modKeys = gsub(modKeys, "LALT", LALT_KEY_TEXT);
modKeys = gsub(modKeys, "RALT", RALT_KEY_TEXT);
-- use the SHIFT code if they decide to localize the CTRL further. The token is CTRL_KEY_TEXT
if ( GetLocale() == "deDE") then
modKeys = gsub(modKeys, "CTRL", "STRG");
end
-- Only doing French for now since all the other languages use SHIFT, remove the "if" if other languages localize it
if ( GetLocale() == "frFR" ) then
modKeys = gsub(modKeys, "SHIFT", SHIFT_KEY_TEXT);
end
end
if ( returnAbbr ) then
if ( count > 1 ) then
return "·";
else
modKeys = gsub(modKeys, "CTRL", "c");
modKeys = gsub(modKeys, "SHIFT", "s");
modKeys = gsub(modKeys, "ALT", "a");
modKeys = gsub(modKeys, "STRG", "st");
end
end
Modifying GetBindingText() yourself is a bad idea. Expect tainting of the action bars if you do so. One solution would be to securely Hook "ActionButton_UpdateHotkeys", which is the function used by Blizzard to update the HotKey text in ActionButtons and that calls GetBindingText. Something like this might be enough: Code:
hooksecurefunc(ActionButton_UpdateHotkeys, function (self)
local hotkey = _G[self:GetName().."HotKey"]
hotkey:SetText(hotkey:GetText():replace("MAJ", "m"))
end)
|
|
|
|
|
|
#10 |
|
Member
Join Date: May 2006
Posts: 14
|
Ok thanks but where can I add this code?
__________________
|
|
|
|
![]() |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
All times are GMT. The time now is 04:09 PM.
WowAce Forums




sorry

