forked from 0ad/0ad
Fix a small issue with tech overlays.
This was SVN commit r11706.
This commit is contained in:
parent
bfb7526bcf
commit
d92ef0d13e
@ -396,6 +396,8 @@ function setupUnitPanel(guiName, usedPanels, unitEntState, items, callback)
|
|||||||
// Button Function (need nested functions to get the closure right)
|
// Button Function (need nested functions to get the closure right)
|
||||||
button.onpress = (function(e){ return function() { callback(e) } })(item);
|
button.onpress = (function(e){ return function() { callback(e) } })(item);
|
||||||
|
|
||||||
|
if (guiName == RESEARCH)
|
||||||
|
{
|
||||||
if (item.pair)
|
if (item.pair)
|
||||||
{
|
{
|
||||||
button.onpress = (function(e){ return function() { callback(e) } })(item.bottom);
|
button.onpress = (function(e){ return function() { callback(e) } })(item.bottom);
|
||||||
@ -415,6 +417,12 @@ function setupUnitPanel(guiName, usedPanels, unitEntState, items, callback)
|
|||||||
|
|
||||||
pair.hidden = false;
|
pair.hidden = false;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Hide the overlay
|
||||||
|
selection.hidden = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Get icon image
|
// Get icon image
|
||||||
if (guiName == FORMATION)
|
if (guiName == FORMATION)
|
||||||
|
Loading…
Reference in New Issue
Block a user