Quote:
|
Originally Posted by Sinbad
Can you tell me how to effectively make those window autoload everytime I zone? I have tried adding the code snippet that Milquetowst/Darryl originally posted for that purpose for the MiniStats window, but it will work once and then stop working if I reposition the window and lock it. Obviously, I do NOT want a MiniStats display sitting in the middle of my screen. 
|
First open the ministats xml file in notepad and look for this line of code:
<Page eq2usescomwndcontrols="true" Location="250,250" Name="MiniStats" OnHide="visible=true" ScrollExtent="467,41" Size="467,41" UserMovable="true" UserResizable="false">
Then add this savessettings="true" near the end so that it looks like this:
<Page eq2usescomwndcontrols="true" Location="250,250" Name="MiniStats" OnHide="visible=true" ScrollExtent="467,41" Size="467,41" UserMovable="true" UserResizable="false" savessettings="true">
I think that should allow it to save (between logins) where it was last placed.
Then to load it, open something like the mainhud_player xml file in notepad and look for the following code or something similar depending on if you are using the default or a custom version:
<Page actiontype="Player" description="Current player action menu" DynamicData="/GameData.Actions.Player" eq2usescomwndcontrols="true" Location="1,-1" MaximumSize="16384,200" MinimumSize="145,100" Name="Player" PackLocation="left,top" PackLocationProp="0001/0001,-001/0001" ScrollExtent="145,129" Size="145,129" UserMovable="true" UserResizable="true">
You need to add this in between it:
OnShow="show_window=(journals.ministats) show_window=(journals.ministats)"
So that it now looks like this:
<Page OnShow="show_window=(journals.ministats) show_window=(journals.ministats)" actiontype="Player" description="Current player action menu" DynamicData="/GameData.Actions.Player" eq2usescomwndcontrols="true" Location="1,-1" MaximumSize="16384,200" MinimumSize="145,100" Name="Player" PackLocation="left,top" PackLocationProp="0001/0001,-001/0001" ScrollExtent="145,129" Size="145,129" UserMovable="true" UserResizable="true">
The above stuff worked for me when I tested it anyways. It stayed in same location I left it both when I zoned and when I swapped characters (although you will need to set where you want it at least the first time for each character) and it kept its place when I logged totally out and back in.
Quote:
|
Originally Posted by Sinbad
Also, I used to know how to designate a rectangle to use a picture from inside one of the dds files, but I've been gone for over a year from this game and I've forgotten. So, if you don't mind terribly, please refresh my memory on that point so that I can create some icon buttons.
|
I use Irfanview (freeware) program to view DDS files for picking out icons. You can visit their homepage or Tucows to grab it:
http://www.irfanview.com/
All you have to do is find the icon you like and then left click mouse and drag / highlight a square outline around it (you will see a pixel size as you do it, like 24 x 24 or 32 x 32 etc although depending on the icon it may not always be proportional). After you finished highlighting it you should also see a coordinate like 166,129. Write down the pixel size whatever it was and the coordinate. You will use that information when you edit your image source rect code.
Say that your information was 41 x 41 for pixel size and your cordinates were 166,129 then your final result would look something like this:
<Image AbsorbsInput="false" Name="ToggleRaid" ScrollExtent="24,24" Size="24,24" SourceRect="166,129,207,170" SourceResource="images/widgets02.dds" Style=" "/>
You will notice that your starting coordinates are there with the pixel size added to each coordinate (166+41= 207 and 129+41=170) for the ending coordinates (207,170) and all are placed together within the commas (no spaces). You may need to play around with the SourceRect numbers to get a good look to the icon.
The scroll extent and size listed above in the code would be the icon/pixel size that will be displayed in the mod. So with the above code it will shrink the icon from the source rect 41 x 41 size to 24 x 24.