Skip to content

Commit

Permalink
Adds file tag/node metadata getter functions
Browse files Browse the repository at this point in the history
  • Loading branch information
JujuAdams committed May 22, 2021
1 parent e96f0ee commit 54886c5
Show file tree
Hide file tree
Showing 40 changed files with 417 additions and 226 deletions.
164 changes: 19 additions & 145 deletions chatterbox.yyp

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions datafiles/testcase_node_metadata.yarn
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#tag: 1
#tag2 : hello!
#tag : duplicate

title: Start
tags: a, b, c, d, e
section: Section1
colorID: 0
position: 534.5534057617188, 350.60845947265625
---

Hello
<<stop>>
This shouldn't appear

===
6 changes: 3 additions & 3 deletions objects/oTest/oTest.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions objects/oTestCaseAction/oTestCaseAction.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions objects/oTestCaseBOM/oTestCaseBOM.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions objects/oTestCaseComments/oTestCaseComments.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions objects/oTestCaseDirection/oTestCaseDirection.yy

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.

6 changes: 3 additions & 3 deletions objects/oTestCaseEmptyParam/oTestCaseEmptyParam.yy

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.

18 changes: 17 additions & 1 deletion objects/oTestCaseFileTags/Draw_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ else
if (ChatterboxIsWaiting(box))
{
//If we're in a "waiting" state then prompt the user for basic input
draw_text(_x, _y, "(Press Space)");
var _string = "(Press Space)";
draw_text(_x, _y, _string);
_y += string_height(_string);
}
else
{
Expand All @@ -41,4 +43,18 @@ else
++_i;
}
}

//More spacing...
_y += 30;

//Draw all file tags
var _metadata = ChatterboxSourceGetTags(ChatterboxGetCurrentSource(box));
var _i = 0;
repeat(array_length(_metadata))
{
var _string = "tag " + string(_i) + " = \"" + _metadata[_i] + "\"";
draw_text(_x, _y, _string);
_y += string_height(_string);
++_i;
}
}
6 changes: 3 additions & 3 deletions objects/oTestCaseFileTags/oTestCaseFileTags.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions objects/oTestCaseIf/oTestCaseIf.yy

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.

6 changes: 3 additions & 3 deletions objects/oTestCaseJump/oTestCaseJump.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 54886c5

Please sign in to comment.