Quantcast Centering impossible - LoTROInterface
VGInterface.com
Search Downloads


Go Back   LoTROInterface > LotRO > Developer Discussions > XML modification help (L)

Reply
Thread Tools Display Modes
  #1  
Unread 07-06-2007, 06:29 AM
Grimholm Grimholm is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: May 2007
Posts: 29
Centering impossible

Hi,

I've created a news letterbox with the dimensons 421x85, which only contains two quickslotbars and the experiencebar. The letterbox is supposed to be placed centered at the bottom but I can't get it working as it should. I've attached the current result and here's my xml-code:

Code:
<PanelFile ID="toolbar">
	<Element ID="ToolbarField" Width="421" Detach="0">
		<Element ID="ToolbarFieldMain" Width="421"></Element>
			<Element ID="LevelMeter" Width="409">
				<Element ID="LevelMeterFill" Width="409">
				<Element ID="LevelMeter_BonusMeter" Width="409"></Element>
			</Element>
			<Element ID="ToolbarButton_LevelUpXP_TutorialHighlight" Width="409"></Element>
			<Element ID="ToolbarButton_Experience_TutorialHighlight" Width="409"></Element>
			<Element ID="LevelMeterText" Width="409"></Element>
		</Element>
	</Element>
</PanelFile>
Thanks for your help
Attached Thumbnails
Click image for larger version

Name:	notcentered.jpg
Views:	470
Size:	108.8 KB
ID:	67  
Reply With Quote
  #2  
Unread 07-06-2007, 07:30 AM
Weezl's Avatar
Weezl Weezl is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Jun 2007
Posts: 46
As far as I know you have to define both X and Y coordinates to get it positioned (but I may be wring).

To get the centering you must however calculate the X position:
X = (screen width / 2 ) - (toolbar width / 2)


You can always check out my tool i've written for this purposes.

http://www.lotrointerface.com/downlo...ceManager.html
Reply With Quote
  #3  
Unread 07-06-2007, 07:50 AM
Grimholm Grimholm is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: May 2007
Posts: 29
I've already tried your tool and I've found out the coordinates, but I hope, that I don't need coordinates since I wont change standardposition of the letterbox. Well, I guess that the threadtitle is wrong. The real problem is not the position but the size: The width should be 421 pixels, but the game ignores my definitions for the width of the letterbox ;(
Reply With Quote
  #4  
Unread 07-06-2007, 07:55 AM
Weezl's Avatar
Weezl Weezl is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Jun 2007
Posts: 46
Ok.

Unfortionately I believe that all four values has to be set before the game actually take them into account.

The bar has to have both width and height as well as X and Y coordinates. Atleast that's my experience.

And that's why I created the tool in the first place
Reply With Quote
  #5  
Unread 07-06-2007, 07:57 AM
Weezl's Avatar
Weezl Weezl is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Jun 2007
Posts: 46
And I might add that allowing us to set only one of these values (as you did) or define a custom "alignment" for the toolbar is in a suggestion made in the "Turbine Wish List" forum.
Reply With Quote
  #6  
Unread 07-06-2007, 08:03 AM
Grimholm Grimholm is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: May 2007
Posts: 29
Well, I've red the tutorial in this forum and I thought, that I don't have to set values, which I don't want to change. I'll try all four values now.
Reply With Quote
  #7  
Unread 07-06-2007, 08:07 AM
Weezl's Avatar
Weezl Weezl is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Jun 2007
Posts: 46
I agree you shouldn't have to, this is a bug in my opinion
Reply With Quote
  #8  
Unread 07-06-2007, 08:12 AM
Grimholm Grimholm is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: May 2007
Posts: 29
Ok, im playing around with the settings and it seems, that I really don't have to set every value. Currently the size ist correct, but the positions are wrong.
Reply With Quote
  #9  
Unread 07-06-2007, 08:14 AM
Weezl's Avatar
Weezl Weezl is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Jun 2007
Posts: 46
Can you post an updated XML and screenshot?
Reply With Quote
  #10  
Unread 07-06-2007, 08:33 AM
Grimholm Grimholm is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: May 2007
Posts: 29
Not necessary anymore, size and position are correct now Thanks for yor help.

But I've found several problems:
- if work with this definitions and if you enter the windowedmode, the letterbox becomes messed up, which is very annoying since I'm switching between fullscreen and windowmode
- your tool is fantastic, but it should not edit the xml-file directly because it messes up the xml-file. The code generated by your tool should be presented in a pop-up for copy&paste

Now I'm trying to get the other elements into the correct position. Here's the current xml-code:

Code:
<PanelFile ID="toolbar">
	<Element ID="ToolbarField" X="430" Y="939" Width="421" Height="85" Detach="1">
		<Element ID="ToolbarFieldMain" X="0" Y="0" Width="421" Height="85"></Element>
			<Element ID="LevelMeter" X="0" Y="0" Width="409" Height="10">
				<Element ID="LevelMeterFill" X="0" Y="0" Width="409" Height="10">
				<Element ID="LevelMeter_BonusMeter" X="0" Y="0" Width="409" Height="10"></Element>
			</Element>
			<Element ID="ToolbarButton_LevelUpXP_TutorialHighlight" X="0" Y="0" Width="409" Height="10"></Element>
			<Element ID="ToolbarButton_Experience_TutorialHighlight" X="0" Y="0" Width="409" Height="10"></Element>
			<Element ID="LevelMeterText" X="0" Y="0" Width="409" Height="10"></Element>
		</Element>
	</Element>
</PanelFile>
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What makes the impossible...impossible? BlokX Interface Requests (L) 3 04-17-2007 10:16 AM


All times are GMT -5. The time now is 05:17 AM.


Our Network
EQInterface | EQ2Interface | Minion | WoWInterface | VGInterface | LoTROInterface | MMOInterface | Swtorui