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

Method SetCloseAnimation

src/window.cpp:49–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void Window::SetCloseAnimation(int frames) {
50 if (frames > 0) {
51 closing = true;
52 animation_frames = frames;
53 animation_count = (height / 2.0);
54 animation_increment = - animation_count / frames;
55 } else {
56 SetVisible(false);
57 }
58}
59
60void Window::Draw(Bitmap& dst) {
61 if (width <= 0 || height <= 0) return;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected