Author Topic: Close buttons in borderless windows  (Read 208 times)

Tuathanach

  • Associate Developer
  • Hydlaa Citizen
  • *
  • Posts: 206
  • Arch Chancellor of the Knowledge Seekers
    • View Profile
    • Knowledge seekers
Close buttons in borderless windows
« on: July 05, 2013, 04: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.
Shindroks Crater Project Wiki
Interested contact Myself or Zunna.
We are contactable ingame, by PM or on Discord

redhound

  • Hydlaa Resident
  • *
  • Posts: 97
    • View Profile
Re: Close buttons in borderless windows
« Reply #1 on: August 01, 2013, 02: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 in a readbook.xml file.
« Last Edit: August 01, 2013, 02:32:48 am by redhound »