ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Alpha/Beta AddOns (https://www.esoui.com/forums/forumdisplay.php?f=171)
-   -   [Demo] ChatTabs Framework ... (https://www.esoui.com/forums/showthread.php?t=571)

thelegendaryof 04/04/14 07:47 PM

ChatTabs Manager ...
 
Edit:

Renamed from Framework to Manager (sounds better / more correct)

This is no longer a Demo but can already be used in your Plugins!

ChatTabs Manager:

http://www.esoui.com/downloads/info1...bsManager.html

Example Plugin to help you getting started:

http://www.esoui.com/downloads/info130.html

thelegendaryof 04/05/14 07:59 AM

Added a new "intrusive" mode that hides all the default Chat-Elements,
even the EditBox (even when pressing enter it will not show up or register the inputs).



Edit: This is now the "default" mode. :)

Lyeos 04/05/14 01:37 PM

This looks nice. I'll test this later :)

thelegendaryof 04/06/14 08:11 AM

Yo I've edited my initial Topic - as it is no longer a Demo and can already be used in your Plugins! :)

And if anyone advanced could check my code I would really appreciated it :D. Lua is still a bit odd for me and I'm not sure if I'm doing stuff at the most straight and efficient way or if I'm running in circles instead. Poke me if you find any misstakes! :)

Many Thanks and Cheers!

zeakfury 04/06/14 06:56 PM

So couldn't get the control to show when clicking on the tab (with your new update 51). It looks like you are trying to use a table.variable in multiple functions, particularly the tab.control and tab.soft, but the "tab" table you are calling is not global. Thus these variables are nil.

In your previous one you linked everything to the object thus you could call the variables in all functions.

At least that is what I think, I'm new to Lua too so correct me if I am wrong.

thelegendaryof 04/06/14 07:24 PM

Well I did something stupid in the last update (0.5.1).

I actually initialized my stuff in the OnPlayerActivated Event that gets called after every Loadingscreen and didn't unregister it after the first usage. And in return bugged stuff out badly by fixing what wasn't broken. I'll revert what I did - then everything should be fine again! :D

thelegendaryof 04/06/14 08:10 PM

Updated to 0.5.2

Should be working as intended again.

Sorry for the inconveniences!

zeakfury 04/07/14 04:39 PM

Works amazingly well, thank you. Implementing it as we speak.

Two things to consider though:

1) Use SetDrawLevel(3) on the content window so that it will show up above the chat window (just found this out). Couldn't use my buttons when I parented the window and this was the cause. :)

2) Might want to add a tab tracker that saves the name of the created tab to a list then searches for that name to try to find the tab.index or something.

Right now if you change the position of the tab it will still associate the old tab.index with it. So moving tab 2 to tab 5, the new tab 2 will still open up the old tab 2's content.

StealthStalker 04/08/14 10:39 AM

So this could theoretically be used to combine all the different "window" addons I have?

eg:

CLS, Dragonloot, etc?

Provided those authors implemented support... hm

thelegendaryof 04/08/14 06:41 PM

Yep. Its only 1-2 lines in addition to their usual code and could be completely optional i. e. for providing an undock-option.

@zeakfury:

Glad you like it. I've noticed that too - thanks for the DrawLevel suggestion I'll add that right now.

For the second one - yea haven't really gotten around it reimplementing it yet. I had that function before in the Demo it just was made for a single static instance and I was to lazy to rewrite it yet. I'll do that when I'll add the Garbage Collector that automatically deletes unused Tabs (f. e. when someone undocks or disables his Plugin).

Xrystal 04/08/14 06:52 PM

sounds similar to the infopanel plugins that were created in nUI addon for wow. Was a very handy utility to have. Information at your finger tips but inobtrusive when not required.

thelegendaryof 04/09/14 06:36 AM

I see that zeak managed to get it implemented. Seems like i need to add a better version check and documentation.
Ill try to push that out soon together with the Garbage Collector.

Seeing that there is a new neat Lib out I feel like that this should have a smiliar naming convention like
LibChatTabs to keep it more clear to the Enduser and the Developer alike.

Oh sometimes I really hate naming something (goes for Characternames as well).

Seerah 04/09/14 12:36 PM

Quote:

Originally Posted by thelegendaryof (Post 3478)
Ill try to push that out soon together with the Garbage Collector.

??? Again, you shouldn't have to be messing with the garbage collector. Especially using this version of Lua.

thelegendaryof 04/09/14 02:16 PM

Quote:

Originally Posted by Seerah (Post 3544)
??? Again, you shouldn't have to be messing with the garbage collector. Especially using this version of Lua.

Ah no don't misunderstand that. I mean writing an OWN Garbage Collector just for the Chat Tabs that just removes unused Tabs (as in triggering the intended API-Functions for that). Not forcing "the" native garbagecollector of Lua itself to collect my stuff. I fully understood that it isn't good to use the native one as ESO has it 's own internal way of handling the garbage itself.

thelegendaryof 04/09/14 05:05 PM

My update on CTM has been pushed back in favor of FastReport:

http://www.reddit.com/r/elderscrolls...leporthackers/

http://www.esoui.com/downloads/info181-FastReport.html


All times are GMT -6. The time now is 02:55 PM.

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