Skip to content

Instantly share code, notes, and snippets.

@redj
Created April 22, 2019 01:28
Show Gist options
  • Save redj/52e34f8a486970b4f7dd9170b1822421 to your computer and use it in GitHub Desktop.
Save redj/52e34f8a486970b4f7dd9170b1822421 to your computer and use it in GitHub Desktop.
import IMPORT_STATIC "ecere"
Black black { };
class Screen : GuiApplication
{
fullScreen = true;
}
class Black : Window
{
background = black;
anchor = { top = 0, left = 0, bottom = 0, right = 0 };
bool OnLeftButtonDown(int x, int y, Modifiers mods)
{
Destroy(0);
return true;
}
bool OnKeyDown(Key key, unichar ch)
{
Destroy(0);
return true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment