forked from 0ad/0ad
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:
parent
f182617c72
commit
8fee4a1fb3
@ -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"
|
||||
|
@ -595,7 +595,8 @@ function tryConstruction( name )
|
||||
else
|
||||
{
|
||||
// If not, output the error message.
|
||||
console.write( result );
|
||||
//console.write( result );
|
||||
showMessage(result);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user