Page 1 of 1

Randomizing the color used for the text in clickbars?

PostPosted: Wed Aug 21, 2013 9:45 pm
by Shadowandlight
This possible? Each toon that has a clickbar is currently using the same color

I would like this color to be randomized if possible?

Re: Randomizing the color used for the text in clickbars?

PostPosted: Wed Aug 21, 2013 10:10 pm
by Kaische
No, ISBoxer does not provide any random functions.

But you can use Click Bar Button Action to archive something similar.

1. Create a Mapped Key and give it a Hotkey
2. Add a Click Bar Button Action, change the target to your Slot 1 toon, choose the appropriate Click Bar + Button, check the field before color and change the color to red.
3. Add another Click Bar Button Action, this time with target Slot 2 and another color.
4. Repeat for every Slot/Toon with a different color.
5. Export

Re: Randomizing the color used for the text in clickbars?

PostPosted: Thu Aug 22, 2013 10:23 am
by Shadowandlight
thanks kai, i dont want to add a clickbar for every toon though...

I am loving the current clickbar setup, as I just made one clickbar and put in {character} so that it makes the name unique per client...

Maybe something Lax can add in the future.

Code:
<?xml version="1.0" encoding="utf-8"?>
<Box xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <ObjectType>ISBoxer_Toolkit.Configs.ClickBar</ObjectType>
  <SerializedObject>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;ClickBar xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
  &lt;Name&gt;Nameall&lt;/Name&gt;
  &lt;Description /&gt;
  &lt;X&gt;50&lt;/X&gt;
  &lt;Y&gt;-50&lt;/Y&gt;
  &lt;Alpha&gt;0.784313738&lt;/Alpha&gt;
  &lt;IconSize&gt;0&lt;/IconSize&gt;
  &lt;IconBorder&gt;0&lt;/IconBorder&gt;
  &lt;IconPadding&gt;0&lt;/IconPadding&gt;
  &lt;RowHeight&gt;100&lt;/RowHeight&gt;
  &lt;ColumnWidth&gt;800&lt;/ColumnWidth&gt;
  &lt;BackgroundColor&gt;
    &lt;Red&gt;0&lt;/Red&gt;
    &lt;Green&gt;0&lt;/Green&gt;
    &lt;Blue&gt;0&lt;/Blue&gt;
    &lt;Alpha&gt;255&lt;/Alpha&gt;
  &lt;/BackgroundColor&gt;
  &lt;Border&gt;0&lt;/Border&gt;
  &lt;CellBorder&gt;0&lt;/CellBorder&gt;
  &lt;CellBorder_Color&gt;
    &lt;Red&gt;255&lt;/Red&gt;
    &lt;Green&gt;70&lt;/Green&gt;
    &lt;Blue&gt;255&lt;/Blue&gt;
  &lt;/CellBorder_Color&gt;
  &lt;Rows&gt;1&lt;/Rows&gt;
  &lt;Columns&gt;1&lt;/Columns&gt;
  &lt;Buttons&gt;
    &lt;Button&gt;
      &lt;Enabled&gt;false&lt;/Enabled&gt;
      &lt;Name&gt;Name&lt;/Name&gt;
      &lt;BackgroundColor&gt;
        &lt;Red&gt;0&lt;/Red&gt;
        &lt;Green&gt;0&lt;/Green&gt;
        &lt;Blue&gt;0&lt;/Blue&gt;
        &lt;Alpha&gt;0&lt;/Alpha&gt;
      &lt;/BackgroundColor&gt;
      &lt;ClickActions&gt;
        &lt;ClickAction&gt;
          &lt;LeftRight&gt;Left&lt;/LeftRight&gt;
          &lt;Modifiers&gt;None&lt;/Modifiers&gt;
          &lt;Action&gt;
            &lt;RoundRobin&gt;false&lt;/RoundRobin&gt;
          &lt;/Action&gt;
        &lt;/ClickAction&gt;
      &lt;/ClickActions&gt;
      &lt;MouseOverAction&gt;
        &lt;LeftRight&gt;Left&lt;/LeftRight&gt;
        &lt;Modifiers&gt;None&lt;/Modifiers&gt;
        &lt;Action&gt;
          &lt;RoundRobin&gt;false&lt;/RoundRobin&gt;
        &lt;/Action&gt;
      &lt;/MouseOverAction&gt;
      &lt;ClickThrough&gt;true&lt;/ClickThrough&gt;
      &lt;Tooltip /&gt;
      &lt;Text&gt;{Character}&lt;/Text&gt;
      &lt;TextStyle&gt;
        &lt;Face&gt;Arial&lt;/Face&gt;
        &lt;Size&gt;75&lt;/Size&gt;
        &lt;Color&gt;
          &lt;Red&gt;255&lt;/Red&gt;
          &lt;Green&gt;255&lt;/Green&gt;
          &lt;Blue&gt;51&lt;/Blue&gt;
        &lt;/Color&gt;
        &lt;Bold&gt;false&lt;/Bold&gt;
      &lt;/TextStyle&gt;
    &lt;/Button&gt;
  &lt;/Buttons&gt;
&lt;/ClickBar&gt;</SerializedObject>
</Box>

Re: Randomizing the color used for the text in clickbars?

PostPosted: Thu Aug 22, 2013 5:32 pm
by Kaische
No, you don't have to add a Click Bar for every toon.

Just create 1 Click Bar as a placeholder and the Mapped Key i described changes the color "on-the-fly" for each toon individualy when you press the Hotkey.