BRT Community

General Category => Discussion - EVE => Topic started by: Jonathan on July 13, 2023, 08:32:24 AM

Title: Scale down the Spinner Widget
Post by: Jonathan on July 13, 2023, 08:32:24 AM
Hi,

is there a way to make the spinner widget smaller than the widget allows?
Code: [Select]
CMD_SPINNER(204, 283, 0, 0) in this command 0 is the smallest value for the scale, but I want it to be even smaller. Is there a way to do this or do I have to build my own spinner?

Best
Jonathan
Title: Re: Scale down the Spinner Widget
Post by: BRT Community on July 14, 2023, 03:12:28 PM
Hello,

I am not aware if it is possible to scale below that value, but I can contact our software team to confirm.

What style of spinner are you looking for?

Best regards

BRT Community
Title: Re: Scale down the Spinner Widget
Post by: Jonathan on July 31, 2023, 06:59:42 AM
Hey,

that would be great!
I use style 0 and 3 spinners.

Best
Jonathan
Title: Re: Scale down the Spinner Widget
Post by: BRT Community on August 04, 2023, 01:43:18 PM
Hello,

I will contact our software team for confirmation and provide you with an update soon.

What type of application are you creating with the spinner widget?

Best regards

BRT Community
Title: Re: Scale down the Spinner Widget
Post by: Cyrilou on November 27, 2023, 05:11:49 PM
Hi,

Any update on this?

Size of spinner depends from the size of the display. Is there a workaround to modify height and/or width temporarly to reduce its size?
Title: Re: Scale down the Spinner Widget
Post by: BRT Community on November 28, 2023, 04:24:00 PM
Hello,

Yes unfortunately, you would need to create your own spinner widget if you wish to scale it.

Below we have the raw code output for a given CMD_SPINNER (CMD_SPINNER(533, 251, 0, 0)) command:
Code: [Select]
CLEAR(1, 1, 1)
VERTEX_FORMAT(2)
POINT_SIZE(240)
BEGIN(POINTS)
COLOR_A(64)
VERTEX2F(1604, 1143)
VERTEX2F(1731, 1091)
VERTEX2F(1783, 964)
VERTEX2F(1731, 836)
VERTEX2F(1604, 784)
VERTEX2F(1476, 836)
VERTEX2F(1424, 964)
VERTEX2F(1476, 1091)
MACRO(0)
MACRO(1)

You can adjust the point sizes via the POINT_SIZE command and alter the vertex commands to reposition the sippner dots.

The MACRO(0) register is updated with the COLOR_A command scaling from 255 - 128 - 64 - 0 and the MACRO(1) register is updated with the vertex point of the dot you wish to highlight in the spinner animation.

Best Regards,
BRT Community