performance widget changes

This commit is contained in:
2022-05-15 18:00:22 +03:00
parent 6a4ecfdf0b
commit e994677566
5 changed files with 189 additions and 306 deletions

View File

@@ -6,128 +6,127 @@
{
"ID": "9e1b61dc44338f962e69f78ecb3d0536",
"TypeName": "FlaxEngine.UICanvas",
"ParentID": "00000000000000000000000000000000",
"Name": "DefaultHudPrefab",
"Transform": {
"Orientation": {
"X": 1.0,
"Y": 4.3711388286737938e-8,
"Z": 4.3711388286737938e-8,
"Y": 4.371138828673793e-8,
"Z": 4.371138828673793e-8,
"W": 1.910685465164705e-15
}
},
"V": {}
},
{
"ID": "d64fff8743e0d5893c235c94e7070976",
"TypeName": "Cabrito.FpsScript",
"ID": "e94561104b27c841e6ab0bb479bde17a",
"TypeName": "Game.ConsoleScript",
"ParentID": "9e1b61dc44338f962e69f78ecb3d0536",
"V": {
"control": "74464027453c88b3203fa79333f0730e"
}
"BackgroundColor": {
"R": 0.0,
"G": 0.0,
"B": 0.0,
"A": 1.0
},
"ConsoleFont": "43f32bec443158643f53699f07b2e09c"
}
},
{
"ID": "0c7588dd41779a8ada6f57974d94e073",
"TypeName": "Cabrito.ConsoleScript",
"ParentID": "9e1b61dc44338f962e69f78ecb3d0536",
"V": {
"BackgroundColor": {
"R": 0.0,
"G": 0.0,
"B": 0.0,
"A": 1.0
},
"ConsoleFont": "43f32bec443158643f53699f07b2e09c"
}
},
{
"ID": "74464027453c88b3203fa79333f0730e",
"ID": "926bc11f416c9cef57d383875a480ded",
"TypeName": "FlaxEngine.UIControl",
"ParentID": "9e1b61dc44338f962e69f78ecb3d0536",
"Name": "FPSUIControl",
"Name": "PerformanceWidget",
"Transform": {
"Translation": {
"X": 0.0,
"Y": 716.0,
"X": -1.0,
"Y": 38.0,
"Z": 0.0
}
},
"Control": "FlaxEngine.GUI.Label",
"Data": {
"Text": "eFPS: 121 uTime: 116.42902\nuFPS: 120 uTime: 0\nrFPS: 120 rTime: 0\npFPS: 30 pTime: 0",
"TextColor": {
"R": 1.0,
"G": 1.0,
"B": 1.0,
"A": 1.0
},
"TextColorHighlighted": {
"R": 1.0,
"G": 1.0,
"B": 1.0,
"A": 1.0
},
"HorizontalAlignment": 0,
"VerticalAlignment": 0,
"Wrapping": 0,
"Font": {
"Font": "4508d98f4aa1f0bd59362b81d47e38f4",
"Size": 10
},
"Material": null,
"Margin": {
"Left": 0.0,
"Right": 0.0,
"Top": 0.0,
"Bottom": 0.0
},
"ClipText": false,
"AutoWidth": true,
"AutoHeight": true,
"AutoFitText": false,
"AutoFitTextRange": {
"X": 0.1,
"Y": 100.0
},
"ClipChildren": true,
"CullChildren": true,
"AnchorMin": {
"X": 0.0,
"Y": 1.0
},
"AnchorMax": {
"X": 0.0,
"Y": 1.0
},
"Offsets": {
"Left": 0.0,
"Right": 161.0,
"Top": -97.0,
"Bottom": 64.0
},
"Scale": {
"X": 1.0,
"Y": 1.0
},
"Pivot": {
"X": 0.5,
"Y": 0.5
},
"Shear": {
"X": 0.0,
"Y": 0.0
},
"Rotation": 0.0,
"BackgroundColor": {
"R": 0.0,
"G": 0.0,
"B": 0.0,
"A": 0.0
},
"Enabled": true,
"Visible": true,
"AutoFocus": false
}
"Text": "120fps",
"TextColor": {
"R": 1.0,
"G": 1.0,
"B": 1.0,
"A": 1.0
},
"TextColorHighlighted": {
"R": 1.0,
"G": 1.0,
"B": 1.0,
"A": 1.0
},
"HorizontalAlignment": 2,
"VerticalAlignment": 2,
"Wrapping": 0,
"Font": {
"Font": "43f32bec443158643f53699f07b2e09c",
"Size": 15
},
"Material": null,
"Margin": {
"Left": 0.0,
"Right": 0.0,
"Top": 0.0,
"Bottom": 0.0
},
"ClipText": false,
"AutoWidth": false,
"AutoHeight": false,
"AutoFitText": false,
"AutoFitTextRange": {
"X": 0.1,
"Y": 100.0
},
"ClipChildren": true,
"CullChildren": true,
"AnchorMin": {
"X": 1.0,
"Y": 1.0
},
"AnchorMax": {
"X": 1.0,
"Y": 1.0
},
"Offsets": {
"Left": -101.0,
"Right": 100.0,
"Top": -22.0,
"Bottom": 20.0
},
"Scale": {
"X": 1.0,
"Y": 1.0
},
"Pivot": {
"X": 0.5,
"Y": 0.5
},
"Shear": {
"X": 0.0,
"Y": 0.0
},
"Rotation": 0.0,
"BackgroundColor": {
"R": 0.0,
"G": 0.0,
"B": 0.0,
"A": 0.0
},
"Enabled": true,
"Visible": true,
"AutoFocus": false
}
},
{
"ID": "85ddca4e46ed0c030d063599ac716e96",
"TypeName": "Game.PerformanceWidget",
"ParentID": "926bc11f416c9cef57d383875a480ded",
"V": {
"control": "926bc11f416c9cef57d383875a480ded"
}
}
]
}

