-
November 5th, 2024, 19:51 #11
- Join Date
- Feb 2021
- Posts
- 409
So this is what I can up with, found this in the ct_host_entry_section.xml file
<windowclass name="ct_effect">
<margins control="0,0,0,2" />
<script file="ct/scripts/ct_effect.lua" />
<sheetdata>
<base_ct_effect name="base" />
<anchor_ct_effect_left name="leftanchor" />
<button_ct_effect_isactive name="isactive" />
<button_ct_effect_isgmonly name="isgmonly" />
<anchor_ct_effect_right name="rightanchor" />
<button_ct_effect_idelete name="idelete">
<script>
function onButtonPress()
if getValue() == 0 then
if window.delete then
window.delete();
else
effectNode = window.getDatabaseNode();
sEffectName = DB.getValue(effectNode,"label","");
--DB.deleteNode(window.getDatabaseNode());
end
end
end
</script>
</button_ct_effect_idelete>
<button_ct_effect_targetadd name="targeting_add_button" />
<number_ct_effect_init name="init" />
<number_ct_effect_duration name="duration" />
<string_ct_effect name="label" />
<hs_ct_effect_source name="source_name" />
<string_ct_effect_source name="source" />
<string_ct_effect_targets name="target_summary" />
</sheetdata>
</windowclass>
-
November 5th, 2024, 20:00 #12
So, are you saying you're now going to do your customizations within that FG XML based code? If all you want to do is run code when an effect is deleted through the FG GUI delete button then that will work - but effects could also be deleted via the right-click menu, effects get deleted when they expire and possibly other events; coding here wouldn't run for anything other than using the delete button in the CT.
Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks