Pixel-Composer/objects/o_dialog_patreon/Create_0.gml

27 lines
643 B
Text
Raw Normal View History

2024-11-14 03:41:05 +01:00
/// @description init
event_inherited();
#region data
dialog_w = ui(480);
dialog_h = ui(200);
title_height = ui(28);
destroy_on_click_out = false;
req_sign_in = "";
2024-11-14 07:31:22 +01:00
req_auth = "";
2024-11-14 03:41:05 +01:00
2024-11-14 07:31:22 +01:00
attmp = 0;
do {
port = irandom_range(7000, 20000);
server = network_create_server_raw(network_socket_ws, port, 32);
} until(server >= 0 || attmp++ >= 100);
2024-11-14 03:41:05 +01:00
2024-11-14 09:19:03 +01:00
if(!IS_PATREON) {
var _url = @"www.patreon.com/oauth2/authorize?response_type=code
&client_id=oZ1PNvUY61uH0FiA7ZPMBy77Xau3Ok9tfvsT_Y8DQwyKeMNjaVC35r1qsK09QJhY
&redirect_uri=https://pixel-composer.com/verify";
_url += $"&state={port}";
url_open(_url);
}
2024-11-14 03:41:05 +01:00
#endregion