Can anyone tell me where I can find an example of a cycler to use outside the options?
Thanks in advance
Printable View
Can anyone tell me where I can find an example of a cycler to use outside the options?
Thanks in advance
I put one in a custom ruleset I'm still developing. But I used RulesetWizard to create it. I use it for toggling through damage types associated with weapons and defenses. I can pull out the code if you want to see it.
Sure, you'd make me happy, if it's not too much trouble.
I would like it very much.
There are a couple in the combat tracker for each effect
Here's the snippet
I attached the complete xml file it is used it too.Code:<button_stringcycler name="protectionType">
<frame>
<name>fielddark</name>
<offset>0,0,0,0</offset>
</frame>
<bounds>300,31,32,25</bounds>
<parameters>
<defaultlabelres>sub_item_defense_protectionType_DefaultLabel</defaultlabelres>
<labelsres>sub_item_defense_protectionType_Label_B|sub_item_defense_protectionType_Label_E|sub_item_defense_protectionType_Label_S</labelsres>
<values>beam|electric|sonic</values>
</parameters>
</button_stringcycler>
Really ty LordEntrails!
However you have been of great help to me, believe me
;)
Is there a way to not use tags for initialization, leaving the task to the code?
Ok, nevermind. I've found this in CoreRPGAnD thisCode:<button_stringcycler name="cycler">
<anchored width="100">
<top offset="5" />
<left anchor="right" offset="-117" />
</anchored>
<font>optionbody</font>
<sourceless />
<script>
function onDragStart(button, x, y, draginfo)
return window.onDragStart(draginfo);
end
function onValueChanged()
window.onValueChanged();
end
</script>
</button_stringcycler>
Code:...
cycler.initialize(aCustom.labels, aCustom.values, aCustom.baselabel);
...
cycler.setStringValue(sValue);
...