-
Notifications
You must be signed in to change notification settings - Fork 21
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,14 @@ | ||
title: Start | ||
tags: | ||
section: Section1 | ||
colorID: 0 | ||
position: 534.5534057617188, 350.60845947265625 | ||
--- | ||
|
||
Hello | ||
<<if !visited("Start")>> | ||
Woah text | ||
<<endif>> | ||
Done! | ||
|
||
=== |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
title: Start | ||
tags: | ||
section: Section1 | ||
colorID: 0 | ||
position: 534.5534057617188, 350.60845947265625 | ||
--- | ||
|
||
Hello | ||
<<testcaseNumericParam(5)>> | ||
Done! | ||
|
||
=== |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
chatterbox_load_from_file("testcase_negate_function.yarn"); | ||
box = chatterbox_create(); | ||
chatterbox_goto(box, "Start"); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
var _x = 10; | ||
var _y = 10; | ||
|
||
if (chatterbox_is_stopped(box)) | ||
{ | ||
draw_text(_x, _y, "(Chatterbox stopped)"); | ||
} | ||
else | ||
{ | ||
var _i = 0; | ||
repeat(chatterbox_get_content_count(box)) | ||
{ | ||
draw_text(_x, _y, chatterbox_get_content(box, _i)); | ||
_y += 20; | ||
++_i; | ||
} | ||
|
||
_y += 20; | ||
|
||
if (chatterbox_is_waiting(box)) | ||
{ | ||
draw_text(_x, _y, "(Press Space)"); | ||
} | ||
else | ||
{ | ||
var _i = 0; | ||
repeat(chatterbox_get_option_count(box)) | ||
{ | ||
draw_text(_x, _y, string(_i+1) + ") " + chatterbox_get_option(box, _i)); | ||
_y += 20; | ||
++_i; | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
if (chatterbox_is_waiting(box)) | ||
{ | ||
if (keyboard_check_released(vk_space)) chatterbox_continue(box); | ||
} | ||
else | ||
{ | ||
var _index = undefined; | ||
if (keyboard_check_released(ord("1"))) _index = 0; | ||
if (keyboard_check_released(ord("2"))) _index = 1; | ||
if (keyboard_check_released(ord("3"))) _index = 2; | ||
if (keyboard_check_released(ord("4"))) _index = 3; | ||
if (_index != undefined) chatterbox_select(box, _index); | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 @@ | ||
chatterbox_load_from_file("testcase_numeric_param.yarn"); | ||
box = chatterbox_create(); | ||
chatterbox_goto(box, "Start"); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
var _x = 10; | ||
var _y = 10; | ||
|
||
if (chatterbox_is_stopped(box)) | ||
{ | ||
draw_text(_x, _y, "(Chatterbox stopped)"); | ||
} | ||
else | ||
{ | ||
var _i = 0; | ||
repeat(chatterbox_get_content_count(box)) | ||
{ | ||
draw_text(_x, _y, chatterbox_get_content(box, _i)); | ||
_y += 20; | ||
++_i; | ||
} | ||
|
||
_y += 20; | ||
|
||
if (chatterbox_is_waiting(box)) | ||
{ | ||
draw_text(_x, _y, "(Press Space)"); | ||
} | ||
else | ||
{ | ||
var _i = 0; | ||
repeat(chatterbox_get_option_count(box)) | ||
{ | ||
draw_text(_x, _y, string(_i+1) + ") " + chatterbox_get_option(box, _i)); | ||
_y += 20; | ||
++_i; | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
if (chatterbox_is_waiting(box)) | ||
{ | ||
if (keyboard_check_released(vk_space)) chatterbox_continue(box); | ||
} | ||
else | ||
{ | ||
var _index = undefined; | ||
if (keyboard_check_released(ord("1"))) _index = 0; | ||
if (keyboard_check_released(ord("2"))) _index = 1; | ||
if (keyboard_check_released(ord("3"))) _index = 2; | ||
if (keyboard_check_released(ord("4"))) _index = 3; | ||
if (_index != undefined) chatterbox_select(box, _index); | ||
} |