PlaneShift
Gameplay => General Discussion => Topic started by: Under the moon on March 04, 2007, 03:17:36 am
-
No, this is not a request. It is based on the other mod that I made that just made the window bigger.
The mod makes the window resizable to almost any size you wish. The one problem is that you have to close the window, then open it back up for the resizing to have any effect on the text.
This is what it looks like:
(http://img85.imageshack.us/img85/3807/shot04sh0.jpg) (http://img57.imageshack.us/img57/7388/shot03ak3.jpg)
Here is the code. To use it, go to C:\Program Files\PlaneShift Crystal Blue or whereever you have PS saved, then go to the folder 'data' then 'gui' . Find 'detailwindow' and save a backup of it. Now open it and delete everything, then copy/paste the following code in its place. Save, and start your game. You will be able to set the size to anything you wish now. Have fun stalking Phinehas.
<widget_description>
<widget name="DetailWindow" factory="pawsDetailWindow"
visible="no" savepositions="yes" movable="yes" configurable="yes" resizable="yes" >
<frame x="0" y="200" width="320" height="207" border="yes" />
<title resource="Blue Title" text="Details" align="left" close_button="yes"/>
<bgimage resource="Shortcut Background" alpha="200" />
<widget name="" factory="pawsTextBox" >
<font name="/planeshift/data/ttf/cupandtalon.ttf" r="255" g="255" b="255" size="12" />
<frame x="40" y="3" width="320" height="20" border="no"/>
<attachpoints>
<attach point="ATTACH_RIGHT" />
<attach point="ATTACH_LEFT" />
</attachpoints>
<text string="Detail information:" />
</widget>
<!-- You see a {gender} {race} in front of you named {name}. -->
<widget name="intro" factory="pawsMultiLineTextBox">
<frame x="33" y="28" width="262" height="57" border="no" />
<attachpoints>
<attach point="ATTACH_RIGHT" />
<attach point="ATTACH_LEFT" />
</attachpoints>
<font name="/planeshift/data/ttf/verdana.ttf" r="180" g="180" b="180" size="8" />
</widget>
<!-- Description -->
<widget name="Description" factory="pawsMultiLineTextBox">
<frame x="33" y="65" width="262" height="98" border="no" />
<font name="/planeshift/data/ttf/verdana.ttf" r="180" g="180" b="180" size="8" />
<attachpoints>
<attach point="ATTACH_LEFT" />
<attach point="ATTACH_RIGHT" />
<attach point="ATTACH_BOTTOM" />
<attach point="ATTACH_TOP" />
</attachpoints>
</widget>
</widget>
</widget_description>
-
Looks much easier on the eye i'll be using that :thumbup:
Get the Phinehas stalker free of charge!!! ;D
-
absolutely brilliant :)
-
Brilliant? Um...not really. Just some poking around the other XMLs and taking some lines from here and there to attach the text to the sides.
-
an improvement none the less... although you should try and make the scroll bar resize with the rest of it.
-
Nice tweak... it's inspired me to go browsing the XML if I find any other similar UI nuisances.
Thank you. :)
-
I tried this. I only forgot to see if simple reopening fixes the problem after you resize it. I thought that only relog will fix it ;P (like with resizable helpwindow)