1
0
Fork 0
mirror of https://github.com/ganelson/inform.git synced 2024-07-03 07:24:58 +03:00
inform7/inter/index-module/Chapter 3/Rules for Scenes Element.w

25 lines
980 B
OpenEdge ABL
Raw Normal View History

2021-06-08 01:03:35 +03:00
[RulesForScenesElement::] Rules for Scenes Element.
To write the Rules for Scenes element (RS) in the index.
@
=
void RulesForScenesElement::render(OUTPUT_STREAM, localisation_dictionary *LD) {
inter_tree *I = InterpretIndex::get_tree();
2021-06-08 01:03:35 +03:00
tree_inventory *inv = Synoptic::inv(I);
TreeLists::sort(inv->rulebook_nodes, Synoptic::module_order);
HTML_OPEN("p"); WRITE("<b>The scene-changing machinery</b>"); HTML_CLOSE("p");
IndexRules::rulebook_box(OUT, inv, I"Scene changing", NULL,
IndexRules::find_rulebook(inv, I"scene_changing"), NULL, 1, FALSE, LD);
2021-06-08 01:03:35 +03:00
HTML_OPEN("p");
2021-07-09 00:56:01 +03:00
IndexUtilities::anchor(OUT, I"SRULES");
2021-06-08 01:03:35 +03:00
WRITE("<b>General rules applying to scene changes</b>");
HTML_CLOSE("p");
IndexRules::rulebook_box(OUT, inv, I"When a scene begins", NULL,
IndexRules::find_rulebook(inv, I"when_scene_begins"), NULL, 1, FALSE, LD);
IndexRules::rulebook_box(OUT, inv, I"When a scene ends", NULL,
IndexRules::find_rulebook(inv, I"when_scene_ends"), NULL, 1, FALSE, LD);
2021-06-08 01:03:35 +03:00
}