Skip to content

Commit a8c4ad8

Browse files
authored
Rename parameter (#8836)
1 parent 37deefe commit a8c4ad8

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

newIDE/app/src/EditorFunctions/index.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ export type EventsGenerationResult =
200200

201201
export type EventBatch = {|
202202
eventsDescription: string,
203-
eventsScript: string | null,
203+
eventScript: string | null,
204204
placementRelation: string,
205205
placementTargetEventId: string | null,
206206
placementExpectedParentEventId: string | null,
@@ -4706,9 +4706,9 @@ const addSceneEvents: EditorFunction = {
47064706
batch,
47074707
'events_description'
47084708
);
4709-
const eventsScript = SafeExtractor.extractStringProperty(
4709+
const eventScript = SafeExtractor.extractStringProperty(
47104710
batch,
4711-
'events_script'
4711+
'event_script'
47124712
);
47134713
const placementRelation = SafeExtractor.extractStringProperty(
47144714
batch,
@@ -4743,7 +4743,7 @@ const addSceneEvents: EditorFunction = {
47434743
: {eventsDescription}
47444744
</Text>
47454745
)}
4746-
{eventsScript && (
4746+
{eventScript && (
47474747
<Text
47484748
noMargin
47494749
allowSelection
@@ -4754,7 +4754,7 @@ const addSceneEvents: EditorFunction = {
47544754
<b>
47554755
<Trans>Events script</Trans>
47564756
</b>
4757-
: {eventsScript}
4757+
: {eventScript}
47584758
</Text>
47594759
)}
47604760
{placementRelation && (
@@ -4982,9 +4982,9 @@ const addSceneEvents: EditorFunction = {
49824982
batch,
49834983
'events_description'
49844984
) || '',
4985-
eventsScript: SafeExtractor.extractStringProperty(
4985+
eventScript: SafeExtractor.extractStringProperty(
49864986
batch,
4987-
'events_script'
4987+
'event_script'
49884988
),
49894989
placementRelation:
49904990
SafeExtractor.extractStringProperty(
@@ -5017,7 +5017,7 @@ const addSceneEvents: EditorFunction = {
50175017
parsedEventBatches.some(
50185018
batch =>
50195019
!batch.eventsDescription &&
5020-
!batch.eventsScript &&
5020+
!batch.eventScript &&
50215021
batch.placementRelation !== 'delete'
50225022
)
50235023
) {

newIDE/app/src/Utils/GDevelopServices/Generation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ export type AiGeneratedEventChange = {
199199

200200
export type AiGeneratedEventBatch = {
201201
eventsDescription: string,
202-
eventsScript: string | null,
202+
eventScript: string | null,
203203
placementRelation: string,
204204
placementTargetEventId: string | null,
205205
placementExpectedParentEventId: string | null,

0 commit comments

Comments
 (0)