From d5318ac86b8614f909f882317e7272050a303a06 Mon Sep 17 00:00:00 2001 From: gahusb Date: Mon, 15 Jun 2026 00:50:17 +0900 Subject: [PATCH] feat(ui): style monster damage numbers --- RootDesk/MyDesk/SlayDeckController.codeblock | 2 +- tools/deck/gen-slaydeck.mjs | 41 +- ui/DefaultGroup.ui | 872 +++++++++++++++++-- 3 files changed, 848 insertions(+), 67 deletions(-) diff --git a/RootDesk/MyDesk/SlayDeckController.codeblock b/RootDesk/MyDesk/SlayDeckController.codeblock index eecd9d4..7375679 100644 --- a/RootDesk/MyDesk/SlayDeckController.codeblock +++ b/RootDesk/MyDesk/SlayDeckController.codeblock @@ -3061,7 +3061,7 @@ "Name": "amount" } ], - "Code": "local base = \"/ui/DefaultGroup/CombatHud/MonsterSlot\" .. tostring(slot) .. \"/DmgPop\"\nself:SetText(base, \"-\" .. string.format(\"%d\", amount))\nself:SetEntityEnabled(base, true)\n_TimerService:SetTimerOnce(function() self:SetEntityEnabled(base, false) end, 0.6)", + "Code": "local base = \"/ui/DefaultGroup/CombatHud/MonsterSlot\" .. tostring(slot) .. \"/DmgPop\"\nlocal pop = _EntityService:GetEntityByPath(base)\nself:SetText(base, string.format(\"%d\", amount))\nself:SetEntityEnabled(base, true)\nself:SetEntityEnabled(base .. \"/Accent\", true)\nif pop ~= nil and pop.UITransformComponent ~= nil then\n\tpop.UITransformComponent.anchoredPosition = Vector2(0, 76)\nend\nlocal startY = 76\nfor i = 1, 6 do\n\t_TimerService:SetTimerOnce(function()\n\t\tlocal p = _EntityService:GetEntityByPath(base)\n\t\tif p ~= nil and p.UITransformComponent ~= nil then\n\t\t\tp.UITransformComponent.anchoredPosition = Vector2(0, startY + i * 7)\n\t\tend\n\tend, 0.045 * i)\nend\n_TimerService:SetTimerOnce(function()\n\tself:SetEntityEnabled(base, false)\n\tself:SetEntityEnabled(base .. \"/Accent\", false)\nend, 0.48)", "Scope": 2, "ExecSpace": 6, "Attributes": [], diff --git a/tools/deck/gen-slaydeck.mjs b/tools/deck/gen-slaydeck.mjs index f7b30a6..8fd71b6 100644 --- a/tools/deck/gen-slaydeck.mjs +++ b/tools/deck/gen-slaydeck.mjs @@ -1188,15 +1188,27 @@ function upsertUi() { const dmgPop = entity({ id: guid('cmb', 250 + i), path: `${base}/DmgPop`, modelId: 'uitext', entryId: 'UIText', componentNames: 'MOD.Core.UITransformComponent,MOD.Core.SpriteGUIRendererComponent,MOD.Core.TextComponent', - displayOrder: 9, + displayOrder: 11, components: [ - transform({ parentW: SLOT_W, parentH: SLOT_H, anchor: { x: 0.5, y: 0.5 }, pivot: { x: 0.5, y: 0.5 }, size: { x: 120, y: 30 }, pos: { x: 0, y: 60 } }), - sprite({ color: TRANSPARENT }), - text({ value: '', fontSize: 24, bold: true, color: { r: 1, g: 0.35, b: 0.3, a: 1 }, alignment: 4 }), + transform({ parentW: SLOT_W, parentH: SLOT_H, anchor: { x: 0.5, y: 0.5 }, pivot: { x: 0.5, y: 0.5 }, size: { x: 170, y: 52 }, pos: { x: 0, y: 76 } }), + sprite({ color: { r: 0.12, g: 0.02, b: 0.02, a: 0.72 }, type: 1 }), + text({ value: '', fontSize: 36, bold: true, color: { r: 1, g: 0.9, b: 0.18, a: 1 }, alignment: 4, outlineWidth: 5 }), ], }); dmgPop.jsonString.enable = false; combat.push(dmgPop); + const dmgAccent = entity({ + id: guid('cmb', 380 + i), path: `${base}/DmgPop/Accent`, modelId: 'uitext', entryId: 'UIText', + componentNames: 'MOD.Core.UITransformComponent,MOD.Core.SpriteGUIRendererComponent,MOD.Core.TextComponent', + displayOrder: 12, + components: [ + transform({ parentW: 170, parentH: 52, anchor: { x: 0.5, y: 0.5 }, pivot: { x: 0.5, y: 0.5 }, size: { x: 170, y: 20 }, pos: { x: 0, y: -22 } }), + sprite({ color: TRANSPARENT }), + text({ value: 'DAMAGE', fontSize: 14, bold: true, color: { r: 1, g: 0.28, b: 0.16, a: 1 }, alignment: 4, outlineWidth: 2 }), + ], + }); + dmgAccent.jsonString.enable = false; + combat.push(dmgAccent); const mBlockBadge = entity({ id: guid('cmb', 270 + i), path: `${base}/BlockBadge`, modelId: 'uisprite', entryId: 'UISprite', componentNames: 'MOD.Core.UITransformComponent,MOD.Core.SpriteGUIRendererComponent', @@ -5001,9 +5013,26 @@ end self:SetText("/ui/DefaultGroup/CombatHud/PlayerPanel/Buffs", pb) self:RenderRun()`), method('ShowDmgPop', `local base = "/ui/DefaultGroup/CombatHud/MonsterSlot" .. tostring(slot) .. "/DmgPop" -self:SetText(base, "-" .. string.format("%d", amount)) +local pop = _EntityService:GetEntityByPath(base) +self:SetText(base, string.format("%d", amount)) self:SetEntityEnabled(base, true) -_TimerService:SetTimerOnce(function() self:SetEntityEnabled(base, false) end, 0.6)`, [ +self:SetEntityEnabled(base .. "/Accent", true) +if pop ~= nil and pop.UITransformComponent ~= nil then + pop.UITransformComponent.anchoredPosition = Vector2(0, 76) +end +local startY = 76 +for i = 1, 6 do + _TimerService:SetTimerOnce(function() + local p = _EntityService:GetEntityByPath(base) + if p ~= nil and p.UITransformComponent ~= nil then + p.UITransformComponent.anchoredPosition = Vector2(0, startY + i * 7) + end + end, 0.045 * i) +end +_TimerService:SetTimerOnce(function() + self:SetEntityEnabled(base, false) + self:SetEntityEnabled(base .. "/Accent", false) +end, 0.48)`, [ { Type: 'number', DefaultValue: null, SyncDirection: 0, Attributes: [], Name: 'slot' }, { Type: 'number', DefaultValue: null, SyncDirection: 0, Attributes: [], Name: 'amount' }, ]), diff --git a/ui/DefaultGroup.ui b/ui/DefaultGroup.ui index 7e084bb..4df05e4 100644 --- a/ui/DefaultGroup.ui +++ b/ui/DefaultGroup.ui @@ -14041,7 +14041,7 @@ "enable": false, "visible": true, "localize": true, - "displayOrder": 9, + "displayOrder": 11, "pathConstraints": "/////", "revision": 1, "origin": { @@ -14067,20 +14067,20 @@ }, "MobileOnly": false, "OffsetMax": { - "x": 60, - "y": 75 + "x": 85, + "y": 102 }, "OffsetMin": { - "x": -60, - "y": 45 + "x": -85, + "y": 50 }, "Pivot": { "x": 0.5, "y": 0.5 }, "RectSize": { - "x": 120, - "y": 30 + "x": 170, + "y": 52 }, "UIMode": 1, "UIScale": { @@ -14091,11 +14091,199 @@ "UIVersion": 2, "anchoredPosition": { "x": 0, - "y": 60 + "y": 76 }, "Position": { "x": 0, - "y": 60, + "y": 76, + "z": 0 + }, + "QuaternionRotation": { + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "Scale": { + "x": 1, + "y": 1, + "z": 1 + }, + "Enable": true + }, + { + "@type": "MOD.Core.SpriteGUIRendererComponent", + "AnimClipPlayType": 0, + "EndFrameIndex": 2147483647, + "ImageRUID": { + "DataId": "" + }, + "LocalPosition": { + "x": 0, + "y": 0 + }, + "LocalScale": { + "x": 1, + "y": 1 + }, + "OverrideSorting": false, + "PlayRate": 1, + "PreserveSprite": 0, + "StartFrameIndex": 0, + "Color": { + "r": 0.12, + "g": 0.02, + "b": 0.02, + "a": 0.72 + }, + "DropShadow": false, + "DropShadowAngle": 30, + "DropShadowColor": { + "r": 0, + "g": 0, + "b": 0, + "a": 0.72 + }, + "DropShadowDistance": 32, + "FillAmount": 1, + "FillCenter": true, + "FillClockWise": true, + "FillMethod": 0, + "FillOrigin": 0, + "FlipX": false, + "FlipY": false, + "FrameColumn": 1, + "FrameRate": 0, + "FrameRow": 1, + "Outline": false, + "OutlineColor": { + "r": 0, + "g": 0, + "b": 0, + "a": 1 + }, + "OutlineWidth": 3, + "RaycastTarget": false, + "Type": 1, + "Enable": true + }, + { + "@type": "MOD.Core.TextComponent", + "Alignment": 4, + "Bold": true, + "DropShadow": false, + "DropShadowAngle": 30, + "DropShadowColor": { + "r": 0, + "g": 0, + "b": 0, + "a": 0.72 + }, + "DropShadowDistance": 32, + "Font": 0, + "FontColor": { + "r": 1, + "g": 0.9, + "b": 0.18, + "a": 1 + }, + "FontSize": 36, + "MaxSize": 36, + "MinSize": 8, + "OutlineColor": { + "r": 0.08, + "g": 0.08, + "b": 0.08, + "a": 1 + }, + "OutlineDistance": { + "x": 1, + "y": -1 + }, + "OutlineWidth": 5, + "Overflow": 0, + "OverrideSorting": false, + "Padding": { + "left": 0, + "right": 0, + "top": 0, + "bottom": 0 + }, + "SizeFit": false, + "Text": "", + "UseOutLine": true, + "Enable": true + } + ], + "@version": 1 + } + }, + { + "id": "0cb0017d-0000-4000-8000-00000cb0017d", + "path": "/ui/DefaultGroup/CombatHud/MonsterSlot1/DmgPop/Accent", + "componentNames": "MOD.Core.UITransformComponent,MOD.Core.SpriteGUIRendererComponent,MOD.Core.TextComponent", + "jsonString": { + "name": "Accent", + "path": "/ui/DefaultGroup/CombatHud/MonsterSlot1/DmgPop/Accent", + "nameEditable": true, + "enable": false, + "visible": true, + "localize": true, + "displayOrder": 12, + "pathConstraints": "//////", + "revision": 1, + "origin": { + "type": "Model", + "entry_id": "UIText", + "sub_entity_id": null, + "root_entity_id": null, + "replaced_model_id": null + }, + "modelId": "uitext", + "@components": [ + { + "@type": "MOD.Core.UITransformComponent", + "ActivePlatform": 255, + "AlignmentOption": 0, + "AnchorsMax": { + "x": 0.5, + "y": 0.5 + }, + "AnchorsMin": { + "x": 0.5, + "y": 0.5 + }, + "MobileOnly": false, + "OffsetMax": { + "x": 85, + "y": -12 + }, + "OffsetMin": { + "x": -85, + "y": -32 + }, + "Pivot": { + "x": 0.5, + "y": 0.5 + }, + "RectSize": { + "x": 170, + "y": 20 + }, + "UIMode": 1, + "UIScale": { + "x": 1, + "y": 1, + "z": 1 + }, + "UIVersion": 2, + "anchoredPosition": { + "x": 0, + "y": -22 + }, + "Position": { + "x": 0, + "y": -22, "z": 0 }, "QuaternionRotation": { @@ -14183,12 +14371,12 @@ "Font": 0, "FontColor": { "r": 1, - "g": 0.35, - "b": 0.3, + "g": 0.28, + "b": 0.16, "a": 1 }, - "FontSize": 24, - "MaxSize": 24, + "FontSize": 14, + "MaxSize": 14, "MinSize": 8, "OutlineColor": { "r": 0.08, @@ -14200,7 +14388,7 @@ "x": 1, "y": -1 }, - "OutlineWidth": 1, + "OutlineWidth": 2, "Overflow": 0, "OverrideSorting": false, "Padding": { @@ -14210,7 +14398,7 @@ "bottom": 0 }, "SizeFit": false, - "Text": "", + "Text": "DAMAGE", "UseOutLine": true, "Enable": true } @@ -16438,7 +16626,7 @@ "enable": false, "visible": true, "localize": true, - "displayOrder": 9, + "displayOrder": 11, "pathConstraints": "/////", "revision": 1, "origin": { @@ -16464,20 +16652,20 @@ }, "MobileOnly": false, "OffsetMax": { - "x": 60, - "y": 75 + "x": 85, + "y": 102 }, "OffsetMin": { - "x": -60, - "y": 45 + "x": -85, + "y": 50 }, "Pivot": { "x": 0.5, "y": 0.5 }, "RectSize": { - "x": 120, - "y": 30 + "x": 170, + "y": 52 }, "UIMode": 1, "UIScale": { @@ -16488,11 +16676,199 @@ "UIVersion": 2, "anchoredPosition": { "x": 0, - "y": 60 + "y": 76 }, "Position": { "x": 0, - "y": 60, + "y": 76, + "z": 0 + }, + "QuaternionRotation": { + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "Scale": { + "x": 1, + "y": 1, + "z": 1 + }, + "Enable": true + }, + { + "@type": "MOD.Core.SpriteGUIRendererComponent", + "AnimClipPlayType": 0, + "EndFrameIndex": 2147483647, + "ImageRUID": { + "DataId": "" + }, + "LocalPosition": { + "x": 0, + "y": 0 + }, + "LocalScale": { + "x": 1, + "y": 1 + }, + "OverrideSorting": false, + "PlayRate": 1, + "PreserveSprite": 0, + "StartFrameIndex": 0, + "Color": { + "r": 0.12, + "g": 0.02, + "b": 0.02, + "a": 0.72 + }, + "DropShadow": false, + "DropShadowAngle": 30, + "DropShadowColor": { + "r": 0, + "g": 0, + "b": 0, + "a": 0.72 + }, + "DropShadowDistance": 32, + "FillAmount": 1, + "FillCenter": true, + "FillClockWise": true, + "FillMethod": 0, + "FillOrigin": 0, + "FlipX": false, + "FlipY": false, + "FrameColumn": 1, + "FrameRate": 0, + "FrameRow": 1, + "Outline": false, + "OutlineColor": { + "r": 0, + "g": 0, + "b": 0, + "a": 1 + }, + "OutlineWidth": 3, + "RaycastTarget": false, + "Type": 1, + "Enable": true + }, + { + "@type": "MOD.Core.TextComponent", + "Alignment": 4, + "Bold": true, + "DropShadow": false, + "DropShadowAngle": 30, + "DropShadowColor": { + "r": 0, + "g": 0, + "b": 0, + "a": 0.72 + }, + "DropShadowDistance": 32, + "Font": 0, + "FontColor": { + "r": 1, + "g": 0.9, + "b": 0.18, + "a": 1 + }, + "FontSize": 36, + "MaxSize": 36, + "MinSize": 8, + "OutlineColor": { + "r": 0.08, + "g": 0.08, + "b": 0.08, + "a": 1 + }, + "OutlineDistance": { + "x": 1, + "y": -1 + }, + "OutlineWidth": 5, + "Overflow": 0, + "OverrideSorting": false, + "Padding": { + "left": 0, + "right": 0, + "top": 0, + "bottom": 0 + }, + "SizeFit": false, + "Text": "", + "UseOutLine": true, + "Enable": true + } + ], + "@version": 1 + } + }, + { + "id": "0cb0017e-0000-4000-8000-00000cb0017e", + "path": "/ui/DefaultGroup/CombatHud/MonsterSlot2/DmgPop/Accent", + "componentNames": "MOD.Core.UITransformComponent,MOD.Core.SpriteGUIRendererComponent,MOD.Core.TextComponent", + "jsonString": { + "name": "Accent", + "path": "/ui/DefaultGroup/CombatHud/MonsterSlot2/DmgPop/Accent", + "nameEditable": true, + "enable": false, + "visible": true, + "localize": true, + "displayOrder": 12, + "pathConstraints": "//////", + "revision": 1, + "origin": { + "type": "Model", + "entry_id": "UIText", + "sub_entity_id": null, + "root_entity_id": null, + "replaced_model_id": null + }, + "modelId": "uitext", + "@components": [ + { + "@type": "MOD.Core.UITransformComponent", + "ActivePlatform": 255, + "AlignmentOption": 0, + "AnchorsMax": { + "x": 0.5, + "y": 0.5 + }, + "AnchorsMin": { + "x": 0.5, + "y": 0.5 + }, + "MobileOnly": false, + "OffsetMax": { + "x": 85, + "y": -12 + }, + "OffsetMin": { + "x": -85, + "y": -32 + }, + "Pivot": { + "x": 0.5, + "y": 0.5 + }, + "RectSize": { + "x": 170, + "y": 20 + }, + "UIMode": 1, + "UIScale": { + "x": 1, + "y": 1, + "z": 1 + }, + "UIVersion": 2, + "anchoredPosition": { + "x": 0, + "y": -22 + }, + "Position": { + "x": 0, + "y": -22, "z": 0 }, "QuaternionRotation": { @@ -16580,12 +16956,12 @@ "Font": 0, "FontColor": { "r": 1, - "g": 0.35, - "b": 0.3, + "g": 0.28, + "b": 0.16, "a": 1 }, - "FontSize": 24, - "MaxSize": 24, + "FontSize": 14, + "MaxSize": 14, "MinSize": 8, "OutlineColor": { "r": 0.08, @@ -16597,7 +16973,7 @@ "x": 1, "y": -1 }, - "OutlineWidth": 1, + "OutlineWidth": 2, "Overflow": 0, "OverrideSorting": false, "Padding": { @@ -16607,7 +16983,7 @@ "bottom": 0 }, "SizeFit": false, - "Text": "", + "Text": "DAMAGE", "UseOutLine": true, "Enable": true } @@ -18835,7 +19211,7 @@ "enable": false, "visible": true, "localize": true, - "displayOrder": 9, + "displayOrder": 11, "pathConstraints": "/////", "revision": 1, "origin": { @@ -18861,20 +19237,20 @@ }, "MobileOnly": false, "OffsetMax": { - "x": 60, - "y": 75 + "x": 85, + "y": 102 }, "OffsetMin": { - "x": -60, - "y": 45 + "x": -85, + "y": 50 }, "Pivot": { "x": 0.5, "y": 0.5 }, "RectSize": { - "x": 120, - "y": 30 + "x": 170, + "y": 52 }, "UIMode": 1, "UIScale": { @@ -18885,11 +19261,199 @@ "UIVersion": 2, "anchoredPosition": { "x": 0, - "y": 60 + "y": 76 }, "Position": { "x": 0, - "y": 60, + "y": 76, + "z": 0 + }, + "QuaternionRotation": { + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "Scale": { + "x": 1, + "y": 1, + "z": 1 + }, + "Enable": true + }, + { + "@type": "MOD.Core.SpriteGUIRendererComponent", + "AnimClipPlayType": 0, + "EndFrameIndex": 2147483647, + "ImageRUID": { + "DataId": "" + }, + "LocalPosition": { + "x": 0, + "y": 0 + }, + "LocalScale": { + "x": 1, + "y": 1 + }, + "OverrideSorting": false, + "PlayRate": 1, + "PreserveSprite": 0, + "StartFrameIndex": 0, + "Color": { + "r": 0.12, + "g": 0.02, + "b": 0.02, + "a": 0.72 + }, + "DropShadow": false, + "DropShadowAngle": 30, + "DropShadowColor": { + "r": 0, + "g": 0, + "b": 0, + "a": 0.72 + }, + "DropShadowDistance": 32, + "FillAmount": 1, + "FillCenter": true, + "FillClockWise": true, + "FillMethod": 0, + "FillOrigin": 0, + "FlipX": false, + "FlipY": false, + "FrameColumn": 1, + "FrameRate": 0, + "FrameRow": 1, + "Outline": false, + "OutlineColor": { + "r": 0, + "g": 0, + "b": 0, + "a": 1 + }, + "OutlineWidth": 3, + "RaycastTarget": false, + "Type": 1, + "Enable": true + }, + { + "@type": "MOD.Core.TextComponent", + "Alignment": 4, + "Bold": true, + "DropShadow": false, + "DropShadowAngle": 30, + "DropShadowColor": { + "r": 0, + "g": 0, + "b": 0, + "a": 0.72 + }, + "DropShadowDistance": 32, + "Font": 0, + "FontColor": { + "r": 1, + "g": 0.9, + "b": 0.18, + "a": 1 + }, + "FontSize": 36, + "MaxSize": 36, + "MinSize": 8, + "OutlineColor": { + "r": 0.08, + "g": 0.08, + "b": 0.08, + "a": 1 + }, + "OutlineDistance": { + "x": 1, + "y": -1 + }, + "OutlineWidth": 5, + "Overflow": 0, + "OverrideSorting": false, + "Padding": { + "left": 0, + "right": 0, + "top": 0, + "bottom": 0 + }, + "SizeFit": false, + "Text": "", + "UseOutLine": true, + "Enable": true + } + ], + "@version": 1 + } + }, + { + "id": "0cb0017f-0000-4000-8000-00000cb0017f", + "path": "/ui/DefaultGroup/CombatHud/MonsterSlot3/DmgPop/Accent", + "componentNames": "MOD.Core.UITransformComponent,MOD.Core.SpriteGUIRendererComponent,MOD.Core.TextComponent", + "jsonString": { + "name": "Accent", + "path": "/ui/DefaultGroup/CombatHud/MonsterSlot3/DmgPop/Accent", + "nameEditable": true, + "enable": false, + "visible": true, + "localize": true, + "displayOrder": 12, + "pathConstraints": "//////", + "revision": 1, + "origin": { + "type": "Model", + "entry_id": "UIText", + "sub_entity_id": null, + "root_entity_id": null, + "replaced_model_id": null + }, + "modelId": "uitext", + "@components": [ + { + "@type": "MOD.Core.UITransformComponent", + "ActivePlatform": 255, + "AlignmentOption": 0, + "AnchorsMax": { + "x": 0.5, + "y": 0.5 + }, + "AnchorsMin": { + "x": 0.5, + "y": 0.5 + }, + "MobileOnly": false, + "OffsetMax": { + "x": 85, + "y": -12 + }, + "OffsetMin": { + "x": -85, + "y": -32 + }, + "Pivot": { + "x": 0.5, + "y": 0.5 + }, + "RectSize": { + "x": 170, + "y": 20 + }, + "UIMode": 1, + "UIScale": { + "x": 1, + "y": 1, + "z": 1 + }, + "UIVersion": 2, + "anchoredPosition": { + "x": 0, + "y": -22 + }, + "Position": { + "x": 0, + "y": -22, "z": 0 }, "QuaternionRotation": { @@ -18977,12 +19541,12 @@ "Font": 0, "FontColor": { "r": 1, - "g": 0.35, - "b": 0.3, + "g": 0.28, + "b": 0.16, "a": 1 }, - "FontSize": 24, - "MaxSize": 24, + "FontSize": 14, + "MaxSize": 14, "MinSize": 8, "OutlineColor": { "r": 0.08, @@ -18994,7 +19558,7 @@ "x": 1, "y": -1 }, - "OutlineWidth": 1, + "OutlineWidth": 2, "Overflow": 0, "OverrideSorting": false, "Padding": { @@ -19004,7 +19568,7 @@ "bottom": 0 }, "SizeFit": false, - "Text": "", + "Text": "DAMAGE", "UseOutLine": true, "Enable": true } @@ -21232,7 +21796,7 @@ "enable": false, "visible": true, "localize": true, - "displayOrder": 9, + "displayOrder": 11, "pathConstraints": "/////", "revision": 1, "origin": { @@ -21258,20 +21822,20 @@ }, "MobileOnly": false, "OffsetMax": { - "x": 60, - "y": 75 + "x": 85, + "y": 102 }, "OffsetMin": { - "x": -60, - "y": 45 + "x": -85, + "y": 50 }, "Pivot": { "x": 0.5, "y": 0.5 }, "RectSize": { - "x": 120, - "y": 30 + "x": 170, + "y": 52 }, "UIMode": 1, "UIScale": { @@ -21282,11 +21846,199 @@ "UIVersion": 2, "anchoredPosition": { "x": 0, - "y": 60 + "y": 76 }, "Position": { "x": 0, - "y": 60, + "y": 76, + "z": 0 + }, + "QuaternionRotation": { + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "Scale": { + "x": 1, + "y": 1, + "z": 1 + }, + "Enable": true + }, + { + "@type": "MOD.Core.SpriteGUIRendererComponent", + "AnimClipPlayType": 0, + "EndFrameIndex": 2147483647, + "ImageRUID": { + "DataId": "" + }, + "LocalPosition": { + "x": 0, + "y": 0 + }, + "LocalScale": { + "x": 1, + "y": 1 + }, + "OverrideSorting": false, + "PlayRate": 1, + "PreserveSprite": 0, + "StartFrameIndex": 0, + "Color": { + "r": 0.12, + "g": 0.02, + "b": 0.02, + "a": 0.72 + }, + "DropShadow": false, + "DropShadowAngle": 30, + "DropShadowColor": { + "r": 0, + "g": 0, + "b": 0, + "a": 0.72 + }, + "DropShadowDistance": 32, + "FillAmount": 1, + "FillCenter": true, + "FillClockWise": true, + "FillMethod": 0, + "FillOrigin": 0, + "FlipX": false, + "FlipY": false, + "FrameColumn": 1, + "FrameRate": 0, + "FrameRow": 1, + "Outline": false, + "OutlineColor": { + "r": 0, + "g": 0, + "b": 0, + "a": 1 + }, + "OutlineWidth": 3, + "RaycastTarget": false, + "Type": 1, + "Enable": true + }, + { + "@type": "MOD.Core.TextComponent", + "Alignment": 4, + "Bold": true, + "DropShadow": false, + "DropShadowAngle": 30, + "DropShadowColor": { + "r": 0, + "g": 0, + "b": 0, + "a": 0.72 + }, + "DropShadowDistance": 32, + "Font": 0, + "FontColor": { + "r": 1, + "g": 0.9, + "b": 0.18, + "a": 1 + }, + "FontSize": 36, + "MaxSize": 36, + "MinSize": 8, + "OutlineColor": { + "r": 0.08, + "g": 0.08, + "b": 0.08, + "a": 1 + }, + "OutlineDistance": { + "x": 1, + "y": -1 + }, + "OutlineWidth": 5, + "Overflow": 0, + "OverrideSorting": false, + "Padding": { + "left": 0, + "right": 0, + "top": 0, + "bottom": 0 + }, + "SizeFit": false, + "Text": "", + "UseOutLine": true, + "Enable": true + } + ], + "@version": 1 + } + }, + { + "id": "0cb00180-0000-4000-8000-00000cb00180", + "path": "/ui/DefaultGroup/CombatHud/MonsterSlot4/DmgPop/Accent", + "componentNames": "MOD.Core.UITransformComponent,MOD.Core.SpriteGUIRendererComponent,MOD.Core.TextComponent", + "jsonString": { + "name": "Accent", + "path": "/ui/DefaultGroup/CombatHud/MonsterSlot4/DmgPop/Accent", + "nameEditable": true, + "enable": false, + "visible": true, + "localize": true, + "displayOrder": 12, + "pathConstraints": "//////", + "revision": 1, + "origin": { + "type": "Model", + "entry_id": "UIText", + "sub_entity_id": null, + "root_entity_id": null, + "replaced_model_id": null + }, + "modelId": "uitext", + "@components": [ + { + "@type": "MOD.Core.UITransformComponent", + "ActivePlatform": 255, + "AlignmentOption": 0, + "AnchorsMax": { + "x": 0.5, + "y": 0.5 + }, + "AnchorsMin": { + "x": 0.5, + "y": 0.5 + }, + "MobileOnly": false, + "OffsetMax": { + "x": 85, + "y": -12 + }, + "OffsetMin": { + "x": -85, + "y": -32 + }, + "Pivot": { + "x": 0.5, + "y": 0.5 + }, + "RectSize": { + "x": 170, + "y": 20 + }, + "UIMode": 1, + "UIScale": { + "x": 1, + "y": 1, + "z": 1 + }, + "UIVersion": 2, + "anchoredPosition": { + "x": 0, + "y": -22 + }, + "Position": { + "x": 0, + "y": -22, "z": 0 }, "QuaternionRotation": { @@ -21374,12 +22126,12 @@ "Font": 0, "FontColor": { "r": 1, - "g": 0.35, - "b": 0.3, + "g": 0.28, + "b": 0.16, "a": 1 }, - "FontSize": 24, - "MaxSize": 24, + "FontSize": 14, + "MaxSize": 14, "MinSize": 8, "OutlineColor": { "r": 0.08, @@ -21391,7 +22143,7 @@ "x": 1, "y": -1 }, - "OutlineWidth": 1, + "OutlineWidth": 2, "Overflow": 0, "OverrideSorting": false, "Padding": { @@ -21401,7 +22153,7 @@ "bottom": 0 }, "SizeFit": false, - "Text": "", + "Text": "DAMAGE", "UseOutLine": true, "Enable": true }