-
-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implementation of Nils' UI work for updated theming, functionality an…
…d style for the editors suite
- Loading branch information
Showing
908 changed files
with
15,324 additions
and
3,008 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
Templates/BaseGame/game/tools/VPathEditor/GUI/Images/Images_btn_Palette_h_image.asset.taml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<ImageAsset | ||
canSave="true" | ||
canSaveDynamicFields="true" | ||
AssetName="Images_btn_Palette_h_image" | ||
imageFile="@assetFile=btn_Palette_h.png" | ||
AssetName="Images_btn_Palette_d_image" | ||
imageFile="@assetFile=btn_Palette_d.png" | ||
UseMips="true" | ||
isHDRImage="false" | ||
imageType="Albedo" /> |
2 changes: 1 addition & 1 deletion
2
Templates/BaseGame/game/tools/VPathEditor/GUI/Images/Images_btn_Palette_n_image.asset.taml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-2.81 KB
(8.1%)
Templates/BaseGame/game/tools/VPathEditor/GUI/Images/btn_Palette_d.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.98 KB
(7.6%)
Templates/BaseGame/game/tools/VPathEditor/GUI/Images/btn_Palette_h.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.63 KB
(8.0%)
Templates/BaseGame/game/tools/VPathEditor/GUI/Images/btn_Palette_n.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.03 KB
Templates/BaseGame/game/tools/VPathEditor/GUI/Images/btn_VMovie_d.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions
8
Templates/BaseGame/game/tools/VPathEditor/GUI/Images/btn_VMovie_d_image.asset.taml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<ImageAsset | ||
canSave="true" | ||
canSaveDynamicFields="true" | ||
AssetName="btn_VMovie_d_image" | ||
imageFile="@assetFile=btn_VMovie_d.png" | ||
UseMips="true" | ||
isHDRImage="false" | ||
imageType="Albedo" /> |
Binary file added
BIN
+917 Bytes
Templates/BaseGame/game/tools/VPathEditor/GUI/Images/btn_VMovie_h.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions
8
Templates/BaseGame/game/tools/VPathEditor/GUI/Images/btn_VMovie_h_image.asset.taml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<ImageAsset | ||
canSave="true" | ||
canSaveDynamicFields="true" | ||
AssetName="btn_VMovie_h_image" | ||
imageFile="@assetFile=btn_VMovie_h.png" | ||
UseMips="true" | ||
isHDRImage="false" | ||
imageType="Albedo" /> |
Binary file added
BIN
+584 Bytes
Templates/BaseGame/game/tools/VPathEditor/GUI/Images/btn_VMovie_n.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions
8
Templates/BaseGame/game/tools/VPathEditor/GUI/Images/btn_VMovie_n_image.asset.taml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<ImageAsset | ||
canSave="true" | ||
canSaveDynamicFields="true" | ||
AssetName="btn_VMovie_n_image" | ||
imageFile="@assetFile=btn_VMovie_n.png" | ||
UseMips="true" | ||
isHDRImage="false" | ||
imageType="Albedo" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
121 changes: 121 additions & 0 deletions
121
Templates/BaseGame/game/tools/VPathEditor/Scripts/GuiScript.tscript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
//----------------------------------------------------------------------------- | ||
// Copyright (c) 2012 GarageGames, LLC | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
// of this software and associated documentation files (the "Software"), to | ||
// deal in the Software without restriction, including without limitation the | ||
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | ||
// sell copies of the Software, and to permit persons to whom the Software is | ||
// furnished to do so, subject to the following conditions: | ||
// | ||
// The above copyright notice and this permission notice shall be included in | ||
// all copies or substantial portions of the Software. | ||
// | ||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS | ||
// IN THE SOFTWARE. | ||
//----------------------------------------------------------------------------- | ||
|
||
function EVPathEditor::maxSize(%this, %window) | ||
{ | ||
// Resize the windows to the max height | ||
// and force these to the right side if set | ||
if(EditorSettings.value( "WorldEditor/forceSidebarToSide" ) == 1 && %this.resizing == true) | ||
{ | ||
// prevent onResize after a resize | ||
%this.resizing = false; | ||
|
||
%fixedWindow = VPathEditorTreeWindow; | ||
%fluidWindow = VPathEditorOptionsWindow; | ||
%top = EditorGuiToolbar.extent.y + 6; | ||
%bottom = %top + 65 - 6; | ||
%maxHeight = Canvas.extent.y - %top - %bottom; | ||
|
||
// --- Fixed window (top) ------------------------------------------------ | ||
// put it back if it moved | ||
%fixedWindow.position.x = Canvas.extent.x - %fixedWindow.extent.x; | ||
%fixedWindow.position.y = %top; | ||
|
||
// don't go beyond the canvas | ||
if(%fixedWindow.extent.y > %maxHeight) | ||
%fixedWindow.extent.y = %maxHeight - %fluidWindow.extent.y; | ||
|
||
%position = %fixedWindow.position.x SPC %fixedWindow.position.y; | ||
%extent = %window.extent.x SPC %fixedWindow.extent.y; | ||
%fixedWindow.resize(%position.x, %position.y, %extent.x, %extent.y); | ||
|
||
// --- Fluid window (bottom) --------------------------------------------- | ||
// position is relative to the top window | ||
%position = %fixedWindow.position.x SPC %fixedWindow.extent.y + %top; | ||
%extent = %window.extent.x SPC Canvas.extent.y - %fixedWindow.extent.y - %bottom; | ||
%fluidWindow.resize(%position.x, %position.y, %extent.x, %extent.y); | ||
|
||
// --- AssetBrowser window ---------------------------------------------- | ||
if(isObject(AssetBrowserWindow)) | ||
{ | ||
// Only resize the AssetBrowser if it's docked | ||
if(AssetBrowserWindow.docked == true) | ||
{ | ||
// The width is relative to the sidepanel | ||
%browserWidth = Canvas.extent.x - %extent.x; | ||
%browserHeight = AssetBrowserWindow.extent.y; | ||
%browserPosY = Canvas.extent.y - AssetBrowserWindow.extent.y - 33; | ||
AssetBrowserWindow.resize(0, %browserPosY, %browserWidth, %browserHeight); | ||
} | ||
} | ||
// --- Windowed Console -------------------------------------------------- | ||
if(isObject(windowConsoleControl)) | ||
{ | ||
// Only resize the AssetBrowser if it's docked | ||
if(windowConsoleControl.docked == true) | ||
{ | ||
// The width is relative to the sidepanel | ||
%consoleWidth = Canvas.extent.x - %extent.x; | ||
%consoleHeight = windowConsoleControl.extent.y; | ||
%consolePosY = Canvas.extent.y - windowConsoleControl.extent.y - 33; | ||
windowConsoleControl.resize(0, %consolePosY, %consoleWidth, %consoleHeight); | ||
} | ||
} | ||
} | ||
} | ||
|
||
function VPathEditorTreeWindow::onMouseDragged(%this) | ||
{ | ||
%parent = EVPathEditor; | ||
|
||
if(%parent.resizing == false) | ||
{ | ||
%parent.resizing = true; | ||
%parent.maxSize(%this); | ||
} | ||
} | ||
|
||
function VPathEditorOptionsWindow::onMouseDragged(%this) | ||
{ | ||
%parent = EVPathEditor; | ||
|
||
if(%parent.resizing == false) | ||
{ | ||
%parent.resizing = true; | ||
%parent.maxSize(%this); | ||
} | ||
} | ||
|
||
function EVPathEditor::onResize(%this, %newPosition, %newExtent) | ||
{ | ||
// Window to focus on (mostly the fluid window) | ||
%window = RoadEditorOptionsWindow; | ||
|
||
if(%this.resizing == false) | ||
{ | ||
// Only resize once | ||
%this.resizing = true; | ||
%this.maxSize(%window); | ||
} | ||
|
||
FieldInfoControl.position = 5 SPC EWInspectorWindow.extent.y - 40; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.