How to change the interface location for overscan?

AOLBITES

Chieftain
Joined
Apr 6, 2006
Messages
45
So I just got a dlp projection tv ...

based on how these things work, you need to use 1:1 pixel mapping to avoid some artifacts in the graphics ... if each pixel doesn't hit its assigned mirror perfectly some annoying things happen with single pixel text, and patterns of single pixels

anyway.

I found this section in the CvMainInterface.py

Code:
        # Find out our resolution
# 12monkeys - PlotList Button Enhancement - begin
#        xResolution = screen.getXResolution()
#        yResolution = screen.getYResolution()    
#        screen.setDimensions(0, 0, xResolution, yResolution)

#FfH: Added by Kael 08/25/2006
        self.pOldPlot = 0
#FfH: End Add

        self.xResolution = screen.getXResolution()
        self.yResolution = screen.getYResolution()
        # Find out our resolution
        Trophies.init()
        
        # this is only to prevent changing all variables in the code. 
        xResolution = self.xResolution
        yResolution = self.yResolution
        screen.setDimensions(0, 0, self.xResolution, self.yResolution)
Is there some place that I could subtract 10 or 20 pixels from the reported resolution to bring the interface completely back onto the screen?

not knowing anything about scripting ... would it work to simply put:

xResolution = self.xResolution - 15

or

screen.setDimensions(10, 10, self.xResolution-10, self.yResolution-10)

or something like that?

Ideally it would be a sort of 'virtual resolution' sitting on top of the actual resolution ..
 
So, I got most of the stuff on screen by changing that section to:

Code:
		self.xResolution = screen.getXResolution() - 40
		self.yResolution = screen.getYResolution() - 30
		# Find out our resolution
		Trophies.init()
		
		# this is only to prevent changing all variables in the code. 
		xResolution = self.xResolution 
		yResolution = self.yResolution 
		screen.setDimensions(20, 15, self.xResolution, self.yResolution)

But there are several sections that use fixed values and some odd stuff i don't understand..

so .. why? :

Code:
	def numPlotListButtons(self):
		screen = CyGInterfaceScreen( "MainInterface", CvScreenEnums.MAIN_INTERFACE )
		xResolution = screen.getXResolution()
		return ((xResolution - (iMultiListXL+iMultiListXR) - 68) / 34)

and..

Code:
	# prepares the display of the mode, view, grouping, filter  switches
	def preparePlotListObjects(self):
		screen = CyGInterfaceScreen( "MainInterface", CvScreenEnums.MAIN_INTERFACE )

		xResolution = self.xResolution
		yResolution = self.yResolution

and..

Code:
		# <START>Updated by mexico - preventing exception for python reloading
		#self.xResolution = CyGInterfaceScreen( "MainInterface", CvScreenEnums.MAIN_INTERFACE ).getXResolution()
		#self.yResolution = CyGInterfaceScreen( "MainInterface", CvScreenEnums.MAIN_INTERFACE ).getYResolution()
		self.xResolution=0
		self.yResolution=0
		# <END>

Why are so many sections of the same file giving different values to the same named function?

it all seems a bit circular..

anyhow, its mostly playable .. and i don't want to mess anything up not knowing any scripting... I would have thought though that Everything on the screen would be based off of screen.setDimensions ...but it isn't obviously
 
Got It!!

There were several more references to:
Code:
        self.xResolution = screen.getXResolution()
        self.yResolution = screen.getYResolution()
in the file, I just replaced them all with:

Code:
        self.xResolution = screen.getXResolution() - 40
        self.yResolution = screen.getYResolution() - 30
And everything looks good at the moment :rockon::smoke:
 
However I got a python exception, none of the lines referenced are one i changed i am fairly sure .. unless i hit something by mistake

I Was able to continue playing thru though and i can't replicate it with the autosave .. so i don't know whats up

If i recall correctly i was selecting a unit in the capitol [a warrior] that was fortified; playing as Kuriotates

Traceback (mostblahblahblah]

file "CvScreensInterface" line 589 in handleInput
file "CvMainInterface" line 5349 in handleInput
file "CvMainInterface" line 521 in GetPlotListButtonName
file "CvMainInterface" line 1055 in SelectGroup
AttributeError 'NoneType' object has no attribute 'GetGroupID'
 
Back
Top Bottom