-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathConfig.lua
272 lines (194 loc) · 9.46 KB
/
Config.lua
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
----------------------
-- Dont touch this! --
----------------------
local addon, ns = ...
ns[1] = {} -- C, config
ns[2] = {} -- F, functions, constants, variables
ns[3] = {} -- G, globals (Optionnal)
ns[4] = {} -- T, ouf custom
local C, F, G, T = unpack(ns)
G.addon = "oUF_Ruri_"
G.myClass = select(2, UnitClass("player"))
local MediaFolder = "Interface\\AddOns\\oUF_Ruri\\Media\\"
------------
-- Global --
------------
C.UnitFrames = true -- enable Unitframes, ture = enable, false = disable / 啟用頭像,enable = 啟用,disable = 停用
C.RaidFrames = false -- enable Raidframes / 啟用團隊框架
C.PartyFrames = false
C.Nameplates = true -- enable Nameplates/ 啟用名條
-------------
-- Texture --
-------------
G.media = {
blank = MediaFolder.."dM3", -- "Interface\\Buttons\\WHITE8x8",
raidbar = MediaFolder.."Inner-Shadow.blp",
glow = MediaFolder.."glow.tga",
barhightlight = MediaFolder.."highlight.tga",
spark = MediaFolder.."spark.tga", -- "Interface\\UnitPowerBarAlt\\Generic1Player_Pill_Flash"
border = MediaFolder.."border.tga",
resting = MediaFolder.."resting.blp",
combat = MediaFolder.."combat.blp",
raidicon = MediaFolder.."raidicons.blp",
skull = MediaFolder.."RaidFrameDeathIcon.blp",
circle = MediaFolder.."crosshair_circle.blp",
arrows = MediaFolder.."crosshair_arrows.blp",
role = MediaFolder.."UI-LFG-ICON-PORTRAITROLES.blp", -- from matty texture
}
-----------
-- Fonts --
-----------
G.Font = STANDARD_TEXT_FONT -- general font / 字型
G.NameFS = 14 -- general font size / 字型大小
G.FontFlag = "OUTLINE" -- general font flag / 描邊 "OUTLINE" or none
G.NFont = MediaFolder.."myriadHW.ttf" -- number font for auras / 光環數字字型
G.NumberFS = 14
G.NPNameFS = 12 -- nameplate font size / 名條的字型
G.NPFont = MediaFolder.."Infinity Gears.ttf" -- number style nameplate health text font / 數字模式名條的血量字型
G.NPFS = 18 -- number style nameplate health text font size / 數字模式名條的血量字型大小
------------------------
-- UnitFrame settings --
------------------------
-- [[ UnitFrames ]] --
C.vertPlayer = true -- vertical player and pet frame / 直式玩家頭像
C.vertTarget = true -- vertical target and tot frame / 直式目標頭像
C.SimpleFocus = true -- simply show fucos as simple number style / 簡易的數字模式焦點框體
C.Boss = true -- enable boss frame
C.Arena = true -- enable arena frame
-- size
C.PWidth = 220 -- player/target/focus frame width / 主框體(血量條)寬度(玩家/目標/焦點)
C.TOTWidth = 120 -- targettarget/focusetarget/pet frame width / 副框體寬度(寵物/目標的目標/焦點目標)
C.BWidth = 160 -- arena/boss frame width / 首領和競技場寬度
C.PHeight = 26 -- frame height / 通用框體高度
C.PPHeight = 4 -- power bar height / 能量條高度
C.PPOffset = 6 -- power bar offset / 能量條向下偏移
C.buSize = 26 -- aura icon size for all frames except player debuff / 光環圖示大小
C.maxAura = 14 -- how many auras show / 顯示光環數量
-- options
C.PlayerDebuffs = true -- show debuffs acting on the player frame / 顯示自身減益
--C.Totems = false -- show player totems / 顯示玩家圖騰
C.TankResource = true -- show player main tank resource as class power / 以職業資源形式顯示坦克核心技能
C.Fade = true -- hide UFs when out of combat or not casting / 戰鬥外閒置狀態淡出頭象
C.FadeOutAlpha = 0 -- fade out value / 淡出值
--[[ castbar ]] --
-- options
C.StandaloneCastbar = false -- independent castbar for player and target / 獨立施法條
C.CastbarWidth = 200 -- castbar width, only can be config when not vertical unitframe / 橫式頭像時,獨立施法條的寬度
-- colors
-- NOTICE: this effect on BOTH unitframe standalone castbar and nameplates castbar.
C.CastNormal = {.6, .6, .6} -- 一般施法條顏色 / normal castbar color
C.CastFailed = {.5, .2, .2} -- 施法失敗顏色 / cast failed color
C.CastShield = {.9, 0, 1} -- 不可打斷施法條顏色 / non-InterruptibleColor castbar color
------------------------
-- RaidFrame settings --
------------------------
C.RWidth = 128 -- raid frame width
C.RHeight = 44 -- raid frame height
C.RPHeight = 2 -- raid frame power height
C.RSpace = 6 -- frame space
C.sAuSize = 18 -- corner small aura size
--C.bAuSize = 20 -- middle big aura size
C.RangeAlpha = 0.4 -- alpha for out of range units
C.PartyWidth = 162 -- raid frame width
C.PartyHeight = 44 -- raid frame height
C.PartyPHeight = 2 -- raid frame power height
C.PartySpace = 6
C.PartyBuffSize = 22
------------------------
-- Nameplate settings --
------------------------
C.NumberStyle = true -- number style nameplates / 數字模式的名條
-- Number style nameplate config
C.NPCastIcon = 32 -- number style nameplate cast icon size / 數字模式的施法圖示大小
-- Bar style nameplate config
C.NPWidth = 110 -- nameplate frame width / 名條寬度
C.NPHeight = 8 -- nameplate frame height / 名條高度
-- auras
C.ShowAuras = true -- show auras / 顯示光環
C.Auranum = 5 -- how many aura show / 顯示光環數量
C.AuraSize = 20 -- aura icon size / 光環大小
-- colors
C.friendlyCR = true -- friendly unit class color / 友方職業染色
C.enemyCR = true -- enemy unit class color / 敵方職業染色
C.HLTarget = true -- highlight target and focus / 高亮目標和焦點
C.HLMouseover = true -- highlight mouseover / 高亮滑鼠指向
-- options
C.Crosshairs = true
-- [[ player plate ]] --
C.PlayerPlate = false -- enable player plate / 玩家名條(個人資源)
C.NumberstylePP = false -- number style player plate / 數字模式的玩家名條
C.PlayerBuffs = true -- show player buff on player plate / 顯示自身增益
C.PlayerNPWidth = 180 -- player plate width
--[[ nameplates cvar ]] --
C.Inset = true -- Let Nameplates don't go off screen / 名條貼齊畫面邊緣
C.MaxDistance = 45 -- Max distance for nameplate show on / 名條顯示的最大距離
C.SelectedScale = 1 -- Scale select target nameplate / 縮放當前目標的名條大小
C.MinAlpha = 1 -- Set fadeout for out of range and non-target / 非當前目標與遠距離名條的透明度
-----------------------
-- Position settings --
-----------------------
C.Position = { -- 各元素座標 / Elements positions
-- [[ 直式 / vertical ]] --
VPlayer = {"CENTER", -340, 0},
VPet = {"TOPRIGHT", "oUF_Player", "TOPLEFT", -C.PHeight, 0},
VTarget = {"CENTER", 340, 0},
VTOT = {"TOPLEFT", "oUF_Target", "TOPRIGHT", C.PHeight, 0},
-- [[ 橫式 / horizontal ]] --
Player = {"CENTER", -360, -180},
Pet = {"TOPLEFT", "oUF_Player", "BOTTOMLEFT", 0, -(C.PHeight + C.PPOffset * 2)},
Target = {"CENTER", 360, -180},
TOT = {"TOPRIGHT", "oUF_Target", "BOTTOMRIGHT", 0, -(C.PHeight + C.PPOffset * 2)},
-- [[ 焦點 / focus ]] --
-- 橫式目標時,焦點與焦點目標座標 / focus and fot position when horizontal target frame.
Focus = {"CENTER", 360, 0},
FOT = {"TOPRIGHT", "oUF_Focus", "BOTTOMRIGHT", 0, -(C.PHeight + C.PPOffset * 2)},
-- 直式目標時,焦點與焦點目標座標 / focus and fot position when vertical target frame.
VFocus = {"CENTER", 0, -250},
VFOT = {"LEFT", "oUF_Focus", "RIGHT", C.PPOffset * 2, 0},
-- 橫式的簡易焦點目標 / simple style focus postion
SFOT = {"TOPLEFT", "oUF_Focus", "BOTTOMLEFT", 0, -C.PPOffset},
-- [[ other / 其他 ]] --
Boss = {"LEFT", 10, 80},
Arena = {"LEFT", 10, 80},
-- [[ Groups / 團隊 ]] --
--Party = {},
--Raid = {},
Groups = {"CENTER", UIParent, 570, 120},
-- [[ 玩家個人資源 / player plate ]] --
PlayerPlate = {"CENTER", 0, -200},
-- [[ 獨立施法條 / standalone castbar ]] --
PlayerCastbar = {"LEFT", "oUF_Player", "RIGHT", C.PPOffset, 0},
TargetCastbar = {"RIGHT", "oUF_Target", "LEFT", -C.PPOffset, 0},
FocusCastbar = {"RIGHT", "oUF_Focus", "LEFT", -C.PPOffset, 0},
VPlayerCastbar = {"BOTTOMLEFT", "oUF_Player", "BOTTOMRIGHT", C.buSize + C.PPOffset + C.PHeight, 0},
VTargetCastbar = {"BOTTOMRIGHT", "oUF_Target", "BOTTOMLEFT", -(C.buSize*2 + C.PPOffset*2 + C.PHeight), 0},
VFocusCastbar = {"TOPLEFT", "oUF_Focus", "BOTTOMLEFT", 0, -C.PPOffset * 3}
}
-------------
-- Credits --
-------------
-- NDui by Siweia
-- unitframes
-- https://github.com/siweia/NDui/tree/master/Interface/AddOns/NDui/Modules/UFs
-- spell list
-- https://github.com/siweia/NDui/blob/master/Interface/AddOns/NDui/Config/Nameplate.lua
-- AltzUI by Paopao
-- unitframes
-- https://github.com/Paojy/Altz-UI/tree/master/Interface/AddOns/AltzUI/mods/unitframes
-- oUF Mlight
-- https://www.wowinterface.com/downloads/info21095-oUF_Mlight.html
-- oUF Farva
-- https://github.com/scrable/oUF_Farva
-- oUF Slim
-- https://www.wowinterface.com/downloads/info12972-oUF_Slim.html
-- oUF Skaarj
-- https://www.wowinterface.com/downloads/info20211-oUFSkaarj.html
-- Infinity Plates by Dawn
-- https://www.wowinterface.com/downloads/info19881-InfinityPlates.html
-- SpecialTotemBar and oUF_TankResource by HopeASD
-- [oUF] 1.5版 oUF系插件 通用说明 (FD)
-- https://nga.178.com/read.php?tid=4107042
-- [oUF][最基础扫盲][初稿完工!]以Ouf_viv5为例,不完全不专业注释
-- https://nga.178.com/read.php?tid=4184224
-- [未完成]oUF系列头像编写教程
-- https://bbs.nga.cn/read.php?tid=7212677