View Single Post
  #2  
Unread 03-29-2005, 06:58 AM
Zonx's Avatar
Zonx Zonx is offline
A Green Troll
This person is a EQ2Map developer.
Featured
 
Join Date: Dec 2004
Server: Blackburrow
Posts: 2,221
Default Walk-thru: Making GXP Window

GuildXPBar code
Code:
<Page AbsorbsInput="false" Location="4,24" MinimumSize="160,15" Name="GuildExperience" PackLocation="left,top" PackLocationProp="-0004/0001,0024/0001" PackSize="absolute,absolute" PackSizeProp="0002/0003,0002/0003" ScrollExtent="254,15" Size="254,15">
<Page AbsorbsInput="false" BackgroundOpacity="1.000" Name="BubbleDividers" PackLocation="left,top" PackLocationProp="0000/0001,0000/0001" PackSize="absolute,fixed" PackSizeProp="0000/0001,0002/0003" RStyleDefault="/Fetish.FrameStyles.frame_ticks" ScrollExtent="254,15" Size="254,15"/>
<Progressbar actiontype="Experience" BackgroundColor="#000000" Color="#4BB3FE" DynamicData="/GameData.Guild.ExperienceBubble" Location="2,9" Name="ExpToNextBubble" PackLocation="left,top" PackLocationProp="0002/0001,0009/0001" PackSize="absolute,fixed" PackSizeProp="0004/0001,0002/0003" Progress="0.500" ScrollExtent="250,4" Size="250,4" Style="/progressbarlist.progress_default"/>
<Progressbar actiontype="Experience" BackgroundColor="#000000" Color="#FFDD00" DynamicData="/GameData.Guild.Experience" Location="2,2" Name="ExpCurrent" PackLocation="left,top" PackLocationProp="0002/0001,0002/0001" PackSize="absolute,fixed" PackSizeProp="0004/0001,0002/0003" Progress="0.500" ScrollExtent="250,11" Size="250,11" Style="/Fetish.Bars.prog_default"/>
<Image Location="2,2" Name="ExpBkg" PackLocation="left,top" PackLocationProp="0002/0001,0002/0001" PackSize="absolute,fixed" PackSizeProp="0004/0001,0002/0003" ScrollExtent="250,11" Size="250,11" Style="/Fetish.imagelist.prog_default_bg"/>
</Page>
Probably the easiest way to deal with this is as a seperate window added to MainHud. Open a bag file in Notepad. Strip out everything but the opening page object and WC_xxx stuff at the bottom. Rename the page object "GuildXP". Paste the above code in below the page object but above the WC_xxx objects. Save the file as somethinging like _fetish_mainhud_gxp.xml.

Next open eq2_mainhud.xml and insert
Code:
<include>_fetish_mainhud_gxp.xml</include>
Now we need to open the Persona file and change the Help button to activate the new GuildXP window

Change...
Code:
<Button LocalTooltip="Help" Location="324,3" Name="HelpButton" OnPress="parent.parent.parent.parent.WC_HelpButton.press=true" PackLocation="right,top" PackLocationProp="-032/0001,0003/0001" ScrollExtent="14,14" Size="14,14" Style="/Fetish.ButtonStyles.help_button" Tooltip="Help" UserMovable="true"></Button>
to
Code:
<Button LocalTooltip="Help" Location="324,3" Name="HelpButton" OnPress="show_window=(MainHUD.GuildXP) show_window=(MainHUD.GuildXP)" PackLocation="right,top" PackLocationProp="-032/0001,0003/0001" ScrollExtent="14,14" Size="14,14" Style="/Fetish.ButtonStyles.help_button" Tooltip="Help" UserMovable="true"></Button>
You'll probably need to adjust some size settings in your new GuildXP window. Main page to something like 262,43. Same width for WC_title. 260,21 for WC_Backdrop. Might wanna remove the initial OnHoverIn property so the window can be resized

If ya don't want the titlebar, give it a size="1,1" location="-1,-1". Deleting the titlebar entirely will mess with the titlebar buttons.
Reply With Quote