forked from FAForever/fa
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommandgraphparams.lua
More file actions
195 lines (183 loc) · 8.65 KB
/
commandgraphparams.lua
File metadata and controls
195 lines (183 loc) · 8.65 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
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
-- Lists the textures and colors used to draw the command graph
-- waypoints and order lines.
--
-- If any value is not supplied for a particular type of order but
-- there is an 'inherit_from' key, the value is inherited from the
-- order named by the inherit_from key. If there is no inherit_from
-- key, the 'default' entry is used.
--
-- Note: because of the way order lines are rendered, they can't use
-- the texture batcher, so having different textures for order lines
-- is very expensive. Only do it if necessary.
CommandGraphParams = {
default = {
orderline_texture = '/textures/ui/common/game/orderline/orderline_generic.dds',
orderline_uv_aspect_ratio = 1.0,
orderline_anim_rate = 0.0,
orderline_color = '3300ffff',
orderline_selected_color = 'dd00ffff',
orderline_highlight_color = 'ff47ffff',
orderline_glow = 0.0,
orderline_selected_glow = 0.06,
orderline_highlight_glow = 0.12,
waypoint_color = '44ffffff',
waypoint_selected_color = '88ffffff',
waypoint_highlight_color = 'ffffffff',
waypoint_scale = 1,
waypoint_selected_scale = 1,
waypoint_highlight_scale = 1,
arrowhead_cap_offset = -0.1,
},
-- Attack Orders
default_AttackColors = {
orderline_color = '33ff0000',
orderline_selected_color = 'ddff0000',
orderline_highlight_color = 'ffff4444',
},
UNITCOMMAND_Attack = {
inherit_from = 'default_AttackColors',
waypoint_texture = '/textures/ui/common/game/waypoints/attack_btn_up.dds',
arrowhead_texture = '/textures/ui/common/game/orderline/orderline_arrow04.dds',
},
UNITCOMMAND_Retaliate = {inherit_from = 'UNITCOMMAND_Attack'},
UNITCOMMAND_FormAttack = {inherit_from = 'UNITCOMMAND_Attack'},
UNITCOMMAND_OverCharge = {inherit_from = 'UNITCOMMAND_Attack'},
UNITCOMMAND_Tactical = {inherit_from = 'UNITCOMMAND_Attack'},
UNITCOMMAND_Script = {inherit_from = 'UNITCOMMAND_Attack'},
UNITCOMMAND_AggressiveMove = {
inherit_from = 'default_AttackColors',
orderline_texture = '/textures/ui/common/game/orderline/orderline_arrow02.dds',
orderline_anim_rate = 0.25,
orderline_uv_aspect_ratio = 0.2,
waypoint_texture = '/textures/ui/common/game/waypoints/attack_move_btn_up.dds',
arrowhead_texture = '/textures/ui/common/game/orderline/orderline_arrow04.dds',
},
UNITCOMMAND_FormAggressiveMove = {inherit_from = 'UNITCOMMAND_AggressiveMove',},
UNITCOMMAND_Nuke = {
inherit_from = 'default_AttackColors',
waypoint_texture = '/textures/ui/common/game/waypoints/nuke_btn_up.dds',
arrowhead_texture = '/textures/ui/common/game/orderline/orderline_arrow04.dds',
},
-- Move Orders
default_MoveColors = {
orderline_color = '3300ffff',
orderline_selected_color = 'dd00ffff',
orderline_highlight_color = 'ff47ffff',
},
UNITCOMMAND_Move = {
inherit_from = 'default_MoveColors',
waypoint_texture = '/textures/ui/common/game/waypoints/move_btn_up.dds',
arrowhead_texture = '/textures/ui/common/game/orderline/orderline_arrow04.dds',
},
UNITCOMMAND_FormMove = {inherit_from = 'UNITCOMMAND_Move'},
UNITCOMMAND_CoordinatedMove = {inherit_from = 'UNITCOMMAND_Move'},
UNITCOMMAND_Patrol = {
inherit_from = 'default_MoveColors',
orderline_texture = '/textures/ui/common/game/orderline/orderline_arrow02.dds',
orderline_anim_rate = 0.25,
orderline_uv_aspect_ratio = 0.2,
waypoint_texture = '/textures/ui/common/game/waypoints/patrol_btn_up.dds',
arrowhead_texture = '/textures/ui/common/game/orderline/orderline_arrow04.dds',
},
UNITCOMMAND_FormPatrol = {inherit_from = 'UNITCOMMAND_Patrol'},
-- Transport Orders
default_TransportColors = {
orderline_color = 'aa654bc2',
orderline_selected_color = 'dd654bc2',
orderline_highlight_color = 'ff7558e2',
},
UNITCOMMAND_TransportLoadUnits = {
inherit_from = 'default_TransportColors',
waypoint_texture = '/textures/ui/common/game/waypoints/load_btn_up.dds',
arrowhead_texture = '/textures/ui/common/game/orderline/orderline_arrow04.dds',
},
UNITCOMMAND_TransportReverseLoadUnits = {inherit_from = 'UNITCOMMAND_TransportLoadUnits'},
UNITCOMMAND_TransportUnloadUnits = {
inherit_from = 'default_TransportColors',
waypoint_texture = '/textures/ui/common/game/waypoints/unload_btn_up.dds',
arrowhead_texture = '/textures/ui/common/game/orderline/orderline_arrow04.dds',
},
UNITCOMMAND_TransportUnloadSpecificUnits = {inherit_from = 'UNITCOMMAND_TransportUnloadUnits'},
UNITCOMMAND_DetachFromTransport = {inherit_from = 'UNITCOMMAND_TransportUnloadUnits'},
UNITCOMMAND_AssistMove = {inherit_from = 'UNITCOMMAND_TransportUnloadUnits'},
UNITCOMMAND_Ferry = {
inherit_from = 'default_TransportColors',
orderline_texture = '/textures/ui/common/game/orderline/orderline_arrow-big.dds',
orderline_anim_rate = 0.20,
orderline_uv_aspect_ratio = 0.50,
waypoint_texture = '/textures/ui/common/game/waypoints/ferry_btn_up.dds',
arrowhead_texture = '/textures/ui/common/game/orderline/orderline_arrow04.dds',
},
UNITCOMMAND_Teleport = {
inherit_from = 'default_TransportColors',
waypoint_texture = '/textures/ui/common/game/waypoints/teleport_btn_up.dds',
arrowhead_texture = '/textures/ui/common/game/orderline/orderline_arrow04.dds',
},
-- Engineering Orders
default_EngineeringColors = {
orderline_color = '33ffff00',
orderline_selected_color = 'ddffff00',
orderline_highlight_color = 'ffffff44',
},
-- Factory Sharing the queue of another factory
UNITCOMMAND_BuildAssist = {inherit_from = 'default_EngineeringColors'},
-- Enginer construction
UNITCOMMAND_BuildMobile = {
inherit_from = 'default_EngineeringColors',
waypoint_texture = '/textures/ui/common/game/waypoints/repair_btn_up.dds',
arrowhead_texture = '/textures/ui/common/game/orderline/orderline_arrow04.dds',
},
UNITCOMMAND_Guard = {
inherit_from = 'default_EngineeringColors',
waypoint_texture = '/textures/ui/common/game/waypoints/guard_btn_up.dds',
arrowhead_texture = '/textures/ui/common/game/orderline/orderline_arrow04.dds',
},
UNITCOMMAND_Reclaim = {
inherit_from = 'default_EngineeringColors',
waypoint_texture = '/textures/ui/common/game/waypoints/reclaim_btn_up.dds',
arrowhead_texture = '/textures/ui/common/game/orderline/orderline_arrow04.dds',
},
UNITCOMMAND_Repair = {
inherit_from = 'default_EngineeringColors',
waypoint_texture = '/textures/ui/common/game/waypoints/repair_btn_up.dds',
arrowhead_texture = '/textures/ui/common/game/orderline/orderline_arrow04.dds',
},
UNITCOMMAND_Dock = {
inherit_from = 'default_EngineeringColors',
waypoint_texture = '/textures/ui/common/game/waypoints/repair_btn_up.dds',
arrowhead_texture = '/textures/ui/common/game/orderline/orderline_arrow04.dds',
},
UNITCOMMAND_Capture = {
inherit_from = 'default_EngineeringColors',
waypoint_texture = '/textures/ui/common/game/waypoints/convert_btn_up.dds',
arrowhead_texture = '/textures/ui/common/game/orderline/orderline_arrow04.dds',
},
-- Special Orders
default_SpecialColors = {
orderline_color = '3300ff00',
orderline_selected_color = 'dd00ff00',
orderline_highlight_color = 'ff44ff44',
},
UNITCOMMAND_Sacrifice = {
inherit_from = 'default_SpecialColors',
waypoint_texture = '/textures/ui/common/game/waypoints/sacrifice_btn_up.dds',
arrowhead_texture = '/textures/ui/common/game/orderline/orderline_arrow04.dds',
},
UNITCOMMAND_OverCharge = {
inherit_from = 'default_SpecialColors',
waypoint_texture = '/textures/ui/common/game/waypoints/attack_btn_up.dds',
arrowhead_texture = '/textures/ui/common/game/orderline/orderline_arrow04.dds',
},
-- These are here if they need to be used in the future
-- They are not displayed right now
UNITCOMMAND_Dive = {inherit_from = 'default'},
UNITCOMMAND_Stop = {inherit_from = 'default'},
UNITCOMMAND_Land = {inherit_from = 'default'},
UNITCOMMAND_Upgrade = {inherit_from = 'default'},
UNITCOMMAND_Script = {inherit_from = 'default'},
UNITCOMMAND_AssistCommander = {inherit_from = 'default'},
UNITCOMMAND_KillSelf = {inherit_from = 'default'},
UNITCOMMAND_DestroySelf = {inherit_from = 'default'},
UNITCOMMAND_BuildSilo = {inherit_from = 'default'},
UNITCOMMAND_BuildFactory = {inherit_from = 'default'},
}