This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdio> | |
#define UNICODE | |
#define NOMINMAX | |
#define WIN32_NO_STATUS | |
#define WIN32_LEAN_AND_MEAN | |
#define _WIN32_WINNT 0x0A00 | |
#include <windows.h> | |
#include <windowsx.h> | |
#undef WIN32_NO_STATUS | |
#include <ntstatus.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdio> | |
#define UNICODE | |
#define NOMINMAX | |
#define WIN32_NO_STATUS | |
#define WIN32_LEAN_AND_MEAN | |
#define _WIN32_WINNT 0x0A00 | |
#include <windows.h> | |
#include <windowsx.h> | |
#undef WIN32_NO_STATUS | |
#include <ntstatus.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
-- Element tree | |
-- | |
local screenWidth, screenHeight = guiGetScreenSize() | |
local function getCenteredPosition(width, height) | |
return (screenWidth - width) / 2, (screenHeight - height) / 2 | |
end | |
local function createChildrenStack(element) |