mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +00:00
Adds 2 fields to expose the net simulation functionality more readily to the NetGraph GUI.
Also added a Tools option to the World Editor menubar, with the NetGraph as the first option to make it easier to activate the NetGraph in the editor.
This commit is contained in:
parent
bab55d46a9
commit
587ab6a39e
3 changed files with 393 additions and 53 deletions
|
|
@ -770,6 +770,15 @@ function EditorCameraSpeedMenu::setupGuiControls(%this)
|
|||
// Set up min/max camera slider range
|
||||
eval("CameraSpeedDropdownCtrlContainer-->Slider.range = \"" @ %minSpeed @ " " @ %maxSpeed @ "\";");
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// Tools Menu Handler
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
function EditorUtilitiesMenu::onSelectItem(%this, %id, %text)
|
||||
{
|
||||
return Parent::onSelectItem(%this, %id, %text);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// World Menu Handler Object Menu
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
|||
|
|
@ -252,6 +252,18 @@ function EditorGui::buildMenus(%this)
|
|||
// last menu items in EditorLightingMenu::onAdd().
|
||||
};
|
||||
%this.menuBar.insert(%lightingMenu, %this.menuBar.getCount());
|
||||
|
||||
// Tools Menu
|
||||
%toolsMenu = new PopupMenu()
|
||||
{
|
||||
superClass = "MenuBuilder";
|
||||
class = "EditorUtilitiesMenu";
|
||||
|
||||
barTitle = "Tools";
|
||||
|
||||
item[0] = "Network Graph" TAB "n" TAB "toggleNetGraph();";
|
||||
};
|
||||
%this.menuBar.insert(%toolsMenu, %this.menuBar.getCount());
|
||||
|
||||
// Help Menu
|
||||
%helpMenu = new PopupMenu()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue