Author Topic: Animating GUI  (Read 792 times)

How would you make a GUI that animates without GIFs? like videos and stuff.

There's a GUI control, I believe it's AVIControl or something that allows you to play videos, but it's a bad thing to use generally because it doesn't care what it's parented to. As in, if you make it on another window, it won't move with the window.

I don't think that control works at all. Just use a bitmap control and have it change the image shown a couple times pet second

It is called GuiAnimatedBitmapCtrl.

The code below is taken from GUI Replacer.
Code: [Select]
new GuiAnimatedBitmapCtrl() {
profile = "WSG_DefaultProfile";
horizSizing = "center";
vertSizing = "bottom";
position = "50 0";
extent = "382 182";
minExtent = "8 2";
visible = "1";
bitmap = "Add-Ons/System_GuiReplacer/ui/GUIReplacerLogoAni";
wrap = "0";
lockAspectRatio = "1";
alignLeft = "0";
overflowImage = "0";
keepCached = "0";
framesPerSecond = "15";
numFrames = "94";
skipFrames = "0";
};

It is called GuiAnimatedBitmapCtrl.

The code below is taken from GUI Replacer.
Code: [Select]
new GuiAnimatedBitmapCtrl() {
profile = "WSG_DefaultProfile";
horizSizing = "center";
vertSizing = "bottom";
position = "50 0";
extent = "382 182";
minExtent = "8 2";
visible = "1";
bitmap = "Add-Ons/System_GuiReplacer/ui/GUIReplacerLogoAni";
wrap = "0";
lockAspectRatio = "1";
alignLeft = "0";
overflowImage = "0";
keepCached = "0";
framesPerSecond = "15";
numFrames = "94";
skipFrames = "0";
};

For that I'd assume you're making an image for each frame and naming them like, GUIReplacerLogoAni1, GUIReplacerLogoAni2, etc, and set numFrames to whatever the amount of animages you have is.

For that I'd assume you're making an image for each frame and naming them like, GUIReplacerLogoAni1, GUIReplacerLogoAni2, etc, and set numFrames to whatever the amount of animages you have is.
Spot on.