AIMP Forum

AIMP for Windows => Skin Editor, Skin Engine => Вопросы / Questions => Topic started by: edy g_a on October 28, 2022, 00:52:47

Title: questions about links in AimpSkinEditor v5.0
Post by: edy g_a on October 28, 2022, 00:52:47
hello, I have doubts about how to join some links, I have been looking in the forum and searching in the help but I can't find those links, I hope your help, thank you very much.

1) what would be the link to show
TASETexDisplayEx when pressing TASEButton, specifically I want that when pressing a button the letter is shown and also that when pressing the same button again the displayed letter is not shown.

2) what would be the link so that TASEAnimator is part of TASEVisualDisplay, specifically that at the moment of pressing VisualNext the animation is seen at the end of the predetermined visuals and not that this outside this one.

3) how can I make the TASEPageSelector display MusicLibraryWindow and PlaylistWindow, I want the PageSelector to have 2 options to activate each of the windows separately, the windows will be in the same location with the same size, so they will be activated according to what I want the music library window or the playlist window to be displayed.

sorry for the english I am using a translator thanks.
Title: Re: questions about links in AimpSkinEditor v5.0
Post by: Artem on October 28, 2022, 11:32:20
Hello,

1. Refer to the "Skin Structure \ Custom providers \ LogicalOperatorCounter \ Example: Active element toggle button" help topic
2. Can you explain your idea in more details?
3. TASEPageSelector binds with the TabControl service (this service provided by the TASELayoutTabbedGroup and TASETabControl elements). So, in your case, you need to bind the PageSelector with the TASELayoutTabbedGroup which page contains a dock site element for window.
Title: Re: questions about links in AimpSkinEditor v5.0
Post by: edy g_a on October 31, 2022, 07:43:51
1. honestly I already made this example when I attach it to the lyrics to show it, the links that the button has are (Button.action, state <-> lyricsboxfontscalingcontroller.Position) with the texture of 12 frames. The link of the lyrics is (TrackLyrics.visibility <-> lyricsboxfontscalingcontroller.Position) when placing it this way the TrackLyrics is visible and what I want is that it is not visible by default, when pressing the button nothing happens, I wonder what I will be doing wrong.

2. My question is badly formulated, I am sorry. I wanted that in the list of visualizations a gif is found, looking for more I realized that it is not possible to place another visual (like an image or a gif in this case) apart from those that are by default, so I will forget this option.

3. I can't understand it, if there is another method, how to activate these windows with buttons would be great, thanks for everything.
Title: Re: questions about links in AimpSkinEditor v5.0
Post by: Artem on November 03, 2022, 08:52:21
honestly I already made this example when I attach it to the lyrics to show it, the links that the button has are (Button.action, state <-> lyricsboxfontscalingcontroller.Position) with the texture of 12 frames. The link of the lyrics is (TrackLyrics.visibility <-> lyricsboxfontscalingcontroller.Position) when placing it this way the TrackLyrics is visible and what I want is that it is not visible by default, when pressing the button nothing happens, I wonder what I will be doing wrong.

Can you share an example?

My question is badly formulated, I am sorry. I wanted that in the list of visualizations a gif is found, looking for more I realized that it is not possible to place another visual (like an image or a gif in this case) apart from those that are by default, so I will forget this option.

Of course, I can made a plugin whose will display image instead of visualization, but is it really necessary?

3. I can't understand it, if there is another method, how to activate these windows with buttons would be great, thanks for everything.

I've attached a small example
Title: Re: questions about links in AimpSkinEditor v5.0
Post by: edy g_a on November 04, 2022, 22:17:24
Can you share an example?

well, I would like it to be like this (attached file) but as you see it does not perform the action of making visible, there is also the problem that the letter is visible when starting AIMP and what I want is the opposite. 

Of course, I can made a plugin whose will display image instead of visualization, but is it really necessary?

not, I had that doubt, now I know that it is not possible to include it from the editor so it is not necessary.
Thank you very much for your help.

I've attached a small example

thank you very much, now I understand it better.

Title: Re: questions about links in AimpSkinEditor v5.0
Post by: Artem on November 07, 2022, 13:58:48
You bind the button to LyricsBoxFontScalingController that designed to change the text zoom:
Code: [Select]
function GetResourceName(ScaleFactor: Integer): string;
begin
  Result := 'Skin.Fonts.TrackInfo.Lyrics.' + IntToStr(ScaleFactor);
end;

procedure Execute(var State: Integer);
begin
  if FindResource(GetResourceName(State)) = nil then
    State := 100;   
  FindObject('iwtTrackLyrics').Set('Font.ID', GetResourceName(State));
end;

Of course, it works incorrect for you case. It just resets to 100 if resource with new ID was not found in the repository.

I have replaced LyricsBoxFontScalingController with simple newly created LogicalOperatorCounter. Now it works as expected (I guess)