Skip to content

Commit 7a2f75f

Browse files
authored
Merge pull request #346 from LuqueDaniel/develop
Merge develop
2 parents 6ab47d6 + d1923c1 commit 7a2f75f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+3300
-1926
lines changed

.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"require-await": "warn",
2323
"camelcase": "error",
2424
"@typescript-eslint/no-var-requires": "warn",
25-
"no-param-reassign": "warn" // Disable reassign, since this basically means you override the reference from the caller function with a new local version. (It doesn't do what you expect)
25+
"no-param-reassign": "warn", // Disable reassign, since this basically means you override the reference from the caller function with a new local version. (It doesn't do what you expect)
26+
"@typescript-eslint/no-namespace": "off"
2627
}
2728
}

.github/workflows/pr-check.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: PR Check
22

33
on:
44
pull_request:
5+
types: [synchronize, opened, reopened, edited]
56
branches:
67
- master
78
- develop

.vscode/launch.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"${workspaceFolder}/examples" // open examples directory
1616
],
1717
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
18-
"preLaunchTask": "npm: watch"
18+
"preLaunchTask": "npm: watch",
19+
"skipFiles": ["<node_internals>/**", "**/extensions/git*/**", "**/node_modules/prettier/**", "**/node/extensionHostProcess.js"]
1920
},
2021
{
2122
"name": "Launch Extension (Release)",
@@ -27,7 +28,8 @@
2728
"${workspaceFolder}/examples" // open examples directory
2829
],
2930
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
30-
"preLaunchTask": "npm: watch-release"
31+
"preLaunchTask": "npm: watch-release",
32+
"skipFiles": ["<node_internals>/**", "**/extensions/git*/**", "**/node_modules/prettier/**"]
3133
},
3234
{
3335
"name": "Extension Tests",
@@ -36,7 +38,8 @@
3638
"runtimeExecutable": "${execPath}",
3739
"args": ["--extensionDevelopmentPath=${workspaceFolder}", "--extensionTestsPath=${workspaceFolder}/out/test"],
3840
"outFiles": ["${workspaceFolder}/out/test/**/*.js"],
39-
"preLaunchTask": "npm: test-compile"
41+
"preLaunchTask": "npm: test-compile",
42+
"skipFiles": ["<node_internals>/**", "**/extensions/git*/**", "**/node_modules/prettier/**"]
4043
}
4144
]
4245
}

TODO.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ Renpy Features List
33
- Support launching the project through VSCode
44

55
- Bugs to fix:
6-
* Fix error on restart
76
* Show color editor in tags (also check https://www.renpy.org/doc/html/color_class.html)
87
* % can be escaped in strings
98
* if line contains unclosed ( [ or { line is continued (see https://www.renpy.org/doc/html/language_basics.html#logical-lines)

examples/test_ren.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# This is not included in the game. It's here so that an editor knows
2+
# the type of strength.
3+
strength = 100
4+
5+
"""renpy
6+
init python:
7+
"""
8+
9+
class BoostStrength(Action):
10+
"""
11+
Boosts the strength of the player by 10.
12+
"""
13+
14+
def __call__(self):
15+
global strength
16+
strength += 10
17+
renpy.restart_interaction()

examples/tokenizer_tests.rpy

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,13 @@ init python hide early in Namespace:
2121
self.items.append(item);
2222
return
2323

24+
label start:
25+
"Light Distraction\n{color=ff0000}{size=18}[distraction_percentages[0]]%% Chance{/size}{/color}"
26+
27+
menu:
28+
"It's a video game.":
29+
jump game
30+
31+
"It's an interactive book.":
32+
jump book
2433

examples/unit_test.rpy

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,6 +1199,14 @@
11991199
translate piglatin python:
12001200
style.default.font = "stonecutter.ttf"
12011201

1202+
old "These two lines will be combined together to form a long line.\n\nThis line will be separate."
1203+
new _p("""
1204+
These two lines will be combined together
1205+
to form a long line. Bork bork bork.
1206+
1207+
This line will be separate. Bork bork bork.
1208+
""")
1209+
12021210
frame:
12031211
style_prefix "pref"
12041212
has vbox
@@ -1214,13 +1222,7 @@
12141222
This line will be separate.
12151223
""")
12161224

1217-
old "These two lines will be combined together to form a long line.\n\nThis line will be separate."
1218-
new _p("""
1219-
These two lines will be combined together
1220-
to form a long line. Bork bork bork.
1221-
1222-
This line will be separate. Bork bork bork.
1223-
""")
1225+
12241226

12251227
#endregion Translation
12261228

0 commit comments

Comments
 (0)