Adding a shadow to the text, so it is visible on bright maps.
This was SVN commit r6234.
This commit is contained in:
parent
50166bb456
commit
fe55a8b734
@ -343,6 +343,12 @@
|
|||||||
</object>
|
</object>
|
||||||
|
|
||||||
<!-- This object contains the status messages like ´Insufficient wood..´, etc -->
|
<!-- This object contains the status messages like ´Insufficient wood..´, etc -->
|
||||||
|
<object name="globalMessageUnder"
|
||||||
|
type="text"
|
||||||
|
style="globalMessageStyleUnder"
|
||||||
|
>
|
||||||
|
</object>
|
||||||
|
|
||||||
<object name="globalMessage"
|
<object name="globalMessage"
|
||||||
type="text"
|
type="text"
|
||||||
style="globalMessageStyle"
|
style="globalMessageStyle"
|
||||||
|
@ -770,7 +770,7 @@ NOT YET CONVERTED NOT YET CONVERTED NOT YET CONVERTED NOT YET CONVERTED NOT YET
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
<style name="globalMessageStyle"
|
<style name="globalMessageStyle"
|
||||||
hidden="false"
|
hidden="true"
|
||||||
text_align="left"
|
text_align="left"
|
||||||
text_valign="top"
|
text_valign="top"
|
||||||
textcolor="255 255 255"
|
textcolor="255 255 255"
|
||||||
@ -779,4 +779,15 @@ NOT YET CONVERTED NOT YET CONVERTED NOT YET CONVERTED NOT YET CONVERTED NOT YET
|
|||||||
size="20 150 100% 30%"
|
size="20 150 100% 30%"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<!-- This is for creating a small 1px. shadow so the text is visible on the bright maps. -->
|
||||||
|
<style name="globalMessageStyleUnder"
|
||||||
|
hidden="true"
|
||||||
|
text_align="left"
|
||||||
|
text_valign="top"
|
||||||
|
textcolor="50 50 50"
|
||||||
|
ghost="true"
|
||||||
|
font="trebuchet14b"
|
||||||
|
size="19 150 100% 30%"
|
||||||
|
/>
|
||||||
|
|
||||||
</styles>
|
</styles>
|
||||||
|
@ -2251,7 +2251,8 @@ var messagesList = new Array();
|
|||||||
|
|
||||||
function showMessage(text)
|
function showMessage(text)
|
||||||
{
|
{
|
||||||
var message = getGUIObjectByName("globalMessage");
|
message = getGUIObjectByName("globalMessage");
|
||||||
|
messageUnder = getGUIObjectByName("globalMessageUnder");
|
||||||
|
|
||||||
if (messagesList.length == MAX_MESSAGES)
|
if (messagesList.length == MAX_MESSAGES)
|
||||||
{
|
{
|
||||||
@ -2260,7 +2261,9 @@ function showMessage(text)
|
|||||||
|
|
||||||
messagesList.unshift(text);
|
messagesList.unshift(text);
|
||||||
updateMessageView();
|
updateMessageView();
|
||||||
|
|
||||||
message.hidden = false;
|
message.hidden = false;
|
||||||
|
messageUnder.hidden = false;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This is made so only the first message, calls hideMessage().
|
* This is made so only the first message, calls hideMessage().
|
||||||
@ -2278,6 +2281,7 @@ function hideMessage()
|
|||||||
if (messagesList.length == 0)
|
if (messagesList.length == 0)
|
||||||
{
|
{
|
||||||
getGUIObjectByName("globalMessage").hidden = true;
|
getGUIObjectByName("globalMessage").hidden = true;
|
||||||
|
getGUIObjectByName("globalMessageUnder").hidden = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -2294,4 +2298,5 @@ function updateMessageView()
|
|||||||
result = result + messagesList[i] + "\n";
|
result = result + messagesList[i] + "\n";
|
||||||
}
|
}
|
||||||
getGUIObjectByName("globalMessage").caption = result;
|
getGUIObjectByName("globalMessage").caption = result;
|
||||||
|
getGUIObjectByName("globalMessageUnder").caption = result;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user