Pixel-Composer/objects/o_dialog_about/Create_0.gml

49 lines
1.2 KiB
Plaintext
Raw Normal View History

2022-01-13 05:24:03 +01:00
/// @description init
event_inherited();
#region data
dialog_w = 500;
dialog_h = 600;
thank_h = dialog_h - 220;
destroy_on_click_out = true;
#endregion
#region scroll
credits = [
[ "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-09-27 06:37:28 +02:00
[ "gif importer\nWindow commands\nExecute shell simple", "YellowAfterLife" ],
2022-01-13 05:24:03 +01:00
]
sc_thank = new scrollPane(dialog_w - 64, thank_h, function(_y, _m) {
var cx = (dialog_w - 64) / 2;
var _h = _y;
var yy = _y;
draw_clear_alpha(c_ui_blue_grey, 0);
draw_set_font(f_p2);
draw_set_color(c_ui_blue_ltgrey);
draw_text(cx, yy, "Special Thanks");
for( var i = 0; i < array_length(credits); i++ ) {
2022-09-27 06:37:28 +02:00
yy += 40;
2022-01-13 05:24:03 +01:00
draw_set_font(f_p2);
draw_set_color(c_ui_blue_grey);
2022-09-27 06:37:28 +02:00
draw_text(cx, yy, credits[i][0]);
yy += string_height(credits[i][0]);
draw_set_font(f_p0b);
draw_set_color(c_ui_blue_white);
draw_text(cx, yy, credits[i][1]);
2022-01-13 05:24:03 +01:00
}
draw_set_font(f_p0);
draw_set_color(c_ui_blue_ltgrey);
2022-09-27 06:37:28 +02:00
yy += 40;
draw_text(cx, yy, "Made with GameMaker Studio 2, Abode Illustrator,\nAseprite");
2022-01-13 05:24:03 +01:00
return yy - _h + 32;
})
#endregion