Pixel-Composer/objects/o_dialog_about/Create_0.gml

78 lines
2.2 KiB
Plaintext
Raw Normal View History

2022-01-13 05:24:03 +01:00
/// @description init
event_inherited();
#region data
2022-11-03 11:44:49 +01:00
dialog_w = ui(500);
dialog_h = ui(600);
2022-01-13 05:24:03 +01:00
2022-11-03 11:44:49 +01:00
thank_h = dialog_h - ui(220);
2022-01-13 05:24:03 +01:00
destroy_on_click_out = true;
#endregion
#region scroll
credits = [
2023-02-15 10:43:24 +01:00
[ "ImageMagick", "ImageMagick Studio LLC" ],
2023-11-01 08:10:25 +01:00
[ "WebP", "Google" ],
[ "FFmpeg", "FFmpeg team" ],
2023-02-15 10:43:24 +01:00
[ "File dialog module", "Samuel Venable" ],
2024-09-13 08:25:00 +02:00
[ "gif importer\nWindow commands\nApollow LUA compiler\nWinwin", "YellowAfterLife" ],
2023-02-15 10:43:24 +01:00
2022-01-13 05:24:03 +01:00
[ "The Book of Shaders", "Patricio Gonzalez Vivo & Jen Lowe" ],
[ "Many noise and shape shaders", "Inigo Quilez" ],
2022-09-21 06:09:40 +02:00
[ "Chromatic aberration shader", "jcant0n" ],
2022-12-13 14:11:39 +01:00
[ "Triangle grid", "Farini" ],
2022-12-16 09:18:09 +01:00
[ "Pixel sort", "Ciphrd" ],
2023-01-01 02:06:02 +01:00
[ "Simplex noise", "Ian McEwan" ],
2023-09-17 13:23:24 +02:00
[ "BBMOD", "BlueBurn" ],
2024-01-17 14:57:32 +01:00
];
patreons = "";
if(os_is_network_connected())
patron_list_id = http_get("https://gist.githubusercontent.com/Ttanasart-pt/573ab1dea80606616cac5ba497e528fd/raw/6bd76af8751416cd08f9c268cd6b7fb0c06611a1/patreon");
2022-01-13 05:24:03 +01:00
2022-11-03 11:44:49 +01:00
sc_thank = new scrollPane(dialog_w - ui(64), thank_h, function(_y, _m) {
2023-03-21 03:01:53 +01:00
var cx = sc_thank.surface_w / 2;
2022-01-13 05:24:03 +01:00
var _h = _y;
var yy = _y;
2022-11-18 03:20:31 +01:00
draw_clear_alpha(COLORS.dialog_about_bg, 0);
2022-01-13 05:24:03 +01:00
2023-01-25 06:49:00 +01:00
BLEND_OVERRIDE
2024-01-17 14:57:32 +01:00
draw_set_text(f_p2, fa_center, fa_top, COLORS._main_text_sub);
2022-01-13 05:24:03 +01:00
draw_text(cx, yy, "Special Thanks");
2023-07-25 20:12:40 +02:00
for( var i = 0, n = array_length(credits); i < n; i++ ) {
2023-05-28 20:00:51 +02:00
yy += line_get_height(, 8);
2024-01-17 14:57:32 +01:00
draw_set_text(f_p2, fa_center, fa_top, COLORS._main_text_sub);
2022-09-27 06:37:28 +02:00
draw_text(cx, yy, credits[i][0]);
yy += string_height(credits[i][0]);
2024-01-17 14:57:32 +01:00
draw_set_text(f_p0b, fa_center, fa_top, COLORS._main_text);
2022-09-27 06:37:28 +02:00
draw_text(cx, yy, credits[i][1]);
2022-11-03 11:44:49 +01:00
yy += ui(8);
2022-01-13 05:24:03 +01:00
}
2022-11-03 11:44:49 +01:00
yy += ui(40);
2024-01-17 14:57:32 +01:00
if(patreons != "") {
draw_set_text(f_p2, fa_center, fa_top, COLORS._main_text_sub);
draw_text(cx, yy, "Patreon Suporters");
yy += line_get_height();
draw_set_text(f_p0b, fa_center, fa_top, COLORS._main_text);
draw_text_ext(cx, yy, patreons, -1, sc_thank.surface_w);
yy += string_height_ext(patreons, -1, sc_thank.surface_w);
yy += ui(8);
}
yy += ui(40);
draw_set_text(f_p0b, fa_center, fa_top, COLORS._main_text_sub);
2023-06-05 19:41:01 +02:00
draw_text_line(cx, yy, "Made with GameMaker Studio 2, Adobe Illustrator, Aseprite", -1, sc_thank.w - ui(16));
2022-11-03 11:44:49 +01:00
yy += ui(32);
2022-12-21 02:30:23 +01:00
BLEND_NORMAL
2022-01-13 05:24:03 +01:00
2022-11-03 11:44:49 +01:00
return yy - _h + ui(32);
2022-01-13 05:24:03 +01:00
})
#endregion