@@ -207,6 +207,24 @@ local SkillsTabClass = newClass("SkillsTab", "UndoHandler", "ControlHost", "Cont
207
207
return self .displayGroup .source ~= nil
208
208
end
209
209
210
+ self .controls .sourceNote = new (" LabelControl" , { " TOPLEFT" , self .controls .groupLabel , " TOPLEFT" }, { 0 , 30 + 28 , 0 , 16 })
211
+ self .controls .sourceNote .shown = function ()
212
+ return self .displayGroup .explodeSources ~= nil
213
+ end
214
+
215
+ self .controls .sourceNote .label = function ()
216
+ local label
217
+ if self .displayGroup .explodeSources then
218
+ label = [[ ^7This is a special group created for the enemy explosion effect,
219
+ which comes from the following sources:]]
220
+ for _ , source in ipairs (self .displayGroup .explodeSources ) do
221
+ label = label .. " \n\t " .. colorCodes [source .rarity or " NORMAL" ] .. (source .name or source .dn or " ???" )
222
+ end
223
+ label = label .. " ^7\n You cannot delete this group, but it will disappear if you lose the above sources."
224
+ end
225
+ return label
226
+ end
227
+
210
228
-- Scroll bar
211
229
self .controls .scrollBarH = new (" ScrollBarControl" , nil , {0 , 0 , 0 , 18 }, 100 , " HORIZONTAL" , true )
212
230
@@ -603,7 +621,7 @@ function SkillsTabClass:CreateGemSlot(index)
603
621
end )
604
622
end
605
623
slot .delete .shown = function ()
606
- return index <= # self .displayGroup .gemList + 1
624
+ return index <= # self .displayGroup .gemList + 1 and self . displayGroup . explodeSources == nil
607
625
end
608
626
slot .delete .enabled = function ()
609
627
if index == 1 and self .displayGroup and (self .displayGroup .sourceItem or self .displayGroup .sourceNode ) then
0 commit comments