ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   General Authoring Discussion (https://www.esoui.com/forums/forumdisplay.php?f=174)
-   -   Something Similar to a Chat Window (https://www.esoui.com/forums/showthread.php?t=2367)

circonian 10/31/14 07:01 AM

Something Similar to a Chat Window
 
Are there any xml controls you can inherit from to create something similar to a chat window that handles scrolling, resizing, maxHistoryLines, & link mouse clicks ect... without having to write that stuff yourself?

I don't need it to receive or send chat messages I was just wanting something I could easily make with little code to add debug messages to, with a scrollable window, & clickable links.

If it helps I was hoping to do something simple like this:
xml Code:
  1. <GuiXml>
  2.  <Controls>
  3.    <TopLevelControl name="MyDebugWindow" inherits="ZO_ChatContainerTemplate" resizeHandleSize="8" clampedToScreen="true" mouseEnabled="true" movable="true" hidden="false" layer="OVERLAY" tier="HIGH" allowBringToTop="false" alpha="1" >
  4.        <Dimensions x="200" y="400" />
  5.       <Anchor point="TOPELFT" relativeTo="GuiRoot" relativePoint="TOPELFT" offsetX="750" offsetY="150"/>
  6.       <Controls>
  7.          <TextBuffer name="$(parent)TextBuffer" font="ZoFontChat" layer="OVERLAY" tier="LOW" level="0" maxHistoryLines="200" mouseEnabled="true" movable="true" >
  8.          <AnchorFill/>
  9.          <LineFade fadeBegin="0" fadeDuration="0" />
  10.          </TextBuffer>
  11.       </Controls>
  12.    </TopLevelControl>
  13.  </Controls>
  14. </GuiXml>

and then just add messages to the textBuffer:
Lua Code:
  1. MyDebugWindowTextBuffer:AddMessage("Some debug message")

merlight 10/31/14 07:16 AM

I'm looking for the exact same thing. Unfortunatelly ZO_ChatContainerTemplate seems to be heavily intertwined with the chat system. I wanted a separate debug logging window, so right now I'm going with plain textbuffer. I'm so lazy that I haven't even added scrollbar yet :D

circonian 10/31/14 07:17 AM

Yeah, I'm feeling lazy too. Was just hoping there was something I wasn't finding that would do the job.

circonian 10/31/14 03:01 PM

Well theres one up here now.
I went ahead and made my own, since you said you were looking for the same thing it made me think others might be as well. So I made it into a library & posted it in case anyone else wants an easy to create Msg Window for anything: LibMsgWin-1.0


All times are GMT -6. The time now is 04:42 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI