mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Added tutorial for setting project dependencies after adding first lib
This commit is contained in:
parent
dcd6f229af
commit
be05439421
2 changed files with 20 additions and 0 deletions
|
@ -1064,6 +1064,7 @@ namespace IDE
|
|||
{
|
||||
public bool mCtrlCursor;
|
||||
public bool mRanDebug;
|
||||
public bool mDependencies;
|
||||
}
|
||||
|
||||
public bool mLoadedSettings;
|
||||
|
@ -1148,6 +1149,7 @@ namespace IDE
|
|||
{
|
||||
sd.Add("CtrlCursor", mTutorialsFinished.mCtrlCursor);
|
||||
sd.Add("RanDebug", mTutorialsFinished.mRanDebug);
|
||||
sd.Add("Dependencies", mTutorialsFinished.mDependencies);
|
||||
}
|
||||
|
||||
String dataStr = scope String();
|
||||
|
@ -1208,6 +1210,8 @@ namespace IDE
|
|||
{
|
||||
sd.Get("CtrlCursor", ref mTutorialsFinished.mCtrlCursor);
|
||||
sd.Get("RanDebug", ref mTutorialsFinished.mRanDebug);
|
||||
if (!sd.Get("Dependencies", ref mTutorialsFinished.mDependencies))
|
||||
mTutorialsFinished.mDependencies = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -2463,6 +2463,22 @@ namespace IDE.ui
|
|||
return proj;
|
||||
}
|
||||
|
||||
if ((proj.mGeneralOptions.mTargetType == .BeefLib) && (!gApp.mSettings.mTutorialsFinished.mDependencies))
|
||||
{
|
||||
Dialog dialog = ThemeFactory.mDefault.CreateDialog("Add Dependencies",
|
||||
"""
|
||||
A library has been added to the workspace but it won't be accessible until your project is dependent on it.
|
||||
|
||||
Right click on 'Workspace', select 'Properties...', and set dependencies under the 'Projects' tab.
|
||||
""", DarkTheme.sDarkTheme.mIconWarning);
|
||||
dialog.mDefaultButton = dialog.AddButton("OK");
|
||||
dialog.mEscButton = dialog.mDefaultButton;
|
||||
dialog.mWindowFlags &= ~.Modal;
|
||||
|
||||
dialog.PopupWindow(gApp.mMainWindow);
|
||||
gApp.mSettings.mTutorialsFinished.mDependencies = true;
|
||||
}
|
||||
|
||||
return proj;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue