-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/// @description 在此处插入描述 | ||
// 你可以在此编辑器中写入代码 | ||
text=Translation("DatabaseButtonKey") |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/// @description 在此处插入描述 | ||
// 你可以在此编辑器中写入代码 | ||
draw_self() | ||
draw_set_font(DefaultFont) | ||
draw_set_color(DefaultShader) | ||
draw_text(x,y,text) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/// @description 在此处插入描述 | ||
// 你可以在此编辑器中写入代码 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/// @description 在此处插入描述 | ||
// 你可以在此编辑器中写入代码 | ||
// 获取屏幕中心位置 | ||
var center_x = room_width / 2; | ||
var center_y = room_height / 2; | ||
|
||
// 创建文本显示实例 | ||
var inst = instance_create_layer(center_x, center_y,"Instances", Text, | ||
{ | ||
//可以在这里直接给Object的text及其其他属性赋值 | ||
//可以在Draw事件中赋值 | ||
//可以给inst的属性赋值 | ||
text:"Hello world" | ||
}); | ||
|
||
// 设置实例的参数 | ||
//inst.text = "Hello, World!"; | ||
//inst.font = font_SpecialFont; // 假设你已经创建了一个名为 font_SpecialFont 的字体 | ||
//inst.color = c_red; | ||
//inst.scale = 2.0; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/// @description 在此处插入描述 | ||
// 你可以在此编辑器中写入代码 | ||
// Draw event | ||
// 绘制背景 | ||
//draw_sprite_ext(spr_Progress_Bar_Background, 0, x, y, 1, 1, 0, c_white, 1); | ||
|
||
// 计算填充宽度 | ||
var full_width= sprite_width*image_xscale; | ||
var fill_width = (current_progress / max_progress) *full_width; | ||
|
||
// 绘制填充部分 | ||
draw_sprite_ext(BlueProcessBarSprite, 0, x, y, fill_width / full_width, 1, 0, c_white, 1); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/// @description 在此处插入描述 | ||
// 你可以在此编辑器中写入代码 | ||
// Step event | ||
//if (keyboard_check(vk_space)) { // 按下空格键时增加进度 | ||
current_progress += 1; | ||
if (current_progress > max_progress) { | ||
current_progress = max_progress; | ||
} | ||
//} | ||
|
||
// 重置进度 | ||
if (keyboard_check(vk_enter)) { // 按下 R 键时重置进度 | ||
current_progress = 0; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/// @description 在此处插入描述 | ||
// 你可以在此编辑器中写入代码 | ||
text="Set Window Size" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/// @description 在此处插入描述 | ||
// 你可以在此编辑器中写入代码 | ||
draw_self() | ||
draw_set_font(DefaultFont) | ||
draw_set_color(DefaultShader) | ||
draw_text(x,y,text) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/// @description 在此处插入描述 | ||
// 你可以在此编辑器中写入代码 | ||
window_set_size(1000,1000) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/// @description 在此处插入描述 | ||
// 你可以在此编辑器中写入代码 | ||
draw_self() | ||
draw_set_font(DefaultFont) | ||
draw_set_color(DefaultShader) | ||
draw_text(x,y,text) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.