Repository navigation
Expand file tree
/
Copy pathCompat.lua
More file actions
81 lines (64 loc) · 2.2 KB
/
Copy pathCompat.lua
File metadata and controls
81 lines (64 loc) · 2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
if not _G then
_G = getfenv(0)
end
-- Retail names for what this client already has. Retail's Deprecated files
-- alias the old globals to the C_ functions; here the old globals are the
-- implementations.
C_Container.GetContainerNumSlots = GetContainerNumSlots
C_Container.PickupContainerItem = PickupContainerItem
C_CVar.GetCVar = GetCVar
C_CVar.GetCVarDefault = GetCVarDefault
C_CVar.RegisterCVar = RegisterCVar
C_KeyBindings = C_KeyBindings or {}
-- This client's binding list holds each action once.
function C_KeyBindings.GetBindingIndex(action)
for index = 1, GetNumBindings() do
if GetBinding(index) == action then
return index
end
end
return nil
end
-- This client has one binding context, so no action has a context of its
-- own.
function C_KeyBindings.GetBindingContextForAction(action)
return nil
end
-- This client has no custom binding types (retail's push-to-talk key).
function C_KeyBindings.GetCustomBindingType(bindingIndex)
return nil
end
C_ActionBar = C_ActionBar or {}
-- Retail answers per game type. This client always has a keyring.
function C_ActionBar.ShouldShowKeyring()
return true
end
-- C_AutoComplete's names come from the DLL. This client has no Battle.net
-- friends to give a presence ID for, and no other realm a name can address.
function C_AutoComplete.GetAutoCompletePresenceID(name)
return nil
end
function C_AutoComplete.GetAutoCompleteRealms()
return {}
end
-- C_ModelInfo's getters come from the DLL. Retail's active-scene bookkeeping
-- "does nothing in public clients" (its own documentation).
function C_ModelInfo.AddActiveModelScene(modelSceneFrame, modelSceneID)
end
function C_ModelInfo.AddActiveModelSceneActor(modelSceneFrameActor, modelSceneActorID)
end
function C_ModelInfo.ClearActiveModelScene(modelSceneFrame)
end
function C_ModelInfo.ClearActiveModelSceneActor(modelSceneFrameActor)
end
-- This client has no alternate player forms.
function C_PlayerInfo.GetAlternateFormInfo()
return false, false
end
-- Retail marks the settings added in the current version as new. Nothing in
-- this client is new.
function IsNewSettingInCurrentVersion(variable)
return false
end
function MarkNewSettingAsSeen(variable)
end