Animation in the menu?

Post a reply

This question is a means of preventing automated form submissions by spambots.
:D :) :( :o :shock: :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: :angel: :angry: :beer: :bfg: :chaingun: :cheers: :blergh:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review

If you wish to attach one or more files enter the details below.

Expand view Topic review: Animation in the menu?

Re: Animation in the menu?

by Blzut3 » Sat May 23, 2020 21:50

The problem is the menu code is currently written to draw the frame in response to user input as well as few other specific conditions. So if you get animations to work it's mostly going to be coincidental that it works.

There are plans to rewrite the menu code again since this same limit causes other issues like OBS and other screen recorders not capturing the menus correctly, or in multiplayer users can't bring up the menu without pausing the game for everyone.

Animation in the menu?

by enderandrew » Sat May 23, 2020 21:08

The pistol cursor/selector is animated by default.

I was looking at various ECWolf mods and I saw one that had multiple episode images which seemed to imply they were animating the frames but I didn't see any code in that mod to actually animate them.

Having six episode icons animating at one would probably be distracting, though if you only did one it might not be too much. The mod had identical frames for the first 5 episodes and only really had different frames for episode 6. I wanted to experiment and see what it would look like, but I'm not sure how to make it work.

I was trying an entry in ANIMDEFS

texture optional M_EPIS6
pic M_EPIS6 tics 3
pic M_EPIS6B tics 3
pic M_EPIS6C tics 3
pic M_EPIS6D tics 3

But that doesn't work. Though what I think might be even nicer would be to have a second image for episodes and difficulties that would appear briefly as you selected it like an onclick event.

Is there any way to achieve something like that?