Since you're already using 1.77-only things, you could useKeeper wrote:or at least make them behave like the "View Chart" but without the "press F6 to return"
backgroundSpecial: "SHORT_RANGE_CHART"
hereModerators: winston, another_commander
Since you're already using 1.77-only things, you could useKeeper wrote:or at least make them behave like the "View Chart" but without the "press F6 to return"
backgroundSpecial: "SHORT_RANGE_CHART"
hereThe built-in transport contracts do it. The government symbols are characters 0..7 in the Oolite font, so you can doKeeper wrote:Edit 2: OK, now it would be nice if I could find how to put the government type symbols in text. I've seen it done somewhere but I can't recall where.
String.fromCharCode(govNumber)
to add them to a string.What of the economy symbols, then? I thought it might be nice to put what the destination (maybe current too) planet's government/economy (and tech level?) is when on the chart screen, since the "i" button doesn't work when using backgroundSpecial. That way you can factor what you might be hauling yourself into your decision of which contract to accept.cim wrote:The government symbols are characters 0..7 in the Oolite font, so you can doString.fromCharCode(govNumber)
to add them to a string.
Also available at positions 16..23 (seeKeeper wrote:What of the economy symbols, then?
Textures/oolite-font.png
)Yes, I am aware of that..Keeper wrote:They're out there. There are four types of GPB by default -- one for each set of four decals. The first set's role is strictly as a pirate. The next two are trader or pirate, and the fourth is trader only.Diziet Sma wrote:It will make a nice change in my Ooniverse to run across some GPBs that aren't being flown by pirates!
TryKeeper wrote:System.infoForSystem(thisGalaxy, this.ec_targetsystems[counter]).techLevel
.techlevel
for this, and then just +1 for display will work fine. SystemInfo properties are named exactly after the corresponding planetinfo.plist
property, and the plist properties are all lower-case.TryKeeper wrote:(economy had to be written long like that because the numerical value and text value go in opposite directions, so you can't just print the value+16, unfortunately).
String.fromCharCode(23-economy)
Look closely:Keeper wrote:My guess is that "infoForSystem" does not support "techLevel".
Ah hah! And here I was being all careful to match the upper/lower case with what I see on the Oolite Javascript wiki...! Yes, it works now.cim wrote:Try.techlevel
for this, and then just +1 for display will work fine. SystemInfo properties are named exactly after the correspondingplanetinfo.plist
property, and the plist properties are all lower-case.
But that's... but that's... but that's... ... ... I hate math.TryString.fromCharCode(23-economy)
Oooh, nice!Keeper wrote:Here is how the chart view looks now, on the second available contract:
"Big ships take more booty on your interstellar flights..."