Exemplo n.º 1
0
	def onButtonTerminate( self ):
		if self.finished:
			self.close()
		else:
			RunHost.terminate()
			self.playerThread.finished = True
			self.ui.buttonTerminate.setEnabled( False )
Exemplo n.º 2
0
 def onButtonTerminate(self):
     if self.finished:
         self.close()
     else:
         RunHost.terminate()
         self.playerThread.finished = True
         self.ui.buttonTerminate.setEnabled(False)
Exemplo n.º 3
0
    def onTool(self, tool):
        name = tool.name
        if name == 'run':
            from gii.core.tools import RunHost
            RunHost.run('main')

        elif name == 'deploy':
            deployManager = self.getModule('deploy_manager')
            if deployManager:
                deployManager.setFocus()
Exemplo n.º 4
0
	def onTool( self, tool ):
		name = tool.name
		if name == 'run':
			from gii.core.tools import RunHost
			RunHost.run( 'main' )
			
		elif name == 'deploy':
			deployManager = self.getModule('deploy_manager')
			if deployManager:
				deployManager.setFocus()
Exemplo n.º 5
0
def main(argv):
    app.openProject()
    args = cli.parse_args(argv[1:])

    if args.build:
        buildTargetName = 'host'
        if args.platform != 'native':
            buildTargetName = args.platform

        from gii.core.tools import Build
        buildOptions = {
            'build_type': args.build_type,
            'targets': [buildTargetName]
        }
        code = Build.run(**buildOptions)
        if code and code != 0:
            exit(code)

    from gii.core.tools import RunHost
    options = {
        'base': args.local and 'local' or 'game',
        'platform': args.platform,
        'steam_support': args.steam_support
    }
    code = RunHost.run(args.target, *args.arguments, **options)
    exit(code)
Exemplo n.º 6
0
def main(argv):
    app.openProject()
    args = cli.parse_args(argv[1:])
    if args.build:
        from gii.core.tools import Build
        code = Build.run()
        if code and code != 0:
            exit(code)

    from gii.core.tools import RunHost
    code = RunHost.run(args.target)
    exit(code)
Exemplo n.º 7
0
def main( argv ):
	app.openProject()
	args = cli.parse_args( argv[1:] )	
	if args.build:
		from gii.core.tools import Build
		code = Build.run()
		if code and code != 0:
			exit( code )

	from gii.core.tools import RunHost
	code = RunHost.run( args.target )
	exit( code )
Exemplo n.º 8
0
	def onTool( self, tool ):
		name = tool.name
		if name == 'run':
			from gii.core.tools import RunHost
			RunHost.run( 'main' )			
Exemplo n.º 9
0
 def run(self, target=None, *args):
     from gii.core.tools import RunHost
     RunHost.run('main')
Exemplo n.º 10
0
	def run( self ):
		if not self.targetName:
			return
		returncode = RunHost.run( self.targetName )
		self.finished = True
Exemplo n.º 11
0
 def run(self):
     if not self.targetName:
         return
     returncode = RunHost.run(self.targetName)
     self.finished = True
Exemplo n.º 12
0
	def run( self, target = None, *args ):
		from gii.core.tools import RunHost
		RunHost.run( 'main' )