Zero Hour rebuilt from EA's source: x64, Direct3D 11, VS2022/CMake, ~60 original bugs fixed, an AI that builds a base. Bring your own game.
C++ cmakecnccommand-and-conquercppdirectx11game-enginegame-preservationgeneralsrtssage-enginex64zero-hour
feat(gameengine): the feed's note mark lies down across its plate
Olcay Seygand9a4f8f210cc
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex ec71710ac..e311e7976 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -457,7 +457,7 @@ found and fixed — EA's own, not port damage.**- The clock and frame-rate readout is drawn on top of everything.- The superweapon countdowns are pictures now, not a list of names: the same strip treatment, in the top right corner, under that readout. Each one wears its own seconds and a sweeping clock, the next to land sits at the right hand end, and if you are watching more than eighteen of them the rest become a count.- Every button's corner markings - the hotkey, the price, the time, the number queued - sit flush in the corners instead of floating a few pixels inside them, and are set a size smaller than the button's own text: four labels at full size were eating the picture they were meant to annotate.-- The messages that ran down the top left corner, out of money or a structure under attack, are lines of a feed standing on the radar now, the way Dota's kill feed stands on its minimap. Each line sits on a black band that thins out over the battlefield. A line about a player opens on his general's flag with his name in his colour; the rest open on a gold mark. A smoke signal or a beacon goes in, and so does a player beaten or gone, for a player and a watcher alike. Six lines at most, ten seconds each, the newest at the bottom, and the feed steps up over the production queue's row whenever that is out. Missed something? Press Enter: while the chat is open the last twelve lines come back, however old they are, and the chat moves up to stand clear of them. A line with no player opens on a steel plate the size of a flag with the gold mark on it, so every line's words start in the same column.+- The messages that ran down the top left corner, out of money or a structure under attack, are lines of a feed standing on the radar now, the way Dota's kill feed stands on its minimap. Each line sits on a black band that thins out over the battlefield. A line about a player opens on his general's flag with his name in his colour; the rest open on a gold mark. A smoke signal or a beacon goes in, and so does a player beaten or gone, for a player and a watcher alike. Six lines at most, ten seconds each, the newest at the bottom, and the feed steps up over the production queue's row whenever that is out. Missed something? Press Enter: while the chat is open the last twelve lines come back, however old they are, and the chat moves up to stand clear of them. A line with no player opens on a steel plate the size of a flag with a gold exclamation mark lying across it, so every line's words start in the same column.- A superweapon's wait is written in plain seconds - 200, not 3:20 - so it compares with every other countdown on the screen at a glance. Once it is charged the number goes away entirely and the picture itself breathes in your colour, which is the one thing you want to catch out of the corner of your eye.- The countdown inside a strip picture moved down into its bottom left corner and carries the unit with it - 45s, 200s - on a translucent plate. In the middle of the picture it sat on the one thing the picture is there to show, and the plate it lost when it was in the middle earns its place down in the corner, where a pale cameo was swallowing the digits and their shadow together. This applies to the superweapon countdowns in the top right as well.- Every picture in the row stands in a tray - the same tray your general's powers stand in down in the corner, your own side's copy of it, so the American, Chinese and GLA strips each carry their own metal. The tray is turned back to front, because that bar grows out of the right hand corner and the strip grows out of the left, so its heavy rail leads the row instead of standing between every pair of pictures. It is never stretched to fit, and side by side the trays close up behind each other by exactly what that bar closes its own up by, so a row of them reads as one run of metal rather than a line of loose boxes. Stacked they stand clear of each other instead: a picture in a column carries its whole tray, with none of the one above it cutting across its top edge. The strip is flush against the left edge, and a black rectangle laid over the battlefield is gone.diff --git a/GeneralsMD/Code/Data/Window/Html/Feed.html b/GeneralsMD/Code/Data/Window/Html/Feed.htmlindex 46b962223..f0674a8cd 100644--- a/GeneralsMD/Code/Data/Window/Html/Feed.html+++ b/GeneralsMD/Code/Data/Window/Html/Feed.html@@ -40,10 +40,12 @@.flag { width: 20px; height: 12px; margin-right: 4px; vertical-align: middle; }/* a plain message has no player, so a steel plate the flag's size with a mark on it stands where- the flag would, and every line's words start in one column */- .chip { display: inline-block; width: 20px; height: 10px; line-height: 10px; margin-right: 4px; vertical-align: middle;- text-align: center; font-size: 8px; font-weight: bold; color: #f2cf4a;+ the flag would, and every line's words start in one column. The mark is an exclamation mark+ lying down, a bar and its dot, since the renderer turns no text */+ .chip { display: inline-block; position: relative; width: 20px; height: 10px; margin-right: 4px; vertical-align: middle;background: linear-gradient(to bottom, #6f7782, #3f4650); border-top: 1px solid #aab4bf; border-bottom: 1px solid #0c1114; }+ .chip .bang { position: absolute; left: 4px; top: 4px; width: 8px; height: 2px; background-color: #f2cf4a; }+ .chip .dot { position: absolute; left: 14px; top: 4px; width: 2px; height: 2px; background-color: #f2cf4a; }.who { font-weight: bold; }.cameo { width: 18px; height: 13px; margin: 0 4px; vertical-align: middle; }.what { color: #e8d27a; }@@ -63,7 +65,7 @@<div id="feed" style="height: {{floor}}px"><div id="lines"><div class="line" data-each="feed">- <div class="strip k{{kind}}"><span class="chip">!</span><img class="flag" src="{{portrait}}">{{before}}<span class="who" style="color: {{color}}">{{name}}</span>{{after}}<img class="cameo" src="{{image}}"><span class="what">{{what}}</span><span class="tag {{tag}}">{{tagtext}}</span></div>+ <div class="strip k{{kind}}"><span class="chip"><span class="bang"></span><span class="dot"></span></span><img class="flag" src="{{portrait}}">{{before}}<span class="who" style="color: {{color}}">{{name}}</span>{{after}}<img class="cameo" src="{{image}}"><span class="what">{{what}}</span><span class="tag {{tag}}">{{tagtext}}</span></div></div></div></div>