PlaneShift
Development => PlaneShift Mods => Topic started 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.
-
Yes, you can do it like this:
<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.