mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 15:14:35 +00:00
use modal = false profiles for overlay guis not intended to capture clicks
minor layout adjustments
This commit is contained in:
parent
dc41f1f4d7
commit
abe1bc6e1e
1 changed files with 81 additions and 200 deletions
|
|
@ -1,284 +1,165 @@
|
||||||
//--- OBJECT WRITE BEGIN ---
|
//--- OBJECT WRITE BEGIN ---
|
||||||
$guiContent = new GuiContainer(DamageGuiOverlay) {
|
$guiContent = new GuiContainer(damageGuiOverlay) {
|
||||||
isContainer = "1";
|
extent = "1280 720";
|
||||||
Profile = "GuiContentProfile";
|
minExtent = "8 8";
|
||||||
HorizSizing = "relative";
|
horizSizing = "relative";
|
||||||
VertSizing = "relative";
|
vertSizing = "relative";
|
||||||
position = "0 0";
|
profile = "GuiDefaultProfile";
|
||||||
Extent = "1024 768";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
MinExtent = "8 8";
|
|
||||||
canSave = "1";
|
|
||||||
Visible = "1";
|
|
||||||
tooltipprofile = "GuiToolTipProfile";
|
|
||||||
hovertime = "1000";
|
|
||||||
canSaveDynamicFields = "1";
|
canSaveDynamicFields = "1";
|
||||||
Enabled = "1";
|
enabled = "1";
|
||||||
helpTag = "0";
|
helpTag = "0";
|
||||||
noCursor = "1";
|
noCursor = "1";
|
||||||
|
|
||||||
new GuiShapeNameHud() {
|
new GuiShapeNameHud() {
|
||||||
fillColor = "0 0 0 0.25";
|
fillColor = "0 0 0 0.25";
|
||||||
frameColor = "0 1 0 1";
|
|
||||||
textColor = "0 1 0 1";
|
|
||||||
showFill = "0";
|
showFill = "0";
|
||||||
showFrame = "0";
|
showFrame = "0";
|
||||||
verticalOffset = "0.2";
|
verticalOffset = "0.2";
|
||||||
distanceFade = "0.1";
|
extent = "1280 720";
|
||||||
isContainer = "0";
|
minExtent = "8 8";
|
||||||
Profile = "GuiModelessDialogProfile";
|
horizSizing = "width";
|
||||||
HorizSizing = "width";
|
vertSizing = "height";
|
||||||
VertSizing = "height";
|
profile = "GuiModelessDialogProfile";
|
||||||
position = "0 0";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
Extent = "1024 768";
|
|
||||||
MinExtent = "8 8";
|
|
||||||
canSave = "1";
|
|
||||||
Visible = "1";
|
|
||||||
tooltipprofile = "GuiToolTipProfile";
|
|
||||||
hovertime = "1000";
|
|
||||||
canSaveDynamicFields = "0";
|
|
||||||
};
|
};
|
||||||
new GuiCrossHairHud(Reticle) {
|
new GuiCrossHairHud(Reticle) {
|
||||||
damageFillColor = "0 1 0 1";
|
|
||||||
damageFrameColor = "1 0.6 0 1";
|
|
||||||
damageRect = "50 4";
|
|
||||||
damageOffset = "0 10";
|
damageOffset = "0 10";
|
||||||
bitmapAsset = "FPSEquipment:blank_image";
|
BitmapAsset = "FPSEquipment:crosshair_image";
|
||||||
wrap = "0";
|
BitmapFile = "data/FPSEquipment/images/weaponHud/crossHair.png";
|
||||||
isContainer = "0";
|
position = "624 344";
|
||||||
Profile = "GuiModelessDialogProfile";
|
extent = "32 32";
|
||||||
HorizSizing = "center";
|
minExtent = "8 8";
|
||||||
VertSizing = "center";
|
horizSizing = "center";
|
||||||
position = "496 368";
|
vertSizing = "center";
|
||||||
Extent = "32 32";
|
profile = "GuiModelessDialogProfile";
|
||||||
MinExtent = "8 8";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
canSave = "1";
|
|
||||||
Visible = "1";
|
|
||||||
tooltipprofile = "GuiToolTipProfile";
|
|
||||||
hovertime = "1000";
|
|
||||||
canSaveDynamicFields = "0";
|
|
||||||
};
|
};
|
||||||
new GuiCrossHairHud(ZoomReticle) {
|
new GuiCrossHairHud(ZoomReticle) {
|
||||||
damageFillColor = "0 1 0 1";
|
|
||||||
damageFrameColor = "1 0.6 0 1";
|
|
||||||
damageRect = "50 4";
|
|
||||||
damageOffset = "0 10";
|
damageOffset = "0 10";
|
||||||
bitmapAsset = "DamageModel:bino_image";
|
extent = "1280 720";
|
||||||
wrap = "0";
|
minExtent = "8 8";
|
||||||
isContainer = "0";
|
horizSizing = "width";
|
||||||
Profile = "GuiModelessDialogProfile";
|
vertSizing = "height";
|
||||||
HorizSizing = "width";
|
profile = "GuiModelessDialogProfile";
|
||||||
VertSizing = "height";
|
visible = "0";
|
||||||
position = "0 0";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
Extent = "1024 768";
|
hidden = "1";
|
||||||
MinExtent = "8 8";
|
|
||||||
canSave = "1";
|
|
||||||
Visible = "0";
|
|
||||||
tooltipprofile = "GuiToolTipProfile";
|
|
||||||
hovertime = "1000";
|
|
||||||
canSaveDynamicFields = "0";
|
|
||||||
};
|
};
|
||||||
new GuiBitmapBorderCtrl(WeaponHUD) {
|
new GuiBitmapBorderCtrl(WeaponHUD) {
|
||||||
isContainer = "0";
|
position = "78 645";
|
||||||
Profile = "ChatHudBorderProfile";
|
extent = "124 72";
|
||||||
HorizSizing = "right";
|
minExtent = "8 8";
|
||||||
VertSizing = "top";
|
vertSizing = "top";
|
||||||
position = "78 693";
|
profile = "GuiModelessDialogProfile";
|
||||||
Extent = "124 72";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
MinExtent = "8 8";
|
|
||||||
canSave = "1";
|
|
||||||
Visible = "1";
|
|
||||||
tooltipprofile = "GuiToolTipProfile";
|
|
||||||
hovertime = "1000";
|
|
||||||
canSaveDynamicFields = "0";
|
|
||||||
|
|
||||||
new GuiBitmapCtrl() {
|
new GuiBitmapCtrl() {
|
||||||
bitmap = "UI:hudfill_image";
|
position = "8 0";
|
||||||
wrap = "0";
|
extent = "108 56";
|
||||||
isContainer = "0";
|
minExtent = "8 8";
|
||||||
Profile = "GuiDefaultProfile";
|
horizSizing = "width";
|
||||||
HorizSizing = "width";
|
vertSizing = "height";
|
||||||
VertSizing = "height";
|
profile = "GuiModelessDialogProfile";
|
||||||
position = "8 8";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
Extent = "108 56";
|
|
||||||
MinExtent = "8 8";
|
|
||||||
canSave = "1";
|
|
||||||
Visible = "1";
|
|
||||||
tooltipprofile = "GuiToolTipProfile";
|
|
||||||
hovertime = "1000";
|
|
||||||
canSaveDynamicFields = "0";
|
|
||||||
};
|
};
|
||||||
new GuiBitmapCtrl(PreviewImage) {
|
new GuiBitmapCtrl(previewImage) {
|
||||||
bitmapAsset = "UI:hudfill_image";
|
BitmapAsset = "FPSEquipment:ryder_image";
|
||||||
wrap = "0";
|
BitmapFile = "data/FPSEquipment/images/weaponHud/ryder.png";
|
||||||
isContainer = "0";
|
position = "8 0";
|
||||||
Profile = "GuiDefaultProfile";
|
extent = "108 56";
|
||||||
HorizSizing = "width";
|
horizSizing = "width";
|
||||||
VertSizing = "height";
|
vertSizing = "height";
|
||||||
position = "8 8";
|
profile = "GuiModelessDialogProfile";
|
||||||
Extent = "108 56";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
MinExtent = "8 2";
|
|
||||||
canSave = "1";
|
|
||||||
Visible = "1";
|
|
||||||
tooltipprofile = "GuiToolTipProfile";
|
|
||||||
hovertime = "1000";
|
|
||||||
canSaveDynamicFields = "0";
|
|
||||||
};
|
};
|
||||||
new GuiTextCtrl(AmmoAmount) {
|
new GuiTextCtrl(AmmoAmount) {
|
||||||
|
Text = "Ammo: 8/80";
|
||||||
maxLength = "255";
|
maxLength = "255";
|
||||||
Margin = "0 0 0 0";
|
anchorTop = "0";
|
||||||
Padding = "0 0 0 0";
|
anchorLeft = "0";
|
||||||
AnchorTop = "0";
|
position = "8 56";
|
||||||
AnchorBottom = "0";
|
extent = "120 16";
|
||||||
AnchorLeft = "0";
|
minExtent = "8 8";
|
||||||
AnchorRight = "0";
|
vertSizing = "top";
|
||||||
|
profile = "HudTextItalicProfile";
|
||||||
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
isContainer = "0";
|
isContainer = "0";
|
||||||
Profile = "HudTextItalicProfile";
|
|
||||||
HorizSizing = "right";
|
|
||||||
VertSizing = "top";
|
|
||||||
position = "40 8";
|
|
||||||
Extent = "120 16";
|
|
||||||
MinExtent = "8 8";
|
|
||||||
canSave = "1";
|
|
||||||
Visible = "1";
|
|
||||||
tooltipprofile = "GuiToolTipProfile";
|
|
||||||
hovertime = "1000";
|
|
||||||
canSaveDynamicFields = "0";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
new GuiHealthTextHud() {
|
new GuiHealthTextHud() {
|
||||||
fillColor = "0 0 0 0.65";
|
fillColor = "0 0 0 0.65";
|
||||||
frameColor = "0 0 0 1";
|
frameColor = "0 0 0 1";
|
||||||
textColor = "1 1 1 1";
|
textColor = "1 1 1 1";
|
||||||
warningColor = "1 0 0 1";
|
|
||||||
showFill = "1";
|
|
||||||
showFrame = "1";
|
|
||||||
showTrueValue = "0";
|
|
||||||
showEnergy = "0";
|
|
||||||
warnThreshold = "25";
|
warnThreshold = "25";
|
||||||
pulseThreshold = "15";
|
pulseThreshold = "15";
|
||||||
pulseRate = "750";
|
pulseRate = "750";
|
||||||
position = "5 693";
|
position = "5 645";
|
||||||
extent = "72 72";
|
extent = "72 72";
|
||||||
minExtent = "8 2";
|
|
||||||
horizSizing = "right";
|
|
||||||
vertSizing = "top";
|
vertSizing = "top";
|
||||||
profile = "GuiBigTextProfile";
|
profile = "GuiBigTextProfile";
|
||||||
visible = "1";
|
|
||||||
active = "1";
|
|
||||||
tooltipProfile = "GuiToolTipProfile";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
hovertime = "1000";
|
|
||||||
isContainer = "0";
|
|
||||||
canSave = "1";
|
|
||||||
canSaveDynamicFields = "0";
|
|
||||||
};
|
};
|
||||||
new GuiControl(DamageHUD) {
|
new GuiControl(DamageHUD) {
|
||||||
position = "384 256";
|
position = "512 232";
|
||||||
extent = "256 256";
|
extent = "256 256";
|
||||||
minExtent = "8 2";
|
|
||||||
horizSizing = "center";
|
horizSizing = "center";
|
||||||
vertSizing = "center";
|
vertSizing = "center";
|
||||||
profile = "GuiDefaultProfile";
|
profile = "GuiModelessDialogProfile";
|
||||||
visible = "1";
|
|
||||||
active = "1";
|
|
||||||
tooltipProfile = "GuiToolTipProfile";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
hovertime = "1000";
|
|
||||||
isContainer = "1";
|
isContainer = "1";
|
||||||
canSave = "1";
|
|
||||||
canSaveDynamicFields = "0";
|
|
||||||
|
|
||||||
new GuiBitmapCtrl(DamageFront) {
|
new GuiBitmapCtrl(DamageFront) {
|
||||||
bitmapAsset = "DamageModel:damageFront_image";
|
BitmapAsset = "DamageModel:damageFront_image";
|
||||||
wrap = "0";
|
BitmapFile = "data/DamageModel/images/damageFront.png";
|
||||||
position = "0 0";
|
|
||||||
extent = "256 32";
|
extent = "256 32";
|
||||||
minExtent = "8 2";
|
profile = "GuiModelessDialogProfile";
|
||||||
horizSizing = "right";
|
|
||||||
vertSizing = "bottom";
|
|
||||||
profile = "GuiDefaultProfile";
|
|
||||||
visible = "0";
|
visible = "0";
|
||||||
active = "1";
|
|
||||||
tooltipProfile = "GuiToolTipProfile";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
hovertime = "1000";
|
|
||||||
isContainer = "0";
|
|
||||||
internalName = "Damage[Front]";
|
internalName = "Damage[Front]";
|
||||||
hidden = "1";
|
hidden = "1";
|
||||||
canSave = "1";
|
|
||||||
canSaveDynamicFields = "0";
|
|
||||||
};
|
};
|
||||||
new GuiBitmapCtrl(DamageTop) {
|
new GuiBitmapCtrl(DamageTop) {
|
||||||
bitmapAsset = "DamageModel:damageTop_image";
|
BitmapAsset = "DamageModel:damageTop_image";
|
||||||
wrap = "0";
|
BitmapFile = "data/DamageModel/images/damageTop.png";
|
||||||
position = "0 0";
|
|
||||||
extent = "256 32";
|
extent = "256 32";
|
||||||
minExtent = "8 2";
|
profile = "GuiModelessDialogProfile";
|
||||||
horizSizing = "right";
|
|
||||||
vertSizing = "bottom";
|
|
||||||
profile = "GuiDefaultProfile";
|
|
||||||
visible = "0";
|
visible = "0";
|
||||||
active = "1";
|
|
||||||
tooltipProfile = "GuiToolTipProfile";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
hovertime = "1000";
|
|
||||||
isContainer = "0";
|
|
||||||
internalName = "Damage[Top]";
|
internalName = "Damage[Top]";
|
||||||
hidden = "1";
|
hidden = "1";
|
||||||
canSave = "1";
|
|
||||||
canSaveDynamicFields = "0";
|
|
||||||
};
|
};
|
||||||
new GuiBitmapCtrl(DamageBottom) {
|
new GuiBitmapCtrl(DamageBottom) {
|
||||||
bitmapAsset = "DamageModel:damageBottom_image";
|
BitmapAsset = "DamageModel:damageBottom_image";
|
||||||
wrap = "0";
|
BitmapFile = "data/DamageModel/images/damageBottom.png";
|
||||||
position = "0 224";
|
position = "0 224";
|
||||||
extent = "256 32";
|
extent = "256 32";
|
||||||
minExtent = "8 2";
|
profile = "GuiModelessDialogProfile";
|
||||||
horizSizing = "right";
|
|
||||||
vertSizing = "bottom";
|
|
||||||
profile = "GuiDefaultProfile";
|
|
||||||
visible = "0";
|
visible = "0";
|
||||||
active = "1";
|
|
||||||
tooltipProfile = "GuiToolTipProfile";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
hovertime = "1000";
|
|
||||||
isContainer = "0";
|
|
||||||
internalName = "Damage[Bottom]";
|
internalName = "Damage[Bottom]";
|
||||||
hidden = "1";
|
hidden = "1";
|
||||||
canSave = "1";
|
|
||||||
canSaveDynamicFields = "0";
|
|
||||||
};
|
};
|
||||||
new GuiBitmapCtrl(DamageLeft) {
|
new GuiBitmapCtrl(DamageLeft) {
|
||||||
bitmapAsset = "DamageModel:damageLeft_image";
|
BitmapAsset = "DamageModel:damageLeft_image";
|
||||||
wrap = "0";
|
BitmapFile = "data/DamageModel/images/damageLeft.png";
|
||||||
position = "0 0";
|
|
||||||
extent = "32 256";
|
extent = "32 256";
|
||||||
minExtent = "8 2";
|
profile = "GuiModelessDialogProfile";
|
||||||
horizSizing = "right";
|
|
||||||
vertSizing = "bottom";
|
|
||||||
profile = "GuiDefaultProfile";
|
|
||||||
visible = "0";
|
visible = "0";
|
||||||
active = "1";
|
|
||||||
tooltipProfile = "GuiToolTipProfile";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
hovertime = "1000";
|
|
||||||
isContainer = "0";
|
|
||||||
internalName = "Damage[Left]";
|
internalName = "Damage[Left]";
|
||||||
hidden = "1";
|
hidden = "1";
|
||||||
canSave = "1";
|
|
||||||
canSaveDynamicFields = "0";
|
|
||||||
};
|
};
|
||||||
new GuiBitmapCtrl(DamageRight) {
|
new GuiBitmapCtrl(DamageRight) {
|
||||||
bitmapAsset = "DamageModel:damageRight_image";
|
BitmapAsset = "DamageModel:damageRight_image";
|
||||||
wrap = "0";
|
BitmapFile = "data/DamageModel/images/damageRight.png";
|
||||||
position = "224 0";
|
position = "224 0";
|
||||||
extent = "32 256";
|
extent = "32 256";
|
||||||
minExtent = "8 2";
|
profile = "GuiModelessDialogProfile";
|
||||||
horizSizing = "right";
|
|
||||||
vertSizing = "bottom";
|
|
||||||
profile = "GuiDefaultProfile";
|
|
||||||
visible = "0";
|
visible = "0";
|
||||||
active = "1";
|
|
||||||
tooltipProfile = "GuiToolTipProfile";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
hovertime = "1000";
|
|
||||||
isContainer = "0";
|
|
||||||
internalName = "Damage[Right]";
|
internalName = "Damage[Right]";
|
||||||
hidden = "1";
|
hidden = "1";
|
||||||
canSave = "1";
|
|
||||||
canSaveDynamicFields = "0";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue