mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 07:04:36 +00:00
gui types using image_asset
This commit is contained in:
parent
fa8110ce8f
commit
f519cff6ff
25 changed files with 184 additions and 266 deletions
|
|
@ -28,7 +28,7 @@ $guiContent = new GameTSCtrl(PlayGui) {
|
|||
noCursor = "1";
|
||||
|
||||
new GuiBitmapCtrl(LagIcon) {
|
||||
bitmap = "data/ui/art/lagIcon.png";
|
||||
bitmapAsset = "UI:lagIcon_image";
|
||||
color = "255 255 255 255";
|
||||
wrap = "0";
|
||||
position = "572 3";
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ $guiContent = new GuiControl(AssetPreviewButtonsTemplate) {
|
|||
canSaveDynamicFields = "0";
|
||||
|
||||
new GuiBitmapButtonCtrl() {
|
||||
bitmap = "tools/materialEditor/gui/cubemapBtnBorder";
|
||||
bitmapAsset = "ToolsModule:cubemapBtnBorder_n_image";
|
||||
bitmapMode = "Stretched";
|
||||
autoFitExtents = "0";
|
||||
useModifiers = "0";
|
||||
|
|
@ -163,7 +163,7 @@ $guiContent = new GuiControl(AssetPreviewButtonsTemplate) {
|
|||
canSaveDynamicFields = "0";
|
||||
|
||||
new GuiBitmapButtonCtrl() {
|
||||
bitmap = "Data/Blockout_Basics/Walls/WallGrid2x2_Albedo.png";
|
||||
bitmapAsset = "Data/Blockout_Basics/Walls/WallGrid2x2_Albedo.png";
|
||||
bitmapMode = "Stretched";
|
||||
autoFitExtents = "0";
|
||||
useModifiers = "0";
|
||||
|
|
@ -188,7 +188,7 @@ $guiContent = new GuiControl(AssetPreviewButtonsTemplate) {
|
|||
canSaveDynamicFields = "0";
|
||||
|
||||
new GuiBitmapButtonCtrl() {
|
||||
bitmap = "tools/materialEditor/gui/cubemapBtnBorder";
|
||||
bitmapAsset = "ToolsModule:cubemapBtnBorder_n_image";
|
||||
bitmapMode = "Stretched";
|
||||
autoFitExtents = "0";
|
||||
useModifiers = "0";
|
||||
|
|
|
|||
|
|
@ -2565,7 +2565,7 @@ function GuiEditor::onControlDropped(%this, %payload, %position)
|
|||
{
|
||||
%cmd = "return new guiBitmapCtrl();";
|
||||
%ctrl = eval( %cmd );
|
||||
%ctrl.bitmap = %assetId;
|
||||
%ctrl.bitmapAsset = %assetId;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ new GuiControl(MaterialSelectorOverlay, EditorGuiGroup) {
|
|||
Command = "MaterialSelector.createNewMaterial();";
|
||||
hovertime = "1000";
|
||||
tooltip = "Create New Unmapped Material";
|
||||
bitmap = "tools/gui/images/new";
|
||||
bitmapAsset = "ToolsModule:new_n_image";
|
||||
groupNum = "-1";
|
||||
buttonType = "PushButton";
|
||||
useMouseEvents = "0";
|
||||
|
|
@ -1649,7 +1649,7 @@ function MaterialSelector::createNewMaterial( %this )
|
|||
position = "7 4";
|
||||
extent = "64 64";
|
||||
buttonType = "PushButton";
|
||||
bitmap = "core/images/warnmat";
|
||||
bitmapAsset = "CoreModule:warnMat_image";
|
||||
Command = "";
|
||||
text = "Loading...";
|
||||
useStates = false;
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ $guiContent = new GuiChunkedBitmapCtrl(EditorChooseGUI, EditorGuiGroup) {
|
|||
Visible = "1";
|
||||
tooltipprofile = "ToolsGuiToolTipProfile";
|
||||
hovertime = "1000";
|
||||
bitmap = "data/ui/images/background.png";
|
||||
bitmapAsset = "UI:background_image";
|
||||
useVariable = "0";
|
||||
tile = "0";
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
singleton GuiControlProfile (GuiMatEdSliderProfile)
|
||||
{
|
||||
bitmap = "./matEdSlider";
|
||||
bitmapAsset = "ToolsModule:slider_image";
|
||||
category = "Editor";
|
||||
};
|
||||
|
||||
|
|
@ -47,9 +47,7 @@ singleton GuiControlProfile(GuiMatEdPopUpMenuProfile)
|
|||
mouseOverSelected = true;
|
||||
textOffset = "3 3";
|
||||
border = 1;
|
||||
/*borderThickness = 1;*/
|
||||
fixedExtent = true;
|
||||
//bitmap = "./images/scrollbar";
|
||||
bitmapAsset = "ToolsModule:scroll_image";
|
||||
hasBitmapArray = true;
|
||||
profileForChildren = GuiControlListPopupProfile;
|
||||
|
|
|
|||
|
|
@ -4821,7 +4821,7 @@ $guiContent = new GuiControl(MaterialEditorGui,EditorGuiGroup) {
|
|||
tooltipprofile = "ToolsGuiToolTipProfile";
|
||||
buttonType = "PushButton";
|
||||
useMouseEvents = "0";
|
||||
bitmap = "ToolsModule:new_n_image";
|
||||
bitmapAsset = "ToolsModule:new_n_image";
|
||||
};
|
||||
// Save Button
|
||||
new GuiBitmapButtonCtrl() {
|
||||
|
|
|
|||
|
|
@ -4846,7 +4846,7 @@ $guiContent = new GuiControl(MaterialEditorGui,EditorGuiGroup) {
|
|||
tooltipprofile = "ToolsGuiToolTipProfile";
|
||||
buttonType = "PushButton";
|
||||
useMouseEvents = "0";
|
||||
bitmap = "ToolsModule:new_n_image";
|
||||
bitmapAsset = "ToolsModule:new_n_image";
|
||||
};
|
||||
// Save Button
|
||||
new GuiBitmapButtonCtrl() {
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ $guiContent = new GuiControl(NavEditorToolbar,EditorGuiGroup) {
|
|||
canSaveDynamicFields = "0";
|
||||
};
|
||||
new GuiBitmapCtrl() {
|
||||
bitmap = "core/gui/images/separator-h.png";
|
||||
bitmapAsset = "ToolsModule:separator_h_image";
|
||||
wrap = "0";
|
||||
position = "90 3";
|
||||
extent = "2 26";
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ $guiContent = new GuiContainer(EditorChooseLevelGui, EditorGuiGroup) {
|
|||
Visible = "1";
|
||||
tooltipprofile = "ToolsGuiToolTipProfile";
|
||||
hovertime = "1000";
|
||||
bitmap = "data/ui/images/background.png";
|
||||
bitmapAsset = "UI:background_image";
|
||||
useVariable = "0";
|
||||
tile = "0";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -115,8 +115,8 @@ $guiContent = new GuiContainer(EditorGui,EditorGuiGroup) {
|
|||
selectionBoxColor = "255 255 0 255";
|
||||
selectionLocked = "0";
|
||||
toggleIgnoreList = "0";
|
||||
selectHandle = "ToolsModule:SelectHandle_image";
|
||||
defaultHandle = "ToolsModule:DefaultHandle_image";
|
||||
selectHandleAsset = "ToolsModule:SelectHandle_image";
|
||||
defaultHandleAsset = "ToolsModule:DefaultHandle_image";
|
||||
lockedHandleAsset = "ToolsModule:LockedHandle_image";
|
||||
};
|
||||
new TerrainEditor(ETerrainEditor) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue