Adding new function to show status messages for lacking resources when building and training units.

This was SVN commit r6232.
This commit is contained in:
freenity 2008-07-15 12:55:44 +00:00
parent f182617c72
commit 8fee4a1fb3
3 changed files with 20 additions and 2 deletions

View File

@ -342,6 +342,13 @@
]]></action>
</object>
<!-- This object contains the status messages like ´Insufficient wood..´, etc -->
<object name="globalMessage"
type="text"
style="globalMessageStyle"
>
</object>
<!-- GROUP: STATUS PANE -->
<object name="snStatusPane"
hotkey="session.statuspane.toggle"

View File

@ -595,7 +595,8 @@ function tryConstruction( name )
else
{
// If not, output the error message.
console.write( result );
//console.write( result );
showMessage(result);
}
}

View File

@ -554,7 +554,7 @@
sprite="snIconSheetMiniMapButton"
sprite_over="snIconSheetMiniMapButtonOver"
sprite_disabled="snIconSheetMiniMapButtonDisabled"
ghost="false"
ghost="false"
/>
<style name="snGreenBar"
@ -769,4 +769,14 @@ NOT YET CONVERTED NOT YET CONVERTED NOT YET CONVERTED NOT YET CONVERTED NOT YET
tooltip="(TBA)"
/>
<style name="globalMessageStyle"
hidden="false"
text_align="left"
text_valign="top"
textcolor="255 255 255"
ghost="true"
font="trebuchet14b"
size="20 150 100% 30%"
/>
</styles>