Button states in template
I press the button and the action happens opening the thing but I noticed unlike another cog I use (different icons) pressing it doesn't result in a graphic change.
So then I tried the state/pressed combo - same thing nothing changed. Of course this is just a minor visual thing, was curious however.
Code:
<template name="button_charabiltiesdetail">
<buttoncontrol>
<anchored width="20"/>
<!-- <state icon="details_white" pressed="details_down" /> -->
<state>
<icon>details_white</icon>
</state>
<pressed>
<icon>details_down</icon>
</pressed>
<script>
function onButtonPress()
Interface.openWindow("charsheet_abilities_details", window.getDatabaseNode());
end
</script>
</buttoncontrol>
</template>