<p></p>
<p dir="auto">It used to be the case that if you enabled MP meters the HP values would shift up by one pixel; I did that to make it easier to see the MP meters. Recently James rewrote the battle UI using slices. He wrote (discussion of r12830):</p>
<blockquote>
<p dir="auto">If you turn bat.test_future to toggle mode, you'll easily see that this is not a pixel perfect match for the old code.</p>
<p dir="auto">Specifically, rather than shifting the HP text up one pixel in response to MP meter visibility, I just leave it up one pixel in the slice based ui.</p>
<p dir="auto">The one pixel shift up is such a weird specific hack that I haven't thought of a good way to reproduce it generically with slices</p>
</blockquote>
<p dir="auto">I have a draft of a reply I never sent:</p>
<blockquote>
<p dir="auto">One way to reproduce the one pixel shift would be to parent the HP text and MP meter to a layout slice which stacks vertically from the bottom, with a negative child padding so that the presence of the MP meter shifts the text up by a pixel.</p>
</blockquote>
<p dir="auto">(Currently, the HP and MP meters, HP text and icon grid area are all children of the same container.)<br>
This is a pretty ugly solution, and when it becomes customisable people will probably be confused by the layout slice, which becomes unnecessary when you can customise slice positions. But it's definitely preferable to do slice positioning entirely using slices rather than to hardcode anything.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/ohrrpgce/ohrrpgce/issues/1237#issuecomment-1099745645">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AMWGWZUZCUAHOAYZTETZ5DTVFC3UHANCNFSM5TOXOPZQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AMWGWZTDPHG7CEYQMLTOXZTVFC3UHA5CNFSM5TOXOPZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOIGGMS3I.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><ohrrpgce/ohrrpgce/issues/1237/1099745645</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/ohrrpgce/ohrrpgce/issues/1237#issuecomment-1099745645",
"url": "https://github.com/ohrrpgce/ohrrpgce/issues/1237#issuecomment-1099745645",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>