FAQ  •  Register  •  Login

Randomizing the color used for the text in clickbars?

Moderator: MiRai

<<

Shadowandlight

Posts: 157

Joined: Sun Apr 07, 2013 1:40 am

Post Wed Aug 21, 2013 9:45 pm

Randomizing the color used for the text in clickbars?

This possible? Each toon that has a clickbar is currently using the same color

I would like this color to be randomized if possible?
<<

Kaische

Posts: 167

Joined: Sat Jan 08, 2011 12:11 am

Location: Germany

Post Wed Aug 21, 2013 10:10 pm

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

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
<<

Shadowandlight

Posts: 157

Joined: Sun Apr 07, 2013 1:40 am

Post Thu Aug 22, 2013 10:23 am

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

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>
<<

Kaische

Posts: 167

Joined: Sat Jan 08, 2011 12:11 am

Location: Germany

Post Thu Aug 22, 2013 5:32 pm

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

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.

Return to Click Bars

Who is online

Users browsing this forum: No registered users and 0 guests