Re: Alternative Contracts Interface
Posted: Sat Nov 24, 2012 6:26 pm
Sorry to report that that's not making any difference..Wildeblood wrote:if (guiScreen !== "GUI_SCREEN_MAIN" && !player.ship.isDocked)
For information and discussion about Oolite.
https://bb.oolite.space/
Sorry to report that that's not making any difference..Wildeblood wrote:if (guiScreen !== "GUI_SCREEN_MAIN" && !player.ship.isDocked)
Code: Select all
if (guiScreen !== "GUI_SCREEN_MAIN" && !==player.ship.isDocked)
Yeah, the boolean is called just .docked, not .isDocked. Try this:-Diziet Sma wrote:Sorry to report that that's not making any difference..Wildeblood wrote:if (guiScreen !== "GUI_SCREEN_MAIN" && !player.ship.isDocked)
Code: Select all
this.guiScreenChanged = function()
{
if (player.ship.docked) return;
if (guiScreen !== "GUI_SCREEN_MAIN")
{
player.ship.hudHidden = false;
return;
}
}
Doh! Yep.. that fixed it..Smivs wrote:Is it missing a couple of '=' ?Code: Select all
if (guiScreen !== "GUI_SCREEN_MAIN" && !==player.ship.isDocked)
!player.ship.isDocked
must be the correct usage.It does! Many thanks!Wildeblood wrote:Yeah, the boolean is called just .docked, not .isDocked. Try this:-Diziet Sma wrote:Sorry to report that that's not making any difference..Wildeblood wrote:if (guiScreen !== "GUI_SCREEN_MAIN" && !player.ship.isDocked)If that doesn't fix it... well, it should.Code: Select all
this.guiScreenChanged = function() { if (player.ship.docked) return; if (guiScreen !== "GUI_SCREEN_MAIN") { player.ship.hudHidden = false; return; } }
That's un-possible.Diziet Sma wrote:Doh! Yep.. that fixed it..Smivs wrote:Is it missing a couple of '=' ?Code: Select all
if (guiScreen !== "GUI_SCREEN_MAIN" && !==player.ship.isDocked)
It is, except it should have beenDiziet Sma wrote:Ya know, I even wondered about that when I first looked at it, but figured Wildeblood knows this stuff way better than I do, so I assumed!player.ship.isDocked
must be the correct usage.
!player.ship.docked
Well, it worked. Try it yourself if you don't believe me.Wildeblood wrote:That's un-possible.Diziet Sma wrote:Doh! Yep.. that fixed it..Smivs wrote:Is it missing a couple of '=' ?Code: Select all
if (guiScreen !== "GUI_SCREEN_MAIN" && !==player.ship.isDocked)
I don' need to try it. It appeared to work because it stopped the script at the point you wanted it to stop. But it would also stop at the same point whether you were docked or not.Diziet Sma wrote:Well, it worked. Try it yourself if you don't believe me.Wildeblood wrote:That's un-possible.Smivs wrote:Is it missing a couple of '=' ?Code: Select all
if (guiScreen !== "GUI_SCREEN_MAIN" && !==player.ship.isDocked)