Author Topic: Resizable 'Detail' window mod.  (Read 785 times)

Under the moon

  • Forum Addict
  • *
  • Posts: 2335
  • Writer extraordinaire.
    • View Profile
Resizable 'Detail' window mod.
« 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:
 

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.
Code: [Select]
<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>

Gharan

  • Hydlaa Notable
  • *
  • Posts: 553
    • View Profile
Re: Resizable 'Detail' window mod.
« Reply #1 on: March 04, 2007, 03:23:41 am »
Looks much easier on the eye i'll be using that  :thumbup:

Get the Phinehas stalker free of charge!!!  ;D

John80sk

  • Hydlaa Citizen
  • *
  • Posts: 228
    • View Profile
Re: Resizable 'Detail' window mod.
« Reply #2 on: March 04, 2007, 03:32:03 am »
absolutely brilliant :)
Jangeol Bakieck the Scarred
Dameve Angelun the Insane
Ehatihen the Cowardly Kran

Under the moon

  • Forum Addict
  • *
  • Posts: 2335
  • Writer extraordinaire.
    • View Profile
Re: Resizable 'Detail' window mod.
« Reply #3 on: March 04, 2007, 03:47:40 am »
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.

John80sk

  • Hydlaa Citizen
  • *
  • Posts: 228
    • View Profile
Re: Resizable 'Detail' window mod.
« Reply #4 on: March 05, 2007, 02:47:38 am »
an improvement none the less... although you should try and make the scroll bar resize with the rest of it.
Jangeol Bakieck the Scarred
Dameve Angelun the Insane
Ehatihen the Cowardly Kran

drah

  • Hydlaa Citizen
  • *
  • Posts: 268
    • View Profile
Re: Resizable 'Detail' window mod.
« Reply #5 on: March 05, 2007, 05:17:37 pm »
Nice tweak... it's inspired me to go browsing the XML if I find any other similar UI nuisances.

Thank you. :)

Nikodemus

  • Prospects
  • Veteran
  • *
  • Posts: 1808
    • View Profile
Re: Resizable 'Detail' window mod.
« Reply #6 on: March 05, 2007, 06:21:20 pm »
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)



What you can failure tommorow, failure today.


Better click for shiny stylez Help me with images!