This commit is contained in:
Tanasart 2024-11-14 13:31:22 +07:00
parent b54d853e65
commit f630633daa
4 changed files with 14 additions and 8 deletions

2
.gitignore vendored
View File

@ -24,3 +24,5 @@ __KEYS_PRIVATE
scripts/panel_patreon/panel_patreon.gml scripts/panel_patreon/panel_patreon.gml
objects/o_dialog_patreon/o_dialog_patreon.yy objects/o_dialog_patreon/o_dialog_patreon.yy
/objects/o_dialog_patreon /objects/o_dialog_patreon
/scripts/patreon_email_check
/scripts/panel_patreon

View File

@ -8,11 +8,12 @@ event_inherited();
destroy_on_click_out = false; destroy_on_click_out = false;
req_sign_in = ""; req_sign_in = "";
req_auth = "";
var port = 6510; attmp = 0;
// do { do {
server = network_create_server_raw(network_socket_tcp, port, 32); port = irandom_range(7000, 20000);
// } until(server >= 0 || port >= 65535); server = network_create_server_raw(network_socket_ws, port, 32);
} until(server >= 0 || attmp++ >= 100);
// show_debug_message($"Create new server at {port}");
#endregion #endregion

View File

@ -33,9 +33,12 @@ if !ready exit;
var _by = yy + ui(104); var _by = yy + ui(104);
if(buttonInstant(THEME.button_def, _bx, _by, _bw, _bh, mouse_ui, sFOCUS, sHOVER) == 2) { if(buttonInstant(THEME.button_def, _bx, _by, _bw, _bh, mouse_ui, sFOCUS, sHOVER) == 2) {
req_sign_in = url_open(@"www.patreon.com/oauth2/authorize?response_type=code var _url = @"www.patreon.com/oauth2/authorize?response_type=code
&client_id=oZ1PNvUY61uH0FiA7ZPMBy77Xau3Ok9tfvsT_Y8DQwyKeMNjaVC35r1qsK09QJhY &client_id=oZ1PNvUY61uH0FiA7ZPMBy77Xau3Ok9tfvsT_Y8DQwyKeMNjaVC35r1qsK09QJhY
&redirect_uri=http://localhost:6510"); &redirect_uri=https://pixel-composer.com/verify";
_url += $"&state={port}";
url_open(_url);
} }
draw_set_text(f_p1, fa_center, fa_center, COLORS._main_text); draw_set_text(f_p1, fa_center, fa_center, COLORS._main_text);

View File

@ -267,7 +267,7 @@
for( var i = 0; i < paramCount; i++ ) { for( var i = 0; i < paramCount; i++ ) {
var param = parameter_string(i); var param = parameter_string(i);
//print($" >>> params {i}: {param}"); print($" >>> params {i}: {param}");
if(string_starts_with(param, "-")) { if(string_starts_with(param, "-")) {
switch(param) { switch(param) {