mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 08:34:40 +00:00
Merge branch 'development' of https://github.com/TorqueGameEngines/Torque3D into development
This commit is contained in:
commit
16062fb996
8 changed files with 34 additions and 21 deletions
|
|
@ -207,7 +207,7 @@ Material::Material()
|
||||||
mDoubleSided = false;
|
mDoubleSided = false;
|
||||||
|
|
||||||
mTranslucent = false;
|
mTranslucent = false;
|
||||||
mTranslucentBlendOp = LerpAlpha;
|
mTranslucentBlendOp = PreMul;
|
||||||
mTranslucentZWrite = false;
|
mTranslucentZWrite = false;
|
||||||
|
|
||||||
mAlphaTest = false;
|
mAlphaTest = false;
|
||||||
|
|
|
||||||
|
|
@ -164,7 +164,7 @@ function GuiCanvas::checkCanvasRes(%this, %mode, %deviceId, %deviceMode, %startu
|
||||||
{
|
{
|
||||||
// Toggle for selecting the borderless window allowed sizes. Set true to allow
|
// Toggle for selecting the borderless window allowed sizes. Set true to allow
|
||||||
// borderless windows to be less than the device res.
|
// borderless windows to be less than the device res.
|
||||||
%allowSmallBorderless = true;
|
%allowSmallBorderless = false;
|
||||||
|
|
||||||
%resX = getWord(%mode, $WORD::RES_X);
|
%resX = getWord(%mode, $WORD::RES_X);
|
||||||
%resY = getWord(%mode, $WORD::RES_Y);
|
%resY = getWord(%mode, $WORD::RES_Y);
|
||||||
|
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
|
|
@ -52,20 +52,24 @@ $guiContent = new GuiControl(MainMenuButtons) {
|
||||||
tooltipProfile = "GuiToolTipProfile";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
};
|
};
|
||||||
new GuiButtonCtrl(MainMenuWorldEditBtn) {
|
new GuiButtonCtrl(MainMenuWorldEditBtn) {
|
||||||
text = "Open World Editor";
|
text = "Open World Editor (F11)";
|
||||||
position = "0 280";
|
position = "0 280";
|
||||||
extent = "400 55";
|
extent = "400 55";
|
||||||
profile = "GuiMenuButtonProfile";
|
profile = "GuiMenuButtonProfile";
|
||||||
command = "openWorldEditorBtn();";
|
command = "openWorldEditorBtn();";
|
||||||
tooltipProfile = "GuiToolTipProfile";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
|
enabled = (ModuleDatabase.findModule("ToolsModule") !$= "");
|
||||||
|
visible = (ModuleDatabase.findModule("ToolsModule") !$= "");
|
||||||
};
|
};
|
||||||
new GuiButtonCtrl(MainMenuGuiEditBtn) {
|
new GuiButtonCtrl(MainMenuGuiEditBtn) {
|
||||||
text = "Open GUI Editor";
|
text = "Open GUI Editor (F10)";
|
||||||
position = "0 350";
|
position = "0 350";
|
||||||
extent = "400 55";
|
extent = "400 55";
|
||||||
profile = "GuiMenuButtonProfile";
|
profile = "GuiMenuButtonProfile";
|
||||||
command = "openGUIEditorBtn();";
|
command = "openGUIEditorBtn();";
|
||||||
tooltipProfile = "GuiToolTipProfile";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
|
enabled = (ModuleDatabase.findModule("ToolsModule") !$= "");
|
||||||
|
visible = (ModuleDatabase.findModule("ToolsModule") !$= "");
|
||||||
};
|
};
|
||||||
new GuiButtonCtrl(MainMenuExitBtn) {
|
new GuiButtonCtrl(MainMenuExitBtn) {
|
||||||
text = "Exit";
|
text = "Exit";
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,18 @@ $guiContent = new GuiControl(PauseMenu) {
|
||||||
isContainer = "1";
|
isContainer = "1";
|
||||||
canSaveDynamicFields = "1";
|
canSaveDynamicFields = "1";
|
||||||
};
|
};
|
||||||
|
new GuiInputCtrl(PauseMenuInputHandler) {
|
||||||
|
sendAxisEvents = "1";
|
||||||
|
sendBreakEvents = "1";
|
||||||
|
ignoreMouseEvents = "1";
|
||||||
|
position = "-50 0";
|
||||||
|
extent = "10 10";
|
||||||
|
horizSizing = "width";
|
||||||
|
vertSizing = "height";
|
||||||
|
profile = "GuiInputCtrlProfile";
|
||||||
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
|
class = "MenuInputHandler";
|
||||||
|
};
|
||||||
new GuiControl(PauseMenuButtons) {
|
new GuiControl(PauseMenuButtons) {
|
||||||
position = "162 125";
|
position = "162 125";
|
||||||
extent = "700 518";
|
extent = "700 518";
|
||||||
|
|
@ -147,17 +159,5 @@ $guiContent = new GuiControl(PauseMenu) {
|
||||||
hidden = "1";
|
hidden = "1";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
new GuiInputCtrl(PauseMenuInputHandler) {
|
|
||||||
sendAxisEvents = "1";
|
|
||||||
sendBreakEvents = "1";
|
|
||||||
ignoreMouseEvents = "1";
|
|
||||||
position = "-50 0";
|
|
||||||
extent = "10 10";
|
|
||||||
horizSizing = "width";
|
|
||||||
vertSizing = "height";
|
|
||||||
profile = "GuiInputCtrlProfile";
|
|
||||||
tooltipProfile = "GuiToolTipProfile";
|
|
||||||
class = "MenuInputHandler";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
//--- OBJECT WRITE END ---
|
//--- OBJECT WRITE END ---
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,8 @@ $appName = "@TORQUE_APP_NAME@";
|
||||||
// Load up scripts to initialise subsystems.
|
// Load up scripts to initialise subsystems.
|
||||||
ModuleDatabase.setModuleExtension("module");
|
ModuleDatabase.setModuleExtension("module");
|
||||||
ModuleDatabase.scanModules( "core", false );
|
ModuleDatabase.scanModules( "core", false );
|
||||||
ModuleDatabase.LoadExplicit( "CoreModule" );
|
if (!ModuleDatabase.LoadExplicit( "CoreModule" ))
|
||||||
|
quit();
|
||||||
|
|
||||||
// Display a splash window immediately to improve app responsiveness before
|
// Display a splash window immediately to improve app responsiveness before
|
||||||
// engine is initialized and main window created.
|
// engine is initialized and main window created.
|
||||||
|
|
|
||||||
|
|
@ -777,11 +777,13 @@ function GuiEditorResList::init( %this )
|
||||||
// Widescreen formats.
|
// Widescreen formats.
|
||||||
|
|
||||||
%this.add( "1280x720 (WXGA, 16:9)", 720 );
|
%this.add( "1280x720 (WXGA, 16:9)", 720 );
|
||||||
%this.add( "1600x900 (16:9)", 900 );
|
%this.add( "1600x900 (HD+, 16:9)", 900 );
|
||||||
%this.add( "1920x1080 (16:9)", 1080 );
|
%this.add( "1920x1080 (FHD, 16:9)", 1080 );
|
||||||
|
%this.add( "2560x1440 (QHD, 16:9)", 1440 );
|
||||||
|
%this.add( "3840x2160 (4K UHD, 16:9)", 2160 );
|
||||||
%this.add( "1440x900 (WXGA+, 16:10)", 900 );
|
%this.add( "1440x900 (WXGA+, 16:10)", 900 );
|
||||||
%this.add( "1680x1050 (WSXGA+, 16:10)", 1050 );
|
%this.add( "1680x1050 (WSXGA+, 16:10)", 1050 );
|
||||||
%this.add( "1920x1200 (WUXGA, 16:10)", 1200 );
|
%this.add( "1920x1200 (WUXGA, 16:10)", 1200 );
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------
|
||||||
|
|
@ -865,6 +867,12 @@ function GuiEditorResList::onSelect( %this, %id )
|
||||||
|
|
||||||
case 1200:
|
case 1200:
|
||||||
GuiEditor.setPreviewResolution( 1920, 1200 );
|
GuiEditor.setPreviewResolution( 1920, 1200 );
|
||||||
|
|
||||||
|
case 1440:
|
||||||
|
GuiEditor.setPreviewResolution( 2560, 1440 );
|
||||||
|
|
||||||
|
case 2160:
|
||||||
|
GuiEditor.setPreviewResolution( 3840, 2160 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
function EditorLightingMenu::onAdd( %this )
|
function EditorLightingMenu::onAdd( %this )
|
||||||
{
|
{
|
||||||
Parent::onAdd( %this );
|
Parent::onAdd( %this );
|
||||||
|
return;
|
||||||
// Get the light manager names.
|
// Get the light manager names.
|
||||||
%lightManagers = getLightManagerNames();
|
%lightManagers = getLightManagerNames();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue