User Tools

Site Tools


modding:function:globals_talk_page

This is the Talk Page for Globals

Globals: Talk Page

Re: Recent update

I took the liberty of editing this page a bit and adding some info. The globals have nothing in particular to do with DockScreens, so I thought we should avoid inferring that. alterecco

The globals in question are all explained in Transcendence.xml in the section below
<!-- DOCK SCREENS =============================================================
 
	GLOBALS
 
	gPlayer: Object representing the player.
	gPlayerShip: The player's ship.
	gScreen: The current screen being displayed.
	gSource: The station/ship that the player is docked at.
	gTrans: Transcendence application object.
 
	TEMPORARY GLOBALS
 
	gBuyCriteria
	gCost
	gItem
	gMargin
	gPrevScreen
	gPrevPane
	gBonus
 
-->

» In other words there is every reason to think that those specific globals are associated with Dock Screens. ptbptb

Well, not in particular… I mean, they are all available throughout the game in everything else, so I think it is wrong to tie them too tightly to DockScreens.
The Temporary Globals in the list however are almost exclusively tied to DockScreens, but their use and value can be completely different from screen to screen, so it makes little sense to describe them too fully. They are set in script from the calling DockScreen, so they are easy to track down the particular value of.
The Globals however are all set magically behind the scene by the engine. - alterecco
Sorry if I came across too strong, I wasn't feeling well and it made me grumpy. ptbptb
No issue. Just thought you deserved an explanation :) - alterecco

> For some strange reason the edit itself did not keep it history. I hope that is not a problem alterecco

modding/function/globals_talk_page.txt · Last modified: 2014/12/27 04:40 by 127.0.0.1