| General | Hosted Sites | Civ5 | CivRev | Civ4Col | Civ4 | Civ3 | Civ2 | Civ1 | Misc | Marketplace |
![]() |
|
|
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. |
|
|||||||
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Divemaster
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. |
|
|
|
|
|
#2 |
|
Panzer General
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. |
|
|
|
|
|
#3 |
|
Secular Humanist
Join Date: Feb 2010
Location: Alberta, Canada
Posts: 1,677
|
That's a small screen...
|
|
|
|
|
|
#4 | |
|
Divemaster
Join Date: Feb 2009
Location: Denmark
Posts: 2,535
|
Quote:
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. 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. |
|
|
|
|
|
|
#5 |
|
The White Wizard
|
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 |
|
|
|
|
|
#6 |
|
Panzer General
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. |
|
|
|
![]() |
| Bookmarks |
|
| Thread Tools | |
|
|
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 |