MCPcopy Create free account
hub / github.com/EasyRPG/Player / SetOpenAnimation

Method SetOpenAnimation

src/window.cpp:35–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35void Window::SetOpenAnimation(int frames) {
36 closing = false;
37 SetVisible(true);
38
39 if (frames > 0) {
40 animation_frames = frames;
41 animation_count = 0.0;
42 animation_increment = (height / 2.0) / frames;
43 }
44 else {
45 animation_frames = 0;
46 }
47}
48
49void Window::SetCloseAnimation(int frames) {
50 if (frames > 0) {

Callers 3

ContinueMethod · 0.80
CreateCommandWindowMethod · 0.80
ShowGoldWindowMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected