PlaneShift

Development => PlaneShift Mods => Topic started by: Tuathanach on July 05, 2013, 11:02:51 am

Title: Close buttons in borderless windows
Post by: Tuathanach on July 05, 2013, 11:02:51 am
Is it possible to add Close buttons in borderless windows?
for example set container window to be borderless and manually add a close button.
Title: Re: Close buttons in borderless windows
Post by: redhound on August 01, 2013, 09:29:22 am
Yes, you can do it like this:

Code: [Select]
<widget name="CloseButton" factory="pawsButton" tooltip="Close">
    <frame x="656" y="15" width="32" height="32" />
        <bgimage resource="Modify Cancel" />
        <eventMouseDown>BookReadingWindow:Hide();</eventMouseDown>
</widget>

Full code see here (https://www.dropbox.com/s/8hmryhfcsn8owar/red_elves.zip) in a readbook.xml file.