mirror of
https://github.com/4ian/GDevelop.git
synced 2025-10-15 10:19:04 +00:00
Improve description of behavior methods and add "Extension" in tab names (#1431)
This commit is contained in:
@@ -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>
|
||||
}
|
||||
/>
|
||||
|
@@ -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>
|
||||
}
|
||||
/>
|
||||
|
@@ -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}
|
||||
|
Reference in New Issue
Block a user