Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
ba484171
Unverified
Commit
ba484171
authored
Feb 21, 2018
by
Rémi Verschelde
Committed by
GitHub
Feb 21, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16878 from KidRigger/master
Godot now allows built-in irrespective of the filepath.
parents
5d6c6496
1fdb8251
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
script_create_dialog.cpp
editor/script_create_dialog.cpp
+9
-5
No files found.
editor/script_create_dialog.cpp
View file @
ba484171
...
...
@@ -535,15 +535,19 @@ void ScriptCreateDialog::_update_dialog() {
/* Is Script created or loaded from existing file */
if
(
is_new_script_created
)
{
if
(
is_built_in
)
{
get_ok
()
->
set_text
(
TTR
(
"Create"
));
parent_name
->
set_editable
(
true
);
parent_browse_button
->
set_disabled
(
false
);
internal
->
set_disabled
(
!
supports_built_in
);
_msg_path_valid
(
true
,
TTR
(
"Built-in script (into scene file)"
));
}
else
if
(
is_new_script_created
)
{
// New Script Created
get_ok
()
->
set_text
(
TTR
(
"Create"
));
parent_name
->
set_editable
(
true
);
parent_browse_button
->
set_disabled
(
false
);
internal
->
set_disabled
(
!
supports_built_in
);
if
(
is_built_in
)
{
_msg_path_valid
(
true
,
TTR
(
"Built-in script (into scene file)"
));
}
else
if
(
is_path_valid
)
{
if
(
is_path_valid
)
{
_msg_path_valid
(
true
,
TTR
(
"Create new script file"
));
}
}
else
{
...
...
@@ -551,7 +555,7 @@ void ScriptCreateDialog::_update_dialog() {
get_ok
()
->
set_text
(
TTR
(
"Load"
));
parent_name
->
set_editable
(
false
);
parent_browse_button
->
set_disabled
(
true
);
internal
->
set_disabled
(
true
);
internal
->
set_disabled
(
!
supports_built_in
);
if
(
is_path_valid
)
{
_msg_path_valid
(
true
,
TTR
(
"Load existing script file"
));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment