EQInterface Forums

EQInterface Forums (http://www.eqinterface.com/forums/index.php)
-   XML modification help. (http://www.eqinterface.com/forums/forumdisplay.php?f=30)
-   -   removing titlebar from containers and still being able to move container around (http://www.eqinterface.com/forums/showthread.php?t=22056)

finchy 08-19-2017 03:19 PM

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 08-25-2017 12:02 PM

any assistance would be greatly appreciated!

Thanks!

Ruemeridian 08-26-2017 07:43 PM

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 09-15-2017 02:43 AM

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.

AloneStarwalker 09-15-2017 04:02 AM

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.

warriorofmight 09-18-2017 07:56 PM

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


All times are GMT -5. The time now is 05:52 PM.

vBulletin Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.