Home Forum Downloads My Favorites Register FAQ Mark Forums Read

Go Back   EQInterface Forums > Developer Discussion > XML modification help.
User Name
Password

Reply
 
Thread Tools Display Modes
Old 08-19-2017, 03:19 PM   #1
finchy
A Gray Wolf
 
Join Date: Apr 2015
Posts: 5
Default removing titlebar from containers and still being able to move container around

I've been searching around trying to find an answer, but seems everything i can find related is so outdated the data isn't available anymore.

So i'm trying to edit the container.xml to allow me to move containers around the screen, while having the titlebar removed.

The chatwindow.xml already has this change made where the titlebar is missing and there is an addition made that allows for the window to be picked up and dragged around the screen.


From the chatwindow.xml:

<Screen item="ChatWindow">
<RelativePosition>false</RelativePosition>
<Location>
<X>95</X>
<Y>280</Y>
</Location>
<Size>
<CX>421</CX>
<CY>200</CY>
</Size>
<Style_VScroll>false</Style_VScroll>
<Style_HScroll>false</Style_HScroll>
<Style_Transparent>false</Style_Transparent>
<DrawTemplate>WDT_RoundedNoTitle</DrawTemplate>
<Style_Titlebar>false</Style_Titlebar>
<Style_Closebox>false</Style_Closebox>
<Style_Minimizebox>false</Style_Minimizebox>
<Style_Border>true</Style_Border>
<Style_Sizable>true</Style_Sizable>
<Style_ClientMovable>true</Style_ClientMovable>
<Escapable>false</Escapable>
<Pieces>CW_ChatOutput</Pieces>
<Pieces>CW_ChatInput</Pieces>
</Screen>


you can see here the titlebar is false and the new line for clientmovable was added to allow you to move the window. I tried to add this to the container.xml, but it is not working. Is there something additional i need to do to get this piece to work on container as well?


Here is a section of the container for reference:

<Screen item="ContainerWindow">
<Layout>Container_LayoutV</Layout>
<RelativePosition>false</RelativePosition>
<Location>
<X>350</X>
<Y>100</Y>
</Location>
<Size>
<CX>60</CX>
<CY>300</CY>
</Size>
<Style_VScroll>false</Style_VScroll>
<Style_HScroll>false</Style_HScroll>
<Style_Transparent>false</Style_Transparent>
<TooltipReference>Container</TooltipReference>
<DrawTemplate>WDT_RoundedNoTitle</DrawTemplate>
<Style_Titlebar>false</Style_Titlebar>
<Style_Closebox>true</Style_Closebox>
<Style_Minimizebox>false</Style_Minimizebox>
<Style_Border>true</Style_Border>
<Style_Sizable>true</Style_Sizable>
<Style_ClientMovable>true</Style_ClientMovable>
<Pieces>ContainerCombine_Icon</Pieces>
<Pieces>Container_Slot</Pieces>
<Pieces>TileLayoutBox:ContainerStandard_Items</Pieces>
<Pieces>TileLayoutBox:ContainerStandardWithDone_Items</Pieces>
<Pieces>TileLayoutBox:ContainerCombine_Items</Pieces>
<Pieces>Container_Combine</Pieces>
<Pieces>StandardDoneButton</Pieces>
<Pieces>CombineDoneButton</Pieces>
<Pieces>Container_StandardSize</Pieces>
<Pieces>Container_CombineSize</Pieces>
</Screen>



Thank you for your help and time!
finchy is offline   Reply With Quote
Old 08-25-2017, 12:02 PM   #2
finchy
A Gray Wolf
 
Join Date: Apr 2015
Posts: 5
Default

any assistance would be greatly appreciated!

Thanks!
finchy is offline   Reply With Quote
Old 08-26-2017, 07:43 PM   #3
Ruemeridian
A Ghoul
 
Join Date: Nov 2002
Posts: 13
Interface Author - Click to view interfaces
Default

On most windows, once you change the template to WDT_RoundedNoTitle, and set the titlebar to false, you can no longer drag them. You have to move them by re-sizing.

I suspect the chat window is draggable after adding the ClientMovable tag, because that window has 2 inner windows and the space between the inner and outer windows allows the dragging.

You could try creating an inner window in the container window, and moving the slots into it. (i'll test this when i get a few minutes)

Or, you can define your own window with an invisible titlebar.
That is what i did on my UI
RueUI_Bronze
Look at the group window for an example.
template is WDT_RueNT and the titlebar is set to true
Ruemeridian is offline   Reply With Quote
Old 09-15-2017, 02:43 AM   #4
Ruemeridian
A Ghoul
 
Join Date: Nov 2002
Posts: 13
Interface Author - Click to view interfaces
Default

I had some success with making a no title bar draggable container window.

I couldn't find a way to make the standard window draggable with the title bar turned off.

What I did was create a custom window border with an invisible titlebar. I defined this border inside the container.xml file so it would work stand alone without needing to modify the animations or template files.

It's not a perfect solution though. I couldn't find a way to turn off the titlebar text. In most windows this text can be turned off, but since there are many different types of bags, the text field in the container.xml file is ignored, and EQ fills in the bag name automatically. The best i could do was set the font size to 0.

https://imgur.com/a/0tsRq

If this works for you, send me a PM and i'll email the files to you.
Ruemeridian is offline   Reply With Quote
Old 09-15-2017, 04:02 AM   #5
AloneStarwalker
A Shissar Disciple
 
Join Date: Aug 2002
Posts: 126
Default

i believe if you turn of the title and then leave a little room so the background is clear you can drag it around by the background.
AloneStarwalker is offline   Reply With Quote
Old 09-18-2017, 07:56 PM   #6
warriorofmight
Enhanced Imperial Golem
 
Join Date: Aug 2004
Posts: 228
Interface Author - Click to view interfaces
Default

I thought you were supposed to use Rounded_NoTitle and leave titlebar set to TRUE ?
__________________

Oink! Reborn
warriorofmight is offline   Reply With Quote
Reply



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT -5. The time now is 04:45 PM.


vBulletin Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© MMOUI