Improve description of behavior methods and add "Extension" in tab names (#1431)

This commit is contained in:
Aurélien Vivet
2020-02-16 23:48:13 +01:00
committed by GitHub
parent 280906dd3a
commit 3df9b29c3e
3 changed files with 15 additions and 15 deletions

View File

@@ -145,9 +145,9 @@ export default class BehaviorMethodSelectorDialog extends React.Component<
onChoose={onChoose}
description={
<Trans>
Events that will be run when the behavior is deactivated on an
object (step events won't be run until the behavior is activated
again).
Events that will be run once when the behavior is deactivated on
an object (step events won't be run until the behavior is
activated again).
</Trans>
}
/>
@@ -158,8 +158,8 @@ export default class BehaviorMethodSelectorDialog extends React.Component<
onChoose={onChoose}
description={
<Trans>
Events that will be run when the behavior is re-activated on an
object (after it was previously deactivated).
Events that will be run once when the behavior is re-activated
on an object (after it was previously deactivated).
</Trans>
}
/>

View File

@@ -168,7 +168,7 @@ export default function BehaviorMethodSelectorDialog({
}
description={
<Trans>
Events that will be run when the a scene of the game is
Events that will be run once when the a scene of the game is
loaded, before the scene events.
</Trans>
}
@@ -225,8 +225,8 @@ export default function BehaviorMethodSelectorDialog({
}
description={
<Trans>
Events that will be run when a scene is paused (another scene
is run on top of it).
Events that will be run once when a scene is paused (another
scene is run on top of it).
</Trans>
}
/>
@@ -244,8 +244,8 @@ export default function BehaviorMethodSelectorDialog({
}
description={
<Trans>
Events that will be run when a scene is resumed (after it was
previously paused).
Events that will be run once when a scene is resumed (after it
was previously paused).
</Trans>
}
/>
@@ -263,9 +263,9 @@ export default function BehaviorMethodSelectorDialog({
}
description={
<Trans>
Events that will be run when a scene is about to be unloaded
from memory. The previous scene that was paused will be
resumed after this.
Events that will be run once when a scene is about to be
unloaded from memory. The previous scene that was paused will
be resumed after this.
</Trans>
}
/>

View File

@@ -1126,11 +1126,11 @@ class MainFrame extends React.Component<Props, State> {
initiallyFocusedFunctionName?: string,
initiallyFocusedBehaviorName?: ?string
) => {
const { eventsFunctionsExtensionsState } = this.props;
const { i18n, eventsFunctionsExtensionsState } = this.props;
this.setState(
{
editorTabs: openEditorTab(this.state.editorTabs, {
name,
name: name + ' ' + i18n._(t`(Extension)`),
renderEditor: ({ isActive, editorRef }) => (
<EventsFunctionsExtensionEditor
project={this.state.currentProject}