mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-01 03:21:41 +00:00
Right aligned version/revision
I've always felt that having the version/revision text at the bottom center in the main menu was a bit out of place. A more common place for this kind of thing is in one of the corners. I chose bottom right. Aditionally I right aligned it and changed the v and r in version and revision to capital letters. Comments?
This commit is contained in:
parent
b0bdd233ee
commit
04e5b9c72c
@ -28,7 +28,7 @@ namespace MWGui
|
||||
{
|
||||
getWidget(mVersionText, "VersionText");
|
||||
std::stringstream sstream;
|
||||
sstream << "OpenMW version: " << OPENMW_VERSION;
|
||||
sstream << "OpenMW Version: " << OPENMW_VERSION;
|
||||
|
||||
// adding info about git hash if available
|
||||
std::string rev = OPENMW_VERSION_COMMITHASH;
|
||||
@ -36,7 +36,7 @@ namespace MWGui
|
||||
if (!rev.empty() && !tag.empty())
|
||||
{
|
||||
rev = rev.substr(0,10);
|
||||
sstream << "\nrevision: " << rev;
|
||||
sstream << "\nRevision: " << rev;
|
||||
}
|
||||
|
||||
std::string output = sstream.str();
|
||||
|
@ -2,11 +2,11 @@
|
||||
|
||||
<MyGUI type="Layout">
|
||||
<!-- The entire screen -->
|
||||
<Widget type="Widget" layer="Windows" position="0 0 300 300" name="_Main" >
|
||||
<Widget type="TextBox" skin="SandText" position="0 250 300 50" align="Bottom" name="VersionText">
|
||||
<Property key="TextAlign" value="Center"/>
|
||||
<Widget type="Widget" layer="Windows" position="0 0 300 300" name="_Main">
|
||||
<Widget type="TextBox" skin="SandText" position="0 250 280 50" align="Bottom Right" name="VersionText">
|
||||
<Property key="TextAlign" value="Right"/>
|
||||
<Property key="TextShadow" value="true"/>
|
||||
<Property key="TextShadowColour" value="0 0 0"/>
|
||||
</Widget>
|
||||
</Widget>
|
||||
</Widget>
|
||||
</MyGUI>
|
||||
|
Loading…
Reference in New Issue
Block a user