From 8c397cbc0982ca1aa6b7fa79ed00f08a6555e248 Mon Sep 17 00:00:00 2001 From: maple Date: Sun, 7 Jun 2026 23:27:44 +0900 Subject: [PATCH] Add main menu flow --- RootDesk/MyDesk/SlayDeckController.codeblock | 86 +- tools/gen-slaydeck.mjs | 165 ++- ui/DefaultGroup.ui | 1047 +++++++++++++++++- 3 files changed, 1225 insertions(+), 73 deletions(-) diff --git a/RootDesk/MyDesk/SlayDeckController.codeblock b/RootDesk/MyDesk/SlayDeckController.codeblock index 38e6e82..eaaa7b5 100644 --- a/RootDesk/MyDesk/SlayDeckController.codeblock +++ b/RootDesk/MyDesk/SlayDeckController.codeblock @@ -84,6 +84,13 @@ "SyncDirection": 0, "Attributes": [], "Name": "EndTurnHandler" + }, + { + "Type": "any", + "DefaultValue": "nil", + "SyncDirection": 0, + "Attributes": [], + "Name": "NewGameHandler" } ], "Methods": [ @@ -96,12 +103,57 @@ "Name": null }, "Arguments": [], - "Code": "self:StartCombat()", + "Code": "self:ShowMainMenu()", "Scope": 2, "ExecSpace": 6, "Attributes": [], "Name": "OnBeginPlay" }, + { + "Return": { + "Type": "void", + "DefaultValue": null, + "SyncDirection": 0, + "Attributes": [], + "Name": null + }, + "Arguments": [], + "Code": "self:SetEntityEnabled(\"/ui/DefaultGroup/MainMenu\", true)\nself:SetEntityEnabled(\"/ui/DefaultGroup/CardHand\", false)\nself:SetEntityEnabled(\"/ui/DefaultGroup/DeckHud\", false)\nself:BindMenuButtons()", + "Scope": 2, + "ExecSpace": 6, + "Attributes": [], + "Name": "ShowMainMenu" + }, + { + "Return": { + "Type": "void", + "DefaultValue": null, + "SyncDirection": 0, + "Attributes": [], + "Name": null + }, + "Arguments": [], + "Code": "local buttonEntity = _EntityService:GetEntityByPath(\"/ui/DefaultGroup/MainMenu/NewGameButton\")\nif buttonEntity == nil or buttonEntity.ButtonComponent == nil then\n\treturn\nend\nif self.NewGameHandler ~= nil then\n\tbuttonEntity:DisconnectEvent(ButtonClickEvent, self.NewGameHandler)\n\tself.NewGameHandler = nil\nend\nself.NewGameHandler = buttonEntity:ConnectEvent(ButtonClickEvent, self.StartNewGame)", + "Scope": 2, + "ExecSpace": 6, + "Attributes": [], + "Name": "BindMenuButtons" + }, + { + "Return": { + "Type": "void", + "DefaultValue": null, + "SyncDirection": 0, + "Attributes": [], + "Name": null + }, + "Arguments": [], + "Code": "self:SetEntityEnabled(\"/ui/DefaultGroup/MainMenu\", false)\nself:SetEntityEnabled(\"/ui/DefaultGroup/CardHand\", true)\nself:SetEntityEnabled(\"/ui/DefaultGroup/DeckHud\", true)\nself:StartCombat()", + "Scope": 2, + "ExecSpace": 6, + "Attributes": [], + "Name": "StartNewGame" + }, { "Return": { "Type": "void", @@ -285,7 +337,7 @@ "Name": "cardId" } ], - "Code": "local name = cardId\nlocal cost = 0\nlocal desc = \"\"\nlocal kind = \"Skill\"\nif cardId == \"Strike\" then\n\tname = \"타격\"\n\tcost = 1\n\tdesc = \"피해 6\"\n\tkind = \"Attack\"\nelseif cardId == \"Defend\" then\n\tname = \"방어\"\n\tcost = 1\n\tdesc = \"방어도 5\"\n\tkind = \"Skill\"\nelseif cardId == \"Bash\" then\n\tname = \"강타\"\n\tcost = 2\n\tdesc = \"피해 10\"\n\tkind = \"Attack\"\nend\nself:SetText(\"/ui/DefaultGroup/CardHand/Card\" .. tostring(slot) .. \"/Cost\", tostring(cost))\nself:SetText(\"/ui/DefaultGroup/CardHand/Card\" .. tostring(slot) .. \"/Name\", name)\nself:SetText(\"/ui/DefaultGroup/CardHand/Card\" .. tostring(slot) .. \"/Desc\", desc)\nlocal cardEntity = _EntityService:GetEntityByPath(\"/ui/DefaultGroup/CardHand/Card\" .. tostring(slot))\nif cardEntity ~= nil and cardEntity.SpriteGUIRendererComponent ~= nil then\n\tlocal ok = false\n\tlocal color = nil\n\tif kind == \"Attack\" then\n\t\tok, color = pcall(function() return Color(0.86, 0.42, 0.38, 1) end)\n\telseif kind == \"Skill\" then\n\t\tok, color = pcall(function() return Color(0.42, 0.55, 0.85, 1) end)\n\telse\n\t\tok, color = pcall(function() return Color(0.46, 0.68, 0.52, 1) end)\n\tend\n\tif ok == true and color ~= nil then\n\t\tcardEntity.SpriteGUIRendererComponent.Color = color\n\tend\nend", + "Code": "local name = cardId\nlocal cost = 0\nlocal desc = \"\"\nlocal kind = \"Skill\"\nif cardId == \"Strike\" then\n\tname = \"타격\"\n\tcost = 1\n\tdesc = \"피해 6\"\n\tkind = \"Attack\"\nelseif cardId == \"Defend\" then\n\tname = \"방어\"\n\tcost = 1\n\tdesc = \"방어도 5\"\n\tkind = \"Skill\"\nelseif cardId == \"Bash\" then\n\tname = \"강타\"\n\tcost = 2\n\tdesc = \"피해 10\"\n\tkind = \"Attack\"\nend\nself:SetText(\"/ui/DefaultGroup/CardHand/Card\" .. tostring(slot) .. \"/Cost\", tostring(cost))\nself:SetText(\"/ui/DefaultGroup/CardHand/Card\" .. tostring(slot) .. \"/Name\", name)\nself:SetText(\"/ui/DefaultGroup/CardHand/Card\" .. tostring(slot) .. \"/Desc\", desc)\nlocal cardEntity = _EntityService:GetEntityByPath(\"/ui/DefaultGroup/CardHand/Card\" .. tostring(slot))\nif cardEntity ~= nil and cardEntity.SpriteGUIRendererComponent ~= nil then\n\tlocal ok = false\n\tlocal color = nil\n\tif kind == \"Attack\" then\n\t\tok, color = pcall(function() return Color(0.86, 0.42, 0.38, 1) end)\n\telseif kind == \"Skill\" then\n\t\tok, color = pcall(function() return Color(0.42, 0.55, 0.85, 1) end)\n\tend\n\tif ok == true and color ~= nil then\n\t\tcardEntity.SpriteGUIRendererComponent.Color = color\n\tend\nend", "Scope": 2, "ExecSpace": 6, "Attributes": [], @@ -321,6 +373,36 @@ "Attributes": [], "Name": "SetText" }, + { + "Return": { + "Type": "void", + "DefaultValue": null, + "SyncDirection": 0, + "Attributes": [], + "Name": null + }, + "Arguments": [ + { + "Type": "string", + "DefaultValue": null, + "SyncDirection": 0, + "Attributes": [], + "Name": "path" + }, + { + "Type": "boolean", + "DefaultValue": null, + "SyncDirection": 0, + "Attributes": [], + "Name": "enabled" + } + ], + "Code": "local entity = _EntityService:GetEntityByPath(path)\nif entity ~= nil then\n\tentity.Enable = enabled\nend", + "Scope": 2, + "ExecSpace": 6, + "Attributes": [], + "Name": "SetEntityEnabled" + }, { "Return": { "Type": "void", diff --git a/tools/gen-slaydeck.mjs b/tools/gen-slaydeck.mjs index 6da250d..568c08e 100644 --- a/tools/gen-slaydeck.mjs +++ b/tools/gen-slaydeck.mjs @@ -8,13 +8,10 @@ const DARK = { r: 0.08, g: 0.09, b: 0.11, a: 0.92 }; const GOLD = { r: 0.94, g: 0.74, b: 0.26, a: 1 }; const ATTACK = { r: 0.86, g: 0.42, b: 0.38, a: 1 }; const DEFEND = { r: 0.42, g: 0.55, b: 0.85, a: 1 }; -const SKILL = { r: 0.46, g: 0.68, b: 0.52, a: 1 }; const CARD_W = 180; const CARD_H = 250; -const CARD_SPACING = 200; const CARD_XS = [-400, -200, 0, 200, 400]; - const ALIGN_CENTER = 0; const ALIGN_BOTTOM_CENTER = 6; @@ -23,8 +20,6 @@ function guid(prefix, n) { } function transform({ parentW, parentH, anchor, pivot, size, pos, align = 0 }) { - const offMin = { x: pos.x - pivot.x * size.x, y: pos.y - pivot.y * size.y }; - const offMax = { x: pos.x + (1 - pivot.x) * size.x, y: pos.y + (1 - pivot.y) * size.y }; return { '@type': 'MOD.Core.UITransformComponent', ActivePlatform: 255, @@ -32,8 +27,8 @@ function transform({ parentW, parentH, anchor, pivot, size, pos, align = 0 }) { AnchorsMax: anchor, AnchorsMin: anchor, MobileOnly: false, - OffsetMax: offMax, - OffsetMin: offMin, + OffsetMax: { x: pos.x + (1 - pivot.x) * size.x, y: pos.y + (1 - pivot.y) * size.y }, + OffsetMin: { x: pos.x - pivot.x * size.x, y: pos.y - pivot.y * size.y }, Pivot: pivot, RectSize: size, UIMode: 1, @@ -83,7 +78,7 @@ function sprite({ dataId = '', color = TRANSPARENT, type = 1, raycast = false }) }; } -function button() { +function button({ enabled = true } = {}) { return { '@type': 'MOD.Core.ButtonComponent', Colors: { @@ -104,7 +99,7 @@ function button() { KeyCode: 0, OverrideSorting: false, Transition: 1, - Enable: true, + Enable: enabled, }; } @@ -135,7 +130,7 @@ function text({ value, fontSize, bold = false, color = { r: 1, g: 1, b: 1, a: 1 }; } -function entity({ id, path, modelId, entryId, componentNames, components, displayOrder }) { +function entity({ id, path, modelId, entryId, componentNames, components, displayOrder, enable = true }) { const parts = path.split('/'); const name = parts[parts.length - 1]; return { @@ -146,7 +141,7 @@ function entity({ id, path, modelId, entryId, componentNames, components, displa name, path, nameEditable: true, - enable: true, + enable, visible: true, localize: true, displayOrder, @@ -168,10 +163,13 @@ function entity({ id, path, modelId, entryId, componentNames, components, displa function upsertUi() { const ui = JSON.parse(readFileSync(UI_FILE, 'utf8')); - const E = ui.ContentProto.Entities; - ui.ContentProto.Entities = E.filter((e) => !e.path.startsWith('/ui/DefaultGroup/DeckHud')); + ui.ContentProto.Entities = ui.ContentProto.Entities.filter( + (e) => !e.path.startsWith('/ui/DefaultGroup/DeckHud') && !e.path.startsWith('/ui/DefaultGroup/MainMenu'), + ); const byPath = new Map(ui.ContentProto.Entities.map((e) => [e.path, e])); + const cardHand = byPath.get('/ui/DefaultGroup/CardHand'); + if (cardHand) cardHand.jsonString.enable = false; const cards = [ { name: '타격', cost: '1', desc: '피해 6', tint: ATTACK }, @@ -181,7 +179,7 @@ function upsertUi() { { name: '강타', cost: '2', desc: '피해 10', tint: ATTACK }, ]; - for (let i = 1; i <= 5; i++) { + for (let i = 1; i <= 5; i += 1) { const card = byPath.get(`/ui/DefaultGroup/CardHand/Card${i}`); if (!card) continue; const tr = card.jsonString['@components'].find((c) => c['@type'] === 'MOD.Core.UITransformComponent'); @@ -193,25 +191,24 @@ function upsertUi() { sp.ImageRUID = { DataId: '' }; sp.Type = 1; sp.Color = cards[i - 1].tint; - card.jsonString.enable = true; - card.jsonString.visible = true; + card.jsonString.enable = false; - const children = [ + for (const [suffix, cfg] of [ ['Cost', { size: { x: 50, y: 50 }, pos: { x: -60, y: 95 }, value: cards[i - 1].cost, fontSize: 34, bold: true }], ['Name', { size: { x: 160, y: 50 }, pos: { x: 0, y: 50 }, value: cards[i - 1].name, fontSize: 26, bold: true }], ['Desc', { size: { x: 160, y: 82 }, pos: { x: 0, y: -80 }, value: cards[i - 1].desc, fontSize: 20, bold: false }], - ]; - for (const [suffix, cfg] of children) { + ]) { const path = `/ui/DefaultGroup/CardHand/Card${i}/${suffix}`; let child = byPath.get(path); if (!child) { child = entity({ - id: guid('dck', i * 10 + children.findIndex(([s]) => s === suffix)), + id: guid('dck', i * 10 + (suffix === 'Cost' ? 0 : suffix === 'Name' ? 1 : 2)), path, modelId: 'uitext', entryId: 'UIText', componentNames: 'MOD.Core.UITransformComponent,MOD.Core.SpriteGUIRendererComponent,MOD.Core.TextComponent', displayOrder: suffix === 'Cost' ? 0 : suffix === 'Name' ? 1 : 2, + enable: false, components: [ transform({ parentW: CARD_W, parentH: CARD_H, anchor: { x: 0.5, y: 0.5 }, pivot: { x: 0.5, y: 0.5 }, size: cfg.size, pos: cfg.pos }), sprite({ color: TRANSPARENT }), @@ -221,8 +218,7 @@ function upsertUi() { ui.ContentProto.Entities.push(child); byPath.set(path, child); } else { - child.jsonString.enable = true; - child.jsonString.visible = true; + child.jsonString.enable = false; child.jsonString['@components'][2].Text = cfg.value; child.jsonString['@components'][2].FontSize = cfg.fontSize; child.jsonString['@components'][2].MaxSize = cfg.fontSize; @@ -230,8 +226,75 @@ function upsertUi() { } } - const hud = []; - const add = (e) => hud.push(e); + const ents = []; + const add = (e) => ents.push(e); + + add(entity({ + id: guid('menu', 0), + path: '/ui/DefaultGroup/MainMenu', + modelId: 'uisprite', + entryId: 'UISprite', + componentNames: 'MOD.Core.UITransformComponent,MOD.Core.SpriteGUIRendererComponent', + displayOrder: 20, + components: [ + transform({ parentW: 1920, parentH: 1080, anchor: { x: 0.5, y: 0.5 }, pivot: { x: 0.5, y: 0.5 }, size: { x: 1920, y: 1080 }, pos: { x: 0, y: 0 }, align: ALIGN_CENTER }), + sprite({ color: { r: 0.04, g: 0.05, b: 0.07, a: 0.96 }, type: 1, raycast: true }), + ], + })); + add(entity({ + id: guid('menu', 1), + path: '/ui/DefaultGroup/MainMenu/Title', + modelId: 'uitext', + entryId: 'UIText', + componentNames: 'MOD.Core.UITransformComponent,MOD.Core.SpriteGUIRendererComponent,MOD.Core.TextComponent', + displayOrder: 0, + components: [ + transform({ parentW: 1920, parentH: 1080, anchor: { x: 0.5, y: 0.5 }, pivot: { x: 0.5, y: 0.5 }, size: { x: 720, y: 100 }, pos: { x: 0, y: 180 }, align: ALIGN_CENTER }), + sprite({ color: TRANSPARENT }), + text({ value: '슬레이 메이플', fontSize: 64, bold: true, color: GOLD, alignment: 0 }), + ], + })); + add(entity({ + id: guid('menu', 2), + path: '/ui/DefaultGroup/MainMenu/Subtitle', + modelId: 'uitext', + entryId: 'UIText', + componentNames: 'MOD.Core.UITransformComponent,MOD.Core.SpriteGUIRendererComponent,MOD.Core.TextComponent', + displayOrder: 1, + components: [ + transform({ parentW: 1920, parentH: 1080, anchor: { x: 0.5, y: 0.5 }, pivot: { x: 0.5, y: 0.5 }, size: { x: 760, y: 48 }, pos: { x: 0, y: 104 }, align: ALIGN_CENTER }), + sprite({ color: TRANSPARENT }), + text({ value: '카드를 뽑고, 덱을 만들고, 첨탑을 오른다', fontSize: 24, color: { r: 0.82, g: 0.86, b: 0.9, a: 1 }, alignment: 0 }), + ], + })); + add(entity({ + id: guid('menu', 3), + path: '/ui/DefaultGroup/MainMenu/NewGameButton', + modelId: 'uibutton', + entryId: 'UIButton', + componentNames: 'MOD.Core.UITransformComponent,MOD.Core.SpriteGUIRendererComponent,MOD.Core.ButtonComponent,MOD.Core.TextComponent', + displayOrder: 2, + components: [ + transform({ parentW: 1920, parentH: 1080, anchor: { x: 0.5, y: 0.5 }, pivot: { x: 0.5, y: 0.5 }, size: { x: 260, y: 68 }, pos: { x: 0, y: -20 }, align: ALIGN_CENTER }), + sprite({ color: { r: 0.13, g: 0.15, b: 0.18, a: 1 }, type: 1, raycast: true }), + button(), + text({ value: '새 게임', fontSize: 30, bold: true, color: GOLD, alignment: 0 }), + ], + })); + add(entity({ + id: guid('menu', 4), + path: '/ui/DefaultGroup/MainMenu/ContinueButton', + modelId: 'uibutton', + entryId: 'UIButton', + componentNames: 'MOD.Core.UITransformComponent,MOD.Core.SpriteGUIRendererComponent,MOD.Core.ButtonComponent,MOD.Core.TextComponent', + displayOrder: 3, + components: [ + transform({ parentW: 1920, parentH: 1080, anchor: { x: 0.5, y: 0.5 }, pivot: { x: 0.5, y: 0.5 }, size: { x: 260, y: 58 }, pos: { x: 0, y: -100 }, align: ALIGN_CENTER }), + sprite({ color: { r: 0.1, g: 0.11, b: 0.13, a: 0.78 }, type: 1, raycast: false }), + button({ enabled: false }), + text({ value: '이어하기', fontSize: 24, bold: true, color: { r: 0.55, g: 0.58, b: 0.62, a: 1 }, alignment: 0 }), + ], + })); add(entity({ id: guid('hud', 0), @@ -240,6 +303,7 @@ function upsertUi() { entryId: 'UIEmpty', componentNames: 'MOD.Core.UITransformComponent,MOD.Core.SpriteGUIRendererComponent', displayOrder: 5, + enable: false, components: [ transform({ parentW: 1920, parentH: 1080, anchor: { x: 0.5, y: 0 }, pivot: { x: 0.5, y: 0.5 }, size: { x: 1280, y: 330 }, pos: { x: 0, y: 180 }, align: ALIGN_BOTTOM_CENTER }), sprite({ color: TRANSPARENT }), @@ -247,11 +311,11 @@ function upsertUi() { })); for (const pile of [ - { key: 'DrawPile', x: -590, label: '뽑을 덱', count: '10', color: { r: 0.17, g: 0.20, b: 0.25, a: 1 } }, + { key: 'DrawPile', x: -590, label: '뽑을 덱', count: '10', color: { r: 0.17, g: 0.2, b: 0.25, a: 1 } }, { key: 'DiscardPile', x: 590, label: '버린 덱', count: '0', color: { r: 0.22, g: 0.18, b: 0.16, a: 1 } }, ]) { add(entity({ - id: guid('hud', hud.length), + id: guid('hud', ents.length), path: `/ui/DefaultGroup/DeckHud/${pile.key}`, modelId: 'uisprite', entryId: 'UISprite', @@ -263,7 +327,7 @@ function upsertUi() { ], })); add(entity({ - id: guid('hud', hud.length), + id: guid('hud', ents.length), path: `/ui/DefaultGroup/DeckHud/${pile.key}/Label`, modelId: 'uitext', entryId: 'UIText', @@ -276,7 +340,7 @@ function upsertUi() { ], })); add(entity({ - id: guid('hud', hud.length), + id: guid('hud', ents.length), path: `/ui/DefaultGroup/DeckHud/${pile.key}/Count`, modelId: 'uitext', entryId: 'UIText', @@ -291,7 +355,7 @@ function upsertUi() { } add(entity({ - id: guid('hud', hud.length), + id: guid('hud', ents.length), path: '/ui/DefaultGroup/DeckHud/EndTurnButton', modelId: 'uibutton', entryId: 'UIButton', @@ -304,9 +368,8 @@ function upsertUi() { text({ value: '턴 종료', fontSize: 25, bold: true, color: GOLD, alignment: 0 }), ], })); - add(entity({ - id: guid('hud', hud.length), + id: guid('hud', ents.length), path: '/ui/DefaultGroup/DeckHud/Energy', modelId: 'uitext', entryId: 'UIText', @@ -319,7 +382,7 @@ function upsertUi() { ], })); - ui.ContentProto.Entities.push(...hud); + ui.ContentProto.Entities.push(...ents); JSON.parse(JSON.stringify(ui)); writeFileSync(UI_FILE, JSON.stringify(ui, null, 2), 'utf8'); } @@ -328,13 +391,13 @@ function prop(Type, Name, DefaultValue = 'nil') { return { Type, DefaultValue, SyncDirection: 0, Attributes: [], Name }; } -function method(Name, Code, Arguments = [], ExecSpace = 0) { +function method(Name, Code, Arguments = []) { return { Return: { Type: 'void', DefaultValue: null, SyncDirection: 0, Attributes: [], Name: null }, Arguments, Code, Scope: 2, - ExecSpace, + ExecSpace: 6, Attributes: [], Name, }; @@ -383,8 +446,26 @@ function writeCodeblocks() { prop('number', 'Turn', '0'), prop('number', 'TweenEventId', '0'), prop('any', 'EndTurnHandler'), + prop('any', 'NewGameHandler'), ], [ - method('OnBeginPlay', `self:StartCombat()`), + method('OnBeginPlay', `self:ShowMainMenu()`), + method('ShowMainMenu', `self:SetEntityEnabled("/ui/DefaultGroup/MainMenu", true) +self:SetEntityEnabled("/ui/DefaultGroup/CardHand", false) +self:SetEntityEnabled("/ui/DefaultGroup/DeckHud", false) +self:BindMenuButtons()`), + method('BindMenuButtons', `local buttonEntity = _EntityService:GetEntityByPath("/ui/DefaultGroup/MainMenu/NewGameButton") +if buttonEntity == nil or buttonEntity.ButtonComponent == nil then +\treturn +end +if self.NewGameHandler ~= nil then +\tbuttonEntity:DisconnectEvent(ButtonClickEvent, self.NewGameHandler) +\tself.NewGameHandler = nil +end +self.NewGameHandler = buttonEntity:ConnectEvent(ButtonClickEvent, self.StartNewGame)`), + method('StartNewGame', `self:SetEntityEnabled("/ui/DefaultGroup/MainMenu", false) +self:SetEntityEnabled("/ui/DefaultGroup/CardHand", true) +self:SetEntityEnabled("/ui/DefaultGroup/DeckHud", true) +self:StartCombat()`), method('StartCombat', `self.MaxEnergy = 3 self.Turn = 0 self.DiscardPile = {} @@ -491,8 +572,6 @@ if cardEntity ~= nil and cardEntity.SpriteGUIRendererComponent ~= nil then \t\tok, color = pcall(function() return Color(0.86, 0.42, 0.38, 1) end) \telseif kind == "Skill" then \t\tok, color = pcall(function() return Color(0.42, 0.55, 0.85, 1) end) -\telse -\t\tok, color = pcall(function() return Color(0.46, 0.68, 0.52, 1) end) \tend \tif ok == true and color ~= nil then \t\tcardEntity.SpriteGUIRendererComponent.Color = color @@ -508,6 +587,13 @@ end`, [ { Type: 'string', DefaultValue: null, SyncDirection: 0, Attributes: [], Name: 'path' }, { Type: 'string', DefaultValue: null, SyncDirection: 0, Attributes: [], Name: 'value' }, ]), + method('SetEntityEnabled', `local entity = _EntityService:GetEntityByPath(path) +if entity ~= nil then +\tentity.Enable = enabled +end`, [ + { Type: 'string', DefaultValue: null, SyncDirection: 0, Attributes: [], Name: 'path' }, + { Type: 'boolean', DefaultValue: null, SyncDirection: 0, Attributes: [], Name: 'enabled' }, + ]), method('AnimateCardFrom', `local cardEntity = _EntityService:GetEntityByPath("/ui/DefaultGroup/CardHand/Card" .. tostring(slot)) if cardEntity == nil or cardEntity.UITransformComponent == nil then \treturn @@ -531,9 +617,6 @@ end, 1 / 60)`, [ { Type: 'number', DefaultValue: null, SyncDirection: 0, Attributes: [], Name: 'duration' }, ]), ]); - for (const m of combat.ContentProto.Json.Methods) { - m.ExecSpace = 6; - } writeFileSync('RootDesk/MyDesk/SlayDeckController.codeblock', JSON.stringify(combat, null, 2), 'utf8'); } @@ -552,4 +635,4 @@ upsertUi(); writeCodeblocks(); patchCommon(); -console.log('Slay deck UI and combat codeblocks generated.'); +console.log('Slay deck UI and main menu generated.'); diff --git a/ui/DefaultGroup.ui b/ui/DefaultGroup.ui index ac62489..7b2f7e4 100644 --- a/ui/DefaultGroup.ui +++ b/ui/DefaultGroup.ui @@ -1073,7 +1073,7 @@ "name": "CardHand", "path": "/ui/DefaultGroup/CardHand", "nameEditable": true, - "enable": true, + "enable": false, "visible": true, "localize": true, "displayOrder": 4, @@ -1214,7 +1214,7 @@ "name": "Card1", "path": "/ui/DefaultGroup/CardHand/Card1", "nameEditable": true, - "enable": true, + "enable": false, "visible": true, "localize": true, "displayOrder": 0, @@ -1355,7 +1355,7 @@ "name": "Cost", "path": "/ui/DefaultGroup/CardHand/Card1/Cost", "nameEditable": true, - "enable": true, + "enable": false, "visible": true, "localize": true, "displayOrder": 0, @@ -1543,7 +1543,7 @@ "name": "Name", "path": "/ui/DefaultGroup/CardHand/Card1/Name", "nameEditable": true, - "enable": true, + "enable": false, "visible": true, "localize": true, "displayOrder": 1, @@ -1731,7 +1731,7 @@ "name": "Desc", "path": "/ui/DefaultGroup/CardHand/Card1/Desc", "nameEditable": true, - "enable": true, + "enable": false, "visible": true, "localize": true, "displayOrder": 2, @@ -1919,7 +1919,7 @@ "name": "Card2", "path": "/ui/DefaultGroup/CardHand/Card2", "nameEditable": true, - "enable": true, + "enable": false, "visible": true, "localize": true, "displayOrder": 1, @@ -2060,7 +2060,7 @@ "name": "Cost", "path": "/ui/DefaultGroup/CardHand/Card2/Cost", "nameEditable": true, - "enable": true, + "enable": false, "visible": true, "localize": true, "displayOrder": 0, @@ -2248,7 +2248,7 @@ "name": "Name", "path": "/ui/DefaultGroup/CardHand/Card2/Name", "nameEditable": true, - "enable": true, + "enable": false, "visible": true, "localize": true, "displayOrder": 1, @@ -2436,7 +2436,7 @@ "name": "Desc", "path": "/ui/DefaultGroup/CardHand/Card2/Desc", "nameEditable": true, - "enable": true, + "enable": false, "visible": true, "localize": true, "displayOrder": 2, @@ -2624,7 +2624,7 @@ "name": "Card3", "path": "/ui/DefaultGroup/CardHand/Card3", "nameEditable": true, - "enable": true, + "enable": false, "visible": true, "localize": true, "displayOrder": 2, @@ -2765,7 +2765,7 @@ "name": "Cost", "path": "/ui/DefaultGroup/CardHand/Card3/Cost", "nameEditable": true, - "enable": true, + "enable": false, "visible": true, "localize": true, "displayOrder": 0, @@ -2953,7 +2953,7 @@ "name": "Name", "path": "/ui/DefaultGroup/CardHand/Card3/Name", "nameEditable": true, - "enable": true, + "enable": false, "visible": true, "localize": true, "displayOrder": 1, @@ -3141,7 +3141,7 @@ "name": "Desc", "path": "/ui/DefaultGroup/CardHand/Card3/Desc", "nameEditable": true, - "enable": true, + "enable": false, "visible": true, "localize": true, "displayOrder": 2, @@ -3329,7 +3329,7 @@ "name": "Card4", "path": "/ui/DefaultGroup/CardHand/Card4", "nameEditable": true, - "enable": true, + "enable": false, "visible": true, "localize": true, "displayOrder": 3, @@ -3470,7 +3470,7 @@ "name": "Cost", "path": "/ui/DefaultGroup/CardHand/Card4/Cost", "nameEditable": true, - "enable": true, + "enable": false, "visible": true, "localize": true, "displayOrder": 0, @@ -3658,7 +3658,7 @@ "name": "Name", "path": "/ui/DefaultGroup/CardHand/Card4/Name", "nameEditable": true, - "enable": true, + "enable": false, "visible": true, "localize": true, "displayOrder": 1, @@ -3846,7 +3846,7 @@ "name": "Desc", "path": "/ui/DefaultGroup/CardHand/Card4/Desc", "nameEditable": true, - "enable": true, + "enable": false, "visible": true, "localize": true, "displayOrder": 2, @@ -4034,7 +4034,7 @@ "name": "Card5", "path": "/ui/DefaultGroup/CardHand/Card5", "nameEditable": true, - "enable": true, + "enable": false, "visible": true, "localize": true, "displayOrder": 4, @@ -4175,7 +4175,7 @@ "name": "Cost", "path": "/ui/DefaultGroup/CardHand/Card5/Cost", "nameEditable": true, - "enable": true, + "enable": false, "visible": true, "localize": true, "displayOrder": 0, @@ -4363,7 +4363,7 @@ "name": "Name", "path": "/ui/DefaultGroup/CardHand/Card5/Name", "nameEditable": true, - "enable": true, + "enable": false, "visible": true, "localize": true, "displayOrder": 1, @@ -4551,7 +4551,7 @@ "name": "Desc", "path": "/ui/DefaultGroup/CardHand/Card5/Desc", "nameEditable": true, - "enable": true, + "enable": false, "visible": true, "localize": true, "displayOrder": 2, @@ -4731,6 +4731,993 @@ "@version": 1 } }, + { + "id": "menu0000-0000-4000-8000-000000000000", + "path": "/ui/DefaultGroup/MainMenu", + "componentNames": "MOD.Core.UITransformComponent,MOD.Core.SpriteGUIRendererComponent", + "jsonString": { + "name": "MainMenu", + "path": "/ui/DefaultGroup/MainMenu", + "nameEditable": true, + "enable": true, + "visible": true, + "localize": true, + "displayOrder": 20, + "pathConstraints": "///", + "revision": 1, + "origin": { + "type": "Model", + "entry_id": "UISprite", + "sub_entity_id": null, + "root_entity_id": null, + "replaced_model_id": null + }, + "modelId": "uisprite", + "@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": 960, + "y": 540 + }, + "OffsetMin": { + "x": -960, + "y": -540 + }, + "Pivot": { + "x": 0.5, + "y": 0.5 + }, + "RectSize": { + "x": 1920, + "y": 1080 + }, + "UIMode": 1, + "UIScale": { + "x": 1, + "y": 1, + "z": 1 + }, + "UIVersion": 2, + "anchoredPosition": { + "x": 0, + "y": 0 + }, + "Position": { + "x": 0, + "y": 0, + "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.04, + "g": 0.05, + "b": 0.07, + "a": 0.96 + }, + "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": true, + "Type": 1, + "Enable": true + } + ], + "@version": 1 + } + }, + { + "id": "menu0001-0000-4000-8000-000000000001", + "path": "/ui/DefaultGroup/MainMenu/Title", + "componentNames": "MOD.Core.UITransformComponent,MOD.Core.SpriteGUIRendererComponent,MOD.Core.TextComponent", + "jsonString": { + "name": "Title", + "path": "/ui/DefaultGroup/MainMenu/Title", + "nameEditable": true, + "enable": true, + "visible": true, + "localize": true, + "displayOrder": 0, + "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": 360, + "y": 230 + }, + "OffsetMin": { + "x": -360, + "y": 130 + }, + "Pivot": { + "x": 0.5, + "y": 0.5 + }, + "RectSize": { + "x": 720, + "y": 100 + }, + "UIMode": 1, + "UIScale": { + "x": 1, + "y": 1, + "z": 1 + }, + "UIVersion": 2, + "anchoredPosition": { + "x": 0, + "y": 180 + }, + "Position": { + "x": 0, + "y": 180, + "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, + "g": 0, + "b": 0, + "a": 0 + }, + "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": 0, + "Bold": true, + "DropShadow": false, + "DropShadowAngle": 30, + "DropShadowColor": { + "r": 0, + "g": 0, + "b": 0, + "a": 0.72 + }, + "DropShadowDistance": 32, + "Font": 0, + "FontColor": { + "r": 0.94, + "g": 0.74, + "b": 0.26, + "a": 1 + }, + "FontSize": 64, + "MaxSize": 64, + "MinSize": 8, + "OutlineColor": { + "r": 0.08, + "g": 0.08, + "b": 0.08, + "a": 1 + }, + "OutlineDistance": { + "x": 1, + "y": -1 + }, + "OutlineWidth": 1, + "Overflow": 0, + "OverrideSorting": false, + "Padding": { + "left": 0, + "right": 0, + "top": 0, + "bottom": 0 + }, + "SizeFit": false, + "Text": "슬레이 메이플", + "UseOutLine": true, + "Enable": true + } + ], + "@version": 1 + } + }, + { + "id": "menu0002-0000-4000-8000-000000000002", + "path": "/ui/DefaultGroup/MainMenu/Subtitle", + "componentNames": "MOD.Core.UITransformComponent,MOD.Core.SpriteGUIRendererComponent,MOD.Core.TextComponent", + "jsonString": { + "name": "Subtitle", + "path": "/ui/DefaultGroup/MainMenu/Subtitle", + "nameEditable": true, + "enable": true, + "visible": true, + "localize": true, + "displayOrder": 1, + "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": 380, + "y": 128 + }, + "OffsetMin": { + "x": -380, + "y": 80 + }, + "Pivot": { + "x": 0.5, + "y": 0.5 + }, + "RectSize": { + "x": 760, + "y": 48 + }, + "UIMode": 1, + "UIScale": { + "x": 1, + "y": 1, + "z": 1 + }, + "UIVersion": 2, + "anchoredPosition": { + "x": 0, + "y": 104 + }, + "Position": { + "x": 0, + "y": 104, + "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, + "g": 0, + "b": 0, + "a": 0 + }, + "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": 0, + "Bold": false, + "DropShadow": false, + "DropShadowAngle": 30, + "DropShadowColor": { + "r": 0, + "g": 0, + "b": 0, + "a": 0.72 + }, + "DropShadowDistance": 32, + "Font": 0, + "FontColor": { + "r": 0.82, + "g": 0.86, + "b": 0.9, + "a": 1 + }, + "FontSize": 24, + "MaxSize": 24, + "MinSize": 8, + "OutlineColor": { + "r": 0.08, + "g": 0.08, + "b": 0.08, + "a": 1 + }, + "OutlineDistance": { + "x": 1, + "y": -1 + }, + "OutlineWidth": 1, + "Overflow": 0, + "OverrideSorting": false, + "Padding": { + "left": 0, + "right": 0, + "top": 0, + "bottom": 0 + }, + "SizeFit": false, + "Text": "카드를 뽑고, 덱을 만들고, 첨탑을 오른다", + "UseOutLine": true, + "Enable": true + } + ], + "@version": 1 + } + }, + { + "id": "menu0003-0000-4000-8000-000000000003", + "path": "/ui/DefaultGroup/MainMenu/NewGameButton", + "componentNames": "MOD.Core.UITransformComponent,MOD.Core.SpriteGUIRendererComponent,MOD.Core.ButtonComponent,MOD.Core.TextComponent", + "jsonString": { + "name": "NewGameButton", + "path": "/ui/DefaultGroup/MainMenu/NewGameButton", + "nameEditable": true, + "enable": true, + "visible": true, + "localize": true, + "displayOrder": 2, + "pathConstraints": "////", + "revision": 1, + "origin": { + "type": "Model", + "entry_id": "UIButton", + "sub_entity_id": null, + "root_entity_id": null, + "replaced_model_id": null + }, + "modelId": "uibutton", + "@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": 130, + "y": 14 + }, + "OffsetMin": { + "x": -130, + "y": -54 + }, + "Pivot": { + "x": 0.5, + "y": 0.5 + }, + "RectSize": { + "x": 260, + "y": 68 + }, + "UIMode": 1, + "UIScale": { + "x": 1, + "y": 1, + "z": 1 + }, + "UIVersion": 2, + "anchoredPosition": { + "x": 0, + "y": -20 + }, + "Position": { + "x": 0, + "y": -20, + "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.13, + "g": 0.15, + "b": 0.18, + "a": 1 + }, + "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": true, + "Type": 1, + "Enable": true + }, + { + "@type": "MOD.Core.ButtonComponent", + "Colors": { + "NormalColor": { + "r": 1, + "g": 1, + "b": 1, + "a": 1 + }, + "HighlightedColor": { + "r": 0.9607843, + "g": 0.9607843, + "b": 0.9607843, + "a": 1 + }, + "PressedColor": { + "r": 0.784313738, + "g": 0.784313738, + "b": 0.784313738, + "a": 1 + }, + "SelectedColor": { + "r": 0.9607843, + "g": 0.9607843, + "b": 0.9607843, + "a": 1 + }, + "DisabledColor": { + "r": 0.784313738, + "g": 0.784313738, + "b": 0.784313738, + "a": 0.5019608 + }, + "ColorMultiplier": 1, + "FadeDuration": 0.1 + }, + "ImageRUIDs": { + "HighlightedSprite": null, + "PressedSprite": null, + "SelectedSprite": null, + "DisabledSprite": null + }, + "KeyCode": 0, + "OverrideSorting": false, + "Transition": 1, + "Enable": true + }, + { + "@type": "MOD.Core.TextComponent", + "Alignment": 0, + "Bold": true, + "DropShadow": false, + "DropShadowAngle": 30, + "DropShadowColor": { + "r": 0, + "g": 0, + "b": 0, + "a": 0.72 + }, + "DropShadowDistance": 32, + "Font": 0, + "FontColor": { + "r": 0.94, + "g": 0.74, + "b": 0.26, + "a": 1 + }, + "FontSize": 30, + "MaxSize": 30, + "MinSize": 8, + "OutlineColor": { + "r": 0.08, + "g": 0.08, + "b": 0.08, + "a": 1 + }, + "OutlineDistance": { + "x": 1, + "y": -1 + }, + "OutlineWidth": 1, + "Overflow": 0, + "OverrideSorting": false, + "Padding": { + "left": 0, + "right": 0, + "top": 0, + "bottom": 0 + }, + "SizeFit": false, + "Text": "새 게임", + "UseOutLine": true, + "Enable": true + } + ], + "@version": 1 + } + }, + { + "id": "menu0004-0000-4000-8000-000000000004", + "path": "/ui/DefaultGroup/MainMenu/ContinueButton", + "componentNames": "MOD.Core.UITransformComponent,MOD.Core.SpriteGUIRendererComponent,MOD.Core.ButtonComponent,MOD.Core.TextComponent", + "jsonString": { + "name": "ContinueButton", + "path": "/ui/DefaultGroup/MainMenu/ContinueButton", + "nameEditable": true, + "enable": true, + "visible": true, + "localize": true, + "displayOrder": 3, + "pathConstraints": "////", + "revision": 1, + "origin": { + "type": "Model", + "entry_id": "UIButton", + "sub_entity_id": null, + "root_entity_id": null, + "replaced_model_id": null + }, + "modelId": "uibutton", + "@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": 130, + "y": -71 + }, + "OffsetMin": { + "x": -130, + "y": -129 + }, + "Pivot": { + "x": 0.5, + "y": 0.5 + }, + "RectSize": { + "x": 260, + "y": 58 + }, + "UIMode": 1, + "UIScale": { + "x": 1, + "y": 1, + "z": 1 + }, + "UIVersion": 2, + "anchoredPosition": { + "x": 0, + "y": -100 + }, + "Position": { + "x": 0, + "y": -100, + "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.1, + "g": 0.11, + "b": 0.13, + "a": 0.78 + }, + "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.ButtonComponent", + "Colors": { + "NormalColor": { + "r": 1, + "g": 1, + "b": 1, + "a": 1 + }, + "HighlightedColor": { + "r": 0.9607843, + "g": 0.9607843, + "b": 0.9607843, + "a": 1 + }, + "PressedColor": { + "r": 0.784313738, + "g": 0.784313738, + "b": 0.784313738, + "a": 1 + }, + "SelectedColor": { + "r": 0.9607843, + "g": 0.9607843, + "b": 0.9607843, + "a": 1 + }, + "DisabledColor": { + "r": 0.784313738, + "g": 0.784313738, + "b": 0.784313738, + "a": 0.5019608 + }, + "ColorMultiplier": 1, + "FadeDuration": 0.1 + }, + "ImageRUIDs": { + "HighlightedSprite": null, + "PressedSprite": null, + "SelectedSprite": null, + "DisabledSprite": null + }, + "KeyCode": 0, + "OverrideSorting": false, + "Transition": 1, + "Enable": false + }, + { + "@type": "MOD.Core.TextComponent", + "Alignment": 0, + "Bold": true, + "DropShadow": false, + "DropShadowAngle": 30, + "DropShadowColor": { + "r": 0, + "g": 0, + "b": 0, + "a": 0.72 + }, + "DropShadowDistance": 32, + "Font": 0, + "FontColor": { + "r": 0.55, + "g": 0.58, + "b": 0.62, + "a": 1 + }, + "FontSize": 24, + "MaxSize": 24, + "MinSize": 8, + "OutlineColor": { + "r": 0.08, + "g": 0.08, + "b": 0.08, + "a": 1 + }, + "OutlineDistance": { + "x": 1, + "y": -1 + }, + "OutlineWidth": 1, + "Overflow": 0, + "OverrideSorting": false, + "Padding": { + "left": 0, + "right": 0, + "top": 0, + "bottom": 0 + }, + "SizeFit": false, + "Text": "이어하기", + "UseOutLine": true, + "Enable": true + } + ], + "@version": 1 + } + }, { "id": "hud0000-0000-4000-8000-000000000000", "path": "/ui/DefaultGroup/DeckHud", @@ -4739,7 +5726,7 @@ "name": "DeckHud", "path": "/ui/DefaultGroup/DeckHud", "nameEditable": true, - "enable": true, + "enable": false, "visible": true, "localize": true, "displayOrder": 5, @@ -4873,7 +5860,7 @@ } }, { - "id": "hud0001-0000-4000-8000-000000000001", + "id": "hud0006-0000-4000-8000-000000000006", "path": "/ui/DefaultGroup/DeckHud/DrawPile", "componentNames": "MOD.Core.UITransformComponent,MOD.Core.SpriteGUIRendererComponent", "jsonString": { @@ -5014,7 +6001,7 @@ } }, { - "id": "hud0002-0000-4000-8000-000000000002", + "id": "hud0007-0000-4000-8000-000000000007", "path": "/ui/DefaultGroup/DeckHud/DrawPile/Label", "componentNames": "MOD.Core.UITransformComponent,MOD.Core.SpriteGUIRendererComponent,MOD.Core.TextComponent", "jsonString": { @@ -5202,7 +6189,7 @@ } }, { - "id": "hud0003-0000-4000-8000-000000000003", + "id": "hud0008-0000-4000-8000-000000000008", "path": "/ui/DefaultGroup/DeckHud/DrawPile/Count", "componentNames": "MOD.Core.UITransformComponent,MOD.Core.SpriteGUIRendererComponent,MOD.Core.TextComponent", "jsonString": { @@ -5390,7 +6377,7 @@ } }, { - "id": "hud0004-0000-4000-8000-000000000004", + "id": "hud0009-0000-4000-8000-000000000009", "path": "/ui/DefaultGroup/DeckHud/DiscardPile", "componentNames": "MOD.Core.UITransformComponent,MOD.Core.SpriteGUIRendererComponent", "jsonString": { @@ -5531,7 +6518,7 @@ } }, { - "id": "hud0005-0000-4000-8000-000000000005", + "id": "hud000a-0000-4000-8000-00000000000a", "path": "/ui/DefaultGroup/DeckHud/DiscardPile/Label", "componentNames": "MOD.Core.UITransformComponent,MOD.Core.SpriteGUIRendererComponent,MOD.Core.TextComponent", "jsonString": { @@ -5719,7 +6706,7 @@ } }, { - "id": "hud0006-0000-4000-8000-000000000006", + "id": "hud000b-0000-4000-8000-00000000000b", "path": "/ui/DefaultGroup/DeckHud/DiscardPile/Count", "componentNames": "MOD.Core.UITransformComponent,MOD.Core.SpriteGUIRendererComponent,MOD.Core.TextComponent", "jsonString": { @@ -5907,7 +6894,7 @@ } }, { - "id": "hud0007-0000-4000-8000-000000000007", + "id": "hud000c-0000-4000-8000-00000000000c", "path": "/ui/DefaultGroup/DeckHud/EndTurnButton", "componentNames": "MOD.Core.UITransformComponent,MOD.Core.SpriteGUIRendererComponent,MOD.Core.ButtonComponent,MOD.Core.TextComponent", "jsonString": { @@ -6142,7 +7129,7 @@ } }, { - "id": "hud0008-0000-4000-8000-000000000008", + "id": "hud000d-0000-4000-8000-00000000000d", "path": "/ui/DefaultGroup/DeckHud/Energy", "componentNames": "MOD.Core.UITransformComponent,MOD.Core.SpriteGUIRendererComponent,MOD.Core.TextComponent", "jsonString": {