Sorry to report that that's not making any difference..Wildeblood wrote:if (guiScreen !== "GUI_SCREEN_MAIN" && !player.ship.isDocked)
Alternative Contracts Interface
Moderators: winston, another_commander
- Diziet Sma
- ---- E L I T E ----
- Posts: 6312
- Joined: Mon Apr 06, 2009 12:20 pm
- Location: Aboard the Pitviper S.E. "Blackwidow"
Re: Alternative Contracts Interface
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
- Smivs
- Retired Assassin
- Posts: 8408
- Joined: Tue Feb 09, 2010 11:31 am
- Location: Lost in space
- Contact:
Re: Alternative Contracts Interface
Is it missing a couple of '=' ?
Code: Select all
if (guiScreen !== "GUI_SCREEN_MAIN" && !==player.ship.isDocked)
Commander Smivs, the friendliest Gourd this side of Riedquat.
- Wildeblood
- ---- E L I T E ----
- Posts: 2453
- Joined: Sat Jun 11, 2011 6:07 am
- Location: Western Australia
- Contact:
Re: Alternative Contracts Interface
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;
}
}
- Diziet Sma
- ---- E L I T E ----
- Posts: 6312
- Joined: Mon Apr 06, 2009 12:20 pm
- Location: Aboard the Pitviper S.E. "Blackwidow"
Re: Alternative Contracts Interface
Doh! Yep.. that fixed it..Smivs wrote:Is it missing a couple of '=' ?Code: Select all
if (guiScreen !== "GUI_SCREEN_MAIN" && !==player.ship.isDocked)
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.Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
- Diziet Sma
- ---- E L I T E ----
- Posts: 6312
- Joined: Mon Apr 06, 2009 12:20 pm
- Location: Aboard the Pitviper S.E. "Blackwidow"
Re: Alternative Contracts Interface
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; } }
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
- Wildeblood
- ---- E L I T E ----
- Posts: 2453
- Joined: Sat Jun 11, 2011 6:07 am
- Location: Western Australia
- Contact:
Re: Alternative Contracts Interface
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
- Diziet Sma
- ---- E L I T E ----
- Posts: 6312
- Joined: Mon Apr 06, 2009 12:20 pm
- Location: Aboard the Pitviper S.E. "Blackwidow"
Re: Alternative Contracts Interface
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)
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
- Wildeblood
- ---- E L I T E ----
- Posts: 2453
- Joined: Sat Jun 11, 2011 6:07 am
- Location: Western Australia
- Contact:
Re: Alternative Contracts Interface
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)
- Diziet Sma
- ---- E L I T E ----
- Posts: 6312
- Joined: Mon Apr 06, 2009 12:20 pm
- Location: Aboard the Pitviper S.E. "Blackwidow"
Re: Alternative Contracts Interface
Fair enough..
(Thanks for the second fix)
(Thanks for the second fix)
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
- Wildeblood
- ---- E L I T E ----
- Posts: 2453
- Joined: Sat Jun 11, 2011 6:07 am
- Location: Western Australia
- Contact:
Re: Alternative Contracts Interface
I hope you tested it properly, Diziet Sma, because I just uploaded it without testing it myself.
- Diziet Sma
- ---- E L I T E ----
- Posts: 6312
- Joined: Mon Apr 06, 2009 12:20 pm
- Location: Aboard the Pitviper S.E. "Blackwidow"
Re: Alternative Contracts Interface
I wouldn't say "thoroughly", but it all seems to work correctly so far..
No hud in external views, and the Contract Interface looks the way it should.
No hud in external views, and the Contract Interface looks the way it should.
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied