Advertisement
Civilization Fanatics' Center  

Welcome to Civilization Fanatics' Center.

You are currently viewing our site as a guest which gives you limited access to our site features. By joining our free community, you will be able to participate in the discussions, search the forum, send private messages, vote in polls, upload your own screenshots to the gallery, and access many other special features. Registration is fast, simple and absolutely free, so sign up today! If you have any problems with the registration process or your account login, please contact support.

Go Back   Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization

Notices

Reply
 
Thread Tools
Old May 30, 2010, 06:36 AM   #1
vincentz
Divemaster
 
vincentz's Avatar
 
Join Date: Feb 2009
Location: Denmark
Posts: 2,535
X and Y of side bar???

Does anyone know how to adjust/mod the X and/or Y of the sidebar showing unit/terrain/city infos?

As shown on the picture, it can be quite difficult to determine which unit will defend when attacking a stack.

__________________
"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense." Buddha


Last edited by vincentz; Aug 30, 2011 at 05:13 AM.
vincentz is offline   Reply With Quote
Old May 30, 2010, 07:03 AM   #2
General Tso
Panzer General
 
General Tso's Avatar
 
Join Date: Oct 2007
Location: U. S. of A.
Posts: 1,186
setHelpTextArea in Python\Screens\CvMainInterface.py sets the location of the help text. That function is called several different through out the file for placing the help text for the normal screen, globe view, etc. So you will probably need to change it in more than one location. X is the 3rd passed variable and y is the 4th. I just wish that the width could be changed, but for some reason that doesn't happen when the width variable is changed.
__________________
Really Advance Setup Mod
Gives additional options when starting a new game.
Current Status: Version 5
http://forums.civfanatics.com/showthread.php?t=486324
Also available in the Steam workshop.
General Tso is offline   Reply With Quote
Old May 30, 2010, 09:35 AM   #3
Jarlaxe Baenre
Secular Humanist
 
Jarlaxe Baenre's Avatar
 
Join Date: Feb 2010
Location: Alberta, Canada
Posts: 1,677
That's a small screen...
Jarlaxe Baenre is offline   Reply With Quote
Old May 30, 2010, 11:33 AM   #4
vincentz
Divemaster
 
vincentz's Avatar
 
Join Date: Feb 2009
Location: Denmark
Posts: 2,535
Quote:
Originally Posted by General Tso View Post
setHelpTextArea in Python\Screens\CvMainInterface.py sets the location of the help text. That function is called several different through out the file for placing the help text for the normal screen, globe view, etc. So you will probably need to change it in more than one location. X is the 3rd passed variable and y is the 4th. I just wish that the width could be changed, but for some reason that doesn't happen when the width variable is changed.
# Help Text Area
screen.setHelpTextArea( 350, FontTypes.SMALL_FONT, 7, yResolution - 172, -0.1, False, "", True, False, CvUtil.FONT_LEFT_JUSTIFY, HELP_TEXT_MINIMUM_WIDTH )

Ok, so the width of the help text area is determined at #3 passed variable (???)
I'm sorry but I have no idea what that means. Is it 7?

I noticed one thing though. If I do a mouseover on the uniticon on top of the buildorders, the width seem to be ok (approx same same as the box below). Is there anyway I can "copy" that behavior. Or could you pinpoint the location of the code displaying this.



BTW I use bull 1.1 if that has to do with anything.

Quote:
Originally Posted by Jarlaxe Baenre View Post
That's a small screen...
It's not the size of the screen, but how you use it....

It's a standard 1280x800 laptop screen. Nothing unusual here. Carry on....
__________________
"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense." Buddha


Last edited by vincentz; Aug 30, 2011 at 05:11 AM.
vincentz is offline   Reply With Quote
Old Jun 02, 2010, 03:17 AM   #5
Afforess
The White Wizard
 
Afforess's Avatar
 
Join Date: Jul 2007
Location: Michigan, USA
Posts: 10,652
Images: 8
For those of you who forgot, there is an entire documented python resource here.

Judging from it's entry:
"VOID setHelpTextArea (FLOAT fWidth, FontType eFont, FLOAT fX, FLOAT fY, FLOAT fZ, BOOL bFloating, STRING szArtFile, BOOL bExpandRight, BOOL bExpandDown, INT uiFlags, INT iMinWidth)"

The X and Y are the 3rd and 4th arguments, and the width is the first.
__________________
"A Witty Saying Proves Nothing"
-Voltaire

Civilization 4 Mods: Rise of Mankind - A New Dawn 1.75
Civilization 5 Mods: Active City Defense, Tech Diffusion
Minecraft Mods: Spout & Spoutcraft Lead Developer
Afforess is offline   Reply With Quote
Old Jun 02, 2010, 10:03 AM   #6
General Tso
Panzer General
 
General Tso's Avatar
 
Join Date: Oct 2007
Location: U. S. of A.
Posts: 1,186
vincentz:
In the example that you gave the help box is being displayed at x = 7, y = yResolution - 172, and as Afforess said the width is the first variable (350 in this case). Unfortunately, I have tried changing the width variable to every value imaginable and none of them have worked, the width remains the same. If anybody can find a way to change it. I to would be very interested.

I find your second picture interesting. In my game, that help box is the same width as the first one. Changing the x, y position in setHelpTextArea changes the position of both help boxes. Since your help boxes are different sizes there must be some way to change the width. If I can figure anything out I'll let you know. Does anybody else out there have any ideas?
__________________
Really Advance Setup Mod
Gives additional options when starting a new game.
Current Status: Version 5
http://forums.civfanatics.com/showthread.php?t=486324
Also available in the Steam workshop.
General Tso is offline   Reply With Quote
Reply

Bookmarks

Go Back Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization > X and Y of side bar???

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
BtS wont install: side-by-side configuration is incorrect? Help please CapJ15 Civ4 - Technical Support 0 Jul 29, 2007 11:59 PM
Fighting SIDE BY SIDE ! OH YEAH Skybuck Civ - Ideas & Suggestions 26 Apr 29, 2005 05:47 AM
How do I get the side bar back? CivGeneral Computer Talk 6 Apr 26, 2005 02:09 AM
In a bar Supernove Humor & Jokes 2 Oct 08, 2002 04:54 PM


Advertisement

All times are GMT -6. The time now is 10:55 PM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
This site is copyright © Civilization Fanatics' Center.
Support CFC: Amazon.com | Amazon UK | Amazon DE | Amazon CA | Amazon FR