lotrointerface.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:	969
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
Reply



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 12:17 AM.


Our Network
EQInterface | EQ2Interface | Minion | WoWInterface | ESOUI | LoTROInterface | MMOUI | Swtorui