Skip to content

Commit 94261f8

Browse files
authored
Merge pull request kuertee#32 from mycumycu/feature/spacey-ui-callbacks
Add Spacey UI callbacks
2 parents 01f1eed + 3e0e2c8 commit 94261f8

File tree

4 files changed

+12620
-2
lines changed

4 files changed

+12620
-2
lines changed

ui/addons/ego_detailmonitor/menu_map.xpl

+19-1
Original file line numberDiff line numberDiff line change
@@ -9010,6 +9010,15 @@ function menu.createPropertyRow(instance, ftable, component, iteration, commande
90109010
-- kuertee end: callback
90119011

90129012
end
9013+
9014+
-- kuertee start: callback
9015+
if menu.uix_callbacks ["createPropertyRow_before_config_change"] then
9016+
for uix_id, uix_callback in pairs (menu.uix_callbacks ["createPropertyRow_before_config_change"]) do
9017+
uix_callback (config)
9018+
end
9019+
end
9020+
-- kuertee end: callback
9021+
90139022
if (currentordericon ~= "") or isdocked then
90149023
local col = 4 + maxicons
90159024
if isdocked then
@@ -9025,7 +9034,16 @@ function menu.createPropertyRow(instance, ftable, component, iteration, commande
90259034
col = col - 1
90269035
end
90279036
end
9028-
-- shieldhullbar
9037+
9038+
-- kuertee start: callback
9039+
if menu.uix_callbacks ["createPropertyRow_after_config_change"] then
9040+
for uix_id, uix_callback in pairs (menu.uix_callbacks ["createPropertyRow_after_config_change"]) do
9041+
uix_callback (config)
9042+
end
9043+
end
9044+
-- kuertee end: callback
9045+
9046+
-- shieldhullbar
90299047
row[5 + maxicons]:createObjectShieldHullBar(component)
90309048
end
90319049

ui/addons/ego_detailmonitor/menu_playerinfo.xpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1571,7 +1571,7 @@ function menu.createInfoFrame()
15711571
-- kuertee start: callback
15721572
if menu.uix_callbacks ["createInfoFrame_on_start"] then
15731573
for uix_id, uix_callback in pairs (menu.uix_callbacks ["createInfoFrame_on_start"]) do
1574-
uix_callback (menu.infoFrame, tableProperties)
1574+
uix_callback (menu.infoFrame, tableProperties, config)
15751575
end
15761576
end
15771577
-- kuertee end: callback

0 commit comments

Comments
 (0)