mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 08:34:40 +00:00
options menu: rem keybind debug spam
damagemodel module: ensure it's got a dependency of the UI module so it's called after switch all profiles for damageoverlay over to GuiModelessDialogProfile from default
This commit is contained in:
parent
c78b60b5e8
commit
7bca1dba53
3 changed files with 10 additions and 8 deletions
|
|
@ -4,7 +4,9 @@
|
||||||
Group="Game"
|
Group="Game"
|
||||||
scriptFile="DamageModel.tscript"
|
scriptFile="DamageModel.tscript"
|
||||||
CreateFunction="onCreate"
|
CreateFunction="onCreate"
|
||||||
DestroyFunction="onDestroy">
|
DestroyFunction="onDestroy"
|
||||||
|
Group="Game"
|
||||||
|
Dependencies="UI=1">
|
||||||
<DeclaredAssets
|
<DeclaredAssets
|
||||||
Extension="asset.taml"
|
Extension="asset.taml"
|
||||||
Recurse="true"/>
|
Recurse="true"/>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ $guiContent = new GuiContainer(damageGuiOverlay) {
|
||||||
minExtent = "8 8";
|
minExtent = "8 8";
|
||||||
horizSizing = "relative";
|
horizSizing = "relative";
|
||||||
vertSizing = "relative";
|
vertSizing = "relative";
|
||||||
profile = "GuiDefaultProfile";
|
profile = "GuiModelessDialogProfile";
|
||||||
tooltipProfile = "GuiToolTipProfile";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
canSaveDynamicFields = "1";
|
canSaveDynamicFields = "1";
|
||||||
enabled = "1";
|
enabled = "1";
|
||||||
|
|
@ -25,7 +25,6 @@ $guiContent = new GuiContainer(damageGuiOverlay) {
|
||||||
};
|
};
|
||||||
new GuiCrossHairHud(Reticle) {
|
new GuiCrossHairHud(Reticle) {
|
||||||
damageOffset = "0 10";
|
damageOffset = "0 10";
|
||||||
BitmapAsset = "";
|
|
||||||
position = "624 344";
|
position = "624 344";
|
||||||
extent = "32 32";
|
extent = "32 32";
|
||||||
minExtent = "8 8";
|
minExtent = "8 8";
|
||||||
|
|
@ -64,6 +63,7 @@ $guiContent = new GuiContainer(damageGuiOverlay) {
|
||||||
};
|
};
|
||||||
new GuiBitmapCtrl(previewImage) {
|
new GuiBitmapCtrl(previewImage) {
|
||||||
BitmapAsset = "UI:hudfill_image";
|
BitmapAsset = "UI:hudfill_image";
|
||||||
|
BitmapFile = "data/UI/images/hudfill.png";
|
||||||
position = "8 0";
|
position = "8 0";
|
||||||
extent = "108 56";
|
extent = "108 56";
|
||||||
horizSizing = "width";
|
horizSizing = "width";
|
||||||
|
|
@ -80,7 +80,7 @@ $guiContent = new GuiContainer(damageGuiOverlay) {
|
||||||
extent = "120 16";
|
extent = "120 16";
|
||||||
minExtent = "8 8";
|
minExtent = "8 8";
|
||||||
vertSizing = "top";
|
vertSizing = "top";
|
||||||
profile = "HudTextItalicProfile";
|
profile = "GuiModelessDialogProfile";
|
||||||
tooltipProfile = "GuiToolTipProfile";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
isContainer = "0";
|
isContainer = "0";
|
||||||
};
|
};
|
||||||
|
|
@ -95,7 +95,7 @@ $guiContent = new GuiContainer(damageGuiOverlay) {
|
||||||
position = "5 645";
|
position = "5 645";
|
||||||
extent = "72 72";
|
extent = "72 72";
|
||||||
vertSizing = "top";
|
vertSizing = "top";
|
||||||
profile = "GuiBigTextProfile";
|
profile = "GuiModelessDialogProfile";
|
||||||
tooltipProfile = "GuiToolTipProfile";
|
tooltipProfile = "GuiToolTipProfile";
|
||||||
};
|
};
|
||||||
new GuiControl(DamageHUD) {
|
new GuiControl(DamageHUD) {
|
||||||
|
|
|
||||||
|
|
@ -1036,7 +1036,7 @@ function OptionsMenu::populateKeybinds(%this,%device, %controlsList) {
|
||||||
if($activeRemapControlSet $= "")
|
if($activeRemapControlSet $= "")
|
||||||
$activeRemapControlSet = getField(%actionMapList, 0);
|
$activeRemapControlSet = getField(%actionMapList, 0);
|
||||||
|
|
||||||
echo("============================================");
|
//echo("============================================");
|
||||||
|
|
||||||
for(%am = 0; %am < getFieldCount(%actionMapList); %am++)
|
for(%am = 0; %am < getFieldCount(%actionMapList); %am++)
|
||||||
{
|
{
|
||||||
|
|
@ -1064,7 +1064,7 @@ function OptionsMenu::populateKeybinds(%this,%device, %controlsList) {
|
||||||
%keyMap = buildFullMapString( %i, $RemapActionMap[%i], %device );
|
%keyMap = buildFullMapString( %i, $RemapActionMap[%i], %device );
|
||||||
%description = $RemapDescription[%i];
|
%description = $RemapDescription[%i];
|
||||||
|
|
||||||
echo("Added ActionMap Entry: " @ %actionMapName @ " | " @ %device @ " | " @ %keymap @ " | " @ %description);
|
//echo("Added ActionMap Entry: " @ %actionMapName @ " | " @ %device @ " | " @ %keymap @ " | " @ %description);
|
||||||
|
|
||||||
%remapEntry = addActionMapEntry(%actionMapName, %device, %keyMap, %i, %description);
|
%remapEntry = addActionMapEntry(%actionMapName, %device, %keyMap, %i, %description);
|
||||||
%controlsList.add(%remapEntry);
|
%controlsList.add(%remapEntry);
|
||||||
|
|
@ -1245,7 +1245,7 @@ function addActionMapEntry(%actionMap, %device, %keyMap, %index, %description)
|
||||||
};
|
};
|
||||||
|
|
||||||
%buttonContainer = %entry.findObjectByInternalName("valuesContainer");
|
%buttonContainer = %entry.findObjectByInternalName("valuesContainer");
|
||||||
echo("Keymap: " @ %keymap @ " | Keymap word count: " @ getWordCount(getField(%keyMap, 1)));
|
//echo("Keymap: " @ %keymap @ " | Keymap word count: " @ getWordCount(getField(%keyMap, 1)));
|
||||||
if(getWordCount(getField(%keyMap, 1)) == 2)
|
if(getWordCount(getField(%keyMap, 1)) == 2)
|
||||||
{
|
{
|
||||||
%modifierBtn = new GuiIconButtonCtrl() {
|
%modifierBtn = new GuiIconButtonCtrl() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue