summaryrefslogtreecommitdiff
path: root/indra/newview/llfilepicker.cpp
diff options
context:
space:
mode:
authorAndrey Lihatskiy <alihatskiy@productengine.com>2026-04-01 19:50:33 +0300
committerAndrey Lihatskiy <alihatskiy@productengine.com>2026-04-01 19:50:33 +0300
commitf5908eddc683dd705d334c88377139e39bbfb54f (patch)
tree75c0ff026fe13c0a507a4527b697aa212736998d /indra/newview/llfilepicker.cpp
parentd045f9aa32789a35628aced166145c182751acbf (diff)
parentf209affdfdf271098843ba400d7a75b00f827233 (diff)
Merge branch 'project/lua_editor' into marchcat/devlinux-slua
# Conflicts: # indra/llcommon/llstl.h # indra/newview/app_settings/settings.xml
Diffstat (limited to 'indra/newview/llfilepicker.cpp')
-rw-r--r--indra/newview/llfilepicker.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/indra/newview/llfilepicker.cpp b/indra/newview/llfilepicker.cpp
index f540ca549a..c5af3bec9e 100644
--- a/indra/newview/llfilepicker.cpp
+++ b/indra/newview/llfilepicker.cpp
@@ -63,7 +63,7 @@ LLFilePicker LLFilePicker::sInstance;
#define MATERIAL_FILTER L"GLTF Files (*.gltf; *.glb)\0*.gltf;*.glb\0"
#define HDRI_FILTER L"HDRI Files (*.exr)\0*.exr\0"
#define MATERIAL_TEXTURES_FILTER L"GLTF Import (*.gltf; *.glb; *.tga; *.bmp; *.jpg; *.jpeg; *.png)\0*.gltf;*.glb;*.tga;*.bmp;*.jpg;*.jpeg;*.png\0"
-#define SCRIPT_FILTER L"Script files (*.lsl)\0*.lsl\0"
+#define SCRIPT_FILTER L"Script files (*.lsl; *.lua; *.luau)\0*.lsl;*.lua;*.luau\0"
#define DICTIONARY_FILTER L"Dictionary files (*.dic; *.xcu)\0*.dic;*.xcu\0"
#endif
@@ -226,7 +226,7 @@ namespace
filter_vec.push_back({ "HDRI Files (*.exr)", "exr" });
break;
case LLFilePicker::FFLOAD_SCRIPT:
- filter_vec.push_back({ "Script files (*.lsl)", "lsl" });
+ filter_vec.push_back({ "Script files (*.lsl; *.lua; *.luau)", "lsl;lua;luau" });
break;
case LLFilePicker::FFLOAD_DICTIONARY:
filter_vec.push_back({ "Dictionary files (*.dic; *.xcu)", "dic;xcu" });
@@ -543,7 +543,7 @@ bool LLFilePicker::getSaveFileModeless(ESaveFilter filter,
{
default_filename = "untitled.lsl";
}
- file_filters.push_back({ "LSL Files (*.lsl)", "lsl" });
+ file_filters.push_back({ "Script files (*.lsl; *.lua; *.luau)", "lsl;lua;luau" });
break;
default:
return false;
@@ -1132,6 +1132,8 @@ std::unique_ptr<std::vector<std::string>> LLFilePicker::navOpenFilterProc(ELoadF
break;
case FFLOAD_SCRIPT:
allowedv->push_back("lsl");
+ allowedv->push_back("lua");
+ allowedv->push_back("luau");
break;
case FFLOAD_DICTIONARY:
allowedv->push_back("dic");
@@ -1265,7 +1267,7 @@ void set_nav_save_data(LLFilePicker::ESaveFilter filter, std::string &extension,
case LLFilePicker::FFSAVE_SCRIPT:
type = "LSL ";
creator = "\?\?\?\?";
- extension = "lsl";
+ extension = "lsl;lua;luau";
break;
case LLFilePicker::FFSAVE_ALL: