Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Show 'S' for space stations when not showing body images on star map

Fix incoming ships height and overflow
  • Loading branch information...
commit 4fe169f4c324d965b2102cdfc7a4a63bcd7580a3 1 parent 2568e52
@rozeskjm rozeskjm authored
Showing with 9 additions and 2 deletions.
  1. +3 −0  mapper.js
  2. +6 −2 notify.js
View
3  mapper.js
@@ -312,6 +312,9 @@ if (typeof YAHOO.lacuna.Mapper == "undefined" || !YAHOO.lacuna.Mapper) {
case 'asteroid':
this.imageHolder.innerHTML = "A";
break;
+ case 'space station':
+ this.imageHolder.innerHTML = "S";
+ break;
default:
this.imageHolder.innerHTML = "U";
break;
View
8 notify.js
@@ -41,6 +41,9 @@ if (typeof YAHOO.lacuna.Notify == "undefined" || !YAHOO.lacuna.Notify) {
Dom.removeClass(this.notify, Lib.Styles.HIDDEN);
});
+ this.Display.showEvent.subscribe(function(){
+ Dom.setStyle(this.notifyList.parentNode, "max-height", (Game.GetSize().h - 125) + "px");
+ });
this.Display.render();
}
},
@@ -48,8 +51,9 @@ if (typeof YAHOO.lacuna.Notify == "undefined" || !YAHOO.lacuna.Notify) {
return [
' <div class="hd" style="background:transparent;">Incoming Ships!</div>',
' <div class="bd" style="background: url(',Lib.AssetUrl,'ui/transparent_black.png) repeat scroll 0pt 0pt transparent;">',
- ' <ul id="notifyList">',
- ' </ul>',
+ ' <div style="overflow:auto;">',
+ ' <ul id="notifyList"></ul>',
+ ' </div>',
' </div>'
].join('');
},
Please sign in to comment.
Something went wrong with that request. Please try again.