
30-06-2024, 12:24
|
 |
Registered User
|
|
Join Date: Feb 2013
Location: Algeria
Posts: 168
Thanks: 486
Thanked 202 Times in 122 Posts
|
|
Quote:
Originally Posted by CrownRepack
Hi, in the Steam Limitless installer, i noticed something that i like, that is the animation of the game info, when the button is clicked, the game info expands downwards pushing the other tabs down too, anyone can help me with identifying which code is responsible for that, i want to implement it into my installer.
I tried copying the code of one of the animations and changing it according to my installer, the animation works, but then it doesnt push anything in its way downwards like in Steam Limitless installer. I can't figure it out. Thanks in advanced!
|
Code:
//About Game Button
TObject(Button[2].GetObject): begin
SectionContent[1].Visible(True);
SectionContent[2].Visible(False);
Button[3].Enabled(False);
if GameInfoSection[1].GetHeight = 0 then begin
AnimSection[1].SetValues(0, 150);
TabAnim.SetValues(70, 230);
end else if GameInfoSection[1].GetHeight = 150 then begin
AnimSection[1].SetValues(150, 0);
TabAnim.SetValues(230, 70);
Button[3].Enabled(True);
end;
AnimSection[1].Enabled(True);
TabAnim.Enabled(True);
end;
|