pcca-matrix / PCCA-Layout

HyperSpin layout for Attract-Mode
GNU General Public License v3.0
7 stars 6 forks source link

Request: location option for wheel pointer #53

Closed ghost closed 2 years ago

ghost commented 3 years ago

The current style of the wheel pointer is a little weird but since you seem to like it's minimalism, I suggest adding a layout option for "Minimal" and "Normal" wheel position.

Something like this:

</ label="Wheel pointer position", help="Minimal or Nomral wheel pointer position", options="Minimal,Normal", order=M_order++ /> wheel_pointer_offset="Minimal"

local pointer_offset=0.99;  //minimal
local _duration = 180;
if (my_config["wheel_pointer_offset"] == "Normal") { 
    pointer_offset=0.93; 
    _duration = 80;
}

local point = fe.add_image("", flw*pointer_offset, flh*0.42, flw*0.10, flh*0.20);

if ( Ini_settings.wheel["type"] == "vertical") point.set_pos(flw*pointer_offset, flh*0.42, flw*0.10, flh*0.23);
point.alpha = 255;

local point_animation = PresetAnimation(point)
.auto(true)
.key("x").from(flw*pointer_offset).to(flw*0.90)
.duration(_duration)
.yoyo()

_duration is needed because 180 is too slow for a normal pointer position.

pcca-matrix commented 2 years ago

You can now set the position of all artworks and elements with the edit mode function.