View File

@@ -33,42 +33,42 @@
"V": {}
},
{
"ID": "791756db4da9af04d7513f9f305e4652",
"ID": "02119c7243cb3a4a4ffcd395ff07e23d",
"PrefabID": "cb74184545f392e5c67815808bc63e58",
"PrefabObjectID": "d64fff8743e0d5893c235c94e7070976",
"ParentID": "ff6b6db54b5aa08e7286ef86246149ef",
"V": {
"control": "d15fa816476f9d66ebdfc7ae25c3c6ea"
}
},
{
"ID": "b20f2b0a486762a15e6a7caf72ae66c2",
"PrefabID": "cb74184545f392e5c67815808bc63e58",
"PrefabObjectID": "0c7588dd41779a8ada6f57974d94e073",
"PrefabObjectID": "e94561104b27c841e6ab0bb479bde17a",
"ParentID": "ff6b6db54b5aa08e7286ef86246149ef",
"V": {}
},
{
"ID": "d15fa816476f9d66ebdfc7ae25c3c6ea",
"ID": "ad0c546649722a6c7a6b9aa8fdcac019",
"PrefabID": "cb74184545f392e5c67815808bc63e58",
"PrefabObjectID": "74464027453c88b3203fa79333f0730e",
"PrefabObjectID": "926bc11f416c9cef57d383875a480ded",
"ParentID": "ff6b6db54b5aa08e7286ef86246149ef",
"Transform": {
"Translation": {
"X": 0.0,
"Y": 716.0,
"X": 1355.0,
"Y": 791.0,
"Z": 0.0
}
},
"Data": {
"Text": "eFPS: 120 uTime: 4.1501515\nuFPS: 120 uTime: 0\nrFPS: 120 rTime: 0\npFPS: 30 pTime: 0"
"Text": "15fps"
}
},
{
"ID": "35b34b0c4476f0ed43aa8fb4d5f2eebc",
"PrefabID": "cb74184545f392e5c67815808bc63e58",
"PrefabObjectID": "85ddca4e46ed0c030d063599ac716e96",
"ParentID": "ad0c546649722a6c7a6b9aa8fdcac019",
"V": {
"control": "ad0c546649722a6c7a6b9aa8fdcac019"
}
},
{
"ID": "9b0c532d4247061970c809a0af58c82a",
"TypeName": "FlaxEngine.PostFxVolume",
"ParentID": "194e05f445ece24ec5448d886e1334df",
"Name": "PostFxVolume 0",
"Name": "GlobalPostFxVolume",
"Size": {
"X": 10.0,
"Y": 10.0,