diff --git a/OpenRA.Mods.Cnc/Widgets/CncIngameMenuLogic.cs b/OpenRA.Mods.Cnc/Widgets/CncIngameMenuLogic.cs index 472c48975b..3cb2c39b9e 100755 --- a/OpenRA.Mods.Cnc/Widgets/CncIngameMenuLogic.cs +++ b/OpenRA.Mods.Cnc/Widgets/CncIngameMenuLogic.cs @@ -87,6 +87,8 @@ namespace OpenRA.Mods.Cnc.Widgets world.WorldActor.Trait().Fade(CncMenuPaletteEffect.EffectType.None); onExit(); }; + + menu.GetWidget("RECBLOCK").IsVisible = () => world.FrameNumber / 25 % 2 == 0; } public void PromptConfirmAction(string title, string text, Action onConfirm, Action onCancel) diff --git a/OpenRA.Mods.Cnc/Widgets/CncMenuLogic.cs b/OpenRA.Mods.Cnc/Widgets/CncMenuLogic.cs index 83a8f293be..34af0966ef 100755 --- a/OpenRA.Mods.Cnc/Widgets/CncMenuLogic.cs +++ b/OpenRA.Mods.Cnc/Widgets/CncMenuLogic.cs @@ -121,6 +121,8 @@ namespace OpenRA.Mods.Cnc.Widgets }); }; settingsMenu.GetWidget("BACK_BUTTON").OnClick = () => Menu = MenuType.Main; + + widget.GetWidget("RECBLOCK").IsVisible = () => world.FrameNumber / 25 % 2 == 0; } void RemoveShellmapUI() diff --git a/artsrc/cnc/chrome.svg b/artsrc/cnc/chrome.svg index 591bc4ea2f..7b2bbb987d 100644 --- a/artsrc/cnc/chrome.svg +++ b/artsrc/cnc/chrome.svg @@ -574,7 +574,7 @@ d="m 280,556.36218 -8,8 0,0 8,8 z" style="fill:#ffffff;fill-opacity:1;stroke:none" /> @@ -645,5 +645,18 @@ id="path3963" inkscape:connector-curvature="0" sodipodi:nodetypes="ccccccccccccc" /> + diff --git a/mods/cnc/chrome.yaml b/mods/cnc/chrome.yaml index 23b499d551..d0e852e33b 100644 --- a/mods/cnc/chrome.yaml +++ b/mods/cnc/chrome.yaml @@ -1,6 +1,9 @@ shellmap: reticle.png reticle: 0,0,512,512 +shellmapbits: chrome.png + record: 256,48,16,16 + logos: chrome.png install:128,0,128,128 eva:256,64,128,64 diff --git a/mods/cnc/chrome/ingamemenu.yaml b/mods/cnc/chrome/ingamemenu.yaml index 53ca31775a..995d368868 100644 --- a/mods/cnc/chrome/ingamemenu.yaml +++ b/mods/cnc/chrome/ingamemenu.yaml @@ -11,6 +11,20 @@ Container@INGAME_MENU: Height:512 ImageCollection:shellmap ImageName:reticle + Label@REC: + X:(WINDOW_RIGHT-512)/2+10 + Y:(WINDOW_BOTTOM+512)/2-28 + Height:18 + Font:Bold + Text:REC + Image@RECBLOCK: + Id:RECBLOCK + X:(WINDOW_RIGHT-512)/2+40 + Y:(WINDOW_BOTTOM+512)/2-25 + Width:16 + Height:16 + ImageCollection:shellmapbits + ImageName:record Image@EVA: X:WINDOW_RIGHT-128-43 Y:43 diff --git a/mods/cnc/chrome/mainmenu.yaml b/mods/cnc/chrome/mainmenu.yaml index 40c22d7272..6e9d2ce995 100644 --- a/mods/cnc/chrome/mainmenu.yaml +++ b/mods/cnc/chrome/mainmenu.yaml @@ -11,6 +11,20 @@ Container@MENU_BACKGROUND: Height:512 ImageCollection:shellmap ImageName:reticle + Label@REC: + X:(WINDOW_RIGHT-512)/2+10 + Y:(WINDOW_BOTTOM+512)/2-28 + Height:18 + Font:Bold + Text:REC + Image@RECBLOCK: + Id:RECBLOCK + X:(WINDOW_RIGHT-512)/2+40 + Y:(WINDOW_BOTTOM+512)/2-25 + Width:16 + Height:16 + ImageCollection:shellmapbits + ImageName:record Image@EVA: X:WINDOW_RIGHT-128-43 Y:43 diff --git a/mods/cnc/uibits/chrome.png b/mods/cnc/uibits/chrome.png index ee09ce32a7..bd661c63da 100644 Binary files a/mods/cnc/uibits/chrome.png and b/mods/cnc/uibits/chrome.png differ