1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Wasm improvements

This commit is contained in:
Brian Fiete 2022-02-08 17:02:35 -05:00
parent 2ab072ee20
commit 0e579d07b9
6 changed files with 169 additions and 66 deletions

View file

@ -17,6 +17,7 @@ namespace IDE.ui
Compiler,
Debugger,
VisualStudio,
Wasm,
COUNT
}
@ -60,6 +61,7 @@ namespace IDE.ui
AddCategoryItem(root, "Compiler");
AddCategoryItem(root, "Debugger");
AddCategoryItem(root, "Visual Studio");
AddCategoryItem(root, "Wasm");
if (!gApp.mSettings.mVSSettings.IsConfigured())
gApp.mSettings.mVSSettings.SetDefaults();
@ -145,6 +147,18 @@ namespace IDE.ui
category.Open(true, true);
}
void PopulateWasmOptions()
{
mCurPropertiesTarget = gApp.mSettings;
var root = (DarkListViewItem)mPropPage.mPropertiesListView.GetRoot();
var (category, propEntry) = AddPropertiesItem(root, "General");
category.mIsBold = true;
category.mTextColor = Color.Mult(DarkTheme.COLOR_TEXT, cHeaderColor);
AddPropertiesItem(category, "Emscripten Path", "mEmscriptenPath", null, .BrowseForFolder);
category.Open(true, true);
}
void CommandContextToString(IDECommand.ContextFlags contextFlags, String str)
{
bool isFirst = true;
@ -376,6 +390,8 @@ namespace IDE.ui
PopulateDebuggerOptions();
case .VisualStudio:
PopulateVSOptions();
case .Wasm:
PopulateWasmOptions();
default:
/*mCurPropertiesTarget = gApp.mSettings.mEditorSettings;
PopulateEditorOptions();*/