Vyzor, UI Manager for Mudlet

Share your scripts and packages with other Mudlet users.
Post Reply
User avatar
keneanung
Site Admin
Posts: 94
Joined: Mon Mar 21, 2011 9:36 am
Discord: keneanung#2803

Re: Vyzor, UI Manager for Mudlet [Beta?]

Post by keneanung »

Oneymus wrote:And, yes, I can wrap the remaining relevant API calls.
Yay! Thanks.

And the default idea soounds good.

User avatar
chris
Posts: 493
Joined: Fri Jun 17, 2011 5:39 am

Re: Vyzor, UI Manager for Mudlet [Beta?]

Post by chris »

Is there support for nested labels like I added to Geyser?

User avatar
Oneymus
Posts: 321
Joined: Thu Sep 17, 2009 5:24 am

Re: Vyzor, UI Manager for Mudlet [Beta?]

Post by Oneymus »

Currently, there is not. It's doable, but, having been unaware of (or having forgotten about) that feature, I haven't made any sort of convenience Compound.

Looking through the Geyser docs, while helpful, doesn't help me get a full picture of what these nested Labels do. I understand the the fly-outs, but what else should be included?

I'll add it to the ToDo list.

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: Vyzor, UI Manager for Mudlet [Beta?]

Post by Heiko »

How's the status of Vyzor? Can we include it in the next release?

User avatar
Oneymus
Posts: 321
Joined: Thu Sep 17, 2009 5:24 am

Re: Vyzor, UI Manager for Mudlet [Beta?]

Post by Oneymus »

As far as I am aware, there are no major, show-stopping bugs in Vyzor. As much as I have tried, however, I haven't been able to test everything. There's a lot going on here. I believe it is release-worthy, but I am a little partial. ^_^

If you do include it in the release, how do I manage updates? As long as people are asking for it, I will be adding new features to it.

User avatar
Oneymus
Posts: 321
Joined: Thu Sep 17, 2009 5:24 am

Re: Vyzor, UI Manager for Mudlet [Beta?]

Post by Oneymus »

Vyzor update.

This update contains the requested Gauge changes, allowing for overflow Frames to handle values that exceed maximum.

Also included are more wrappers for Mudlet functions, such as Echo. All functions work on either Frames or MiniConsoles (sole except being AppendBuffer for MiniConsoles).

Frames can now use callbacks.
Code: [show] | [select all] lua
some_frame.Callback = "someGlobalFunction"
some_frame.CallbackArguments = {"some", "arguments", "for", "callback"}

User avatar
keneanung
Site Admin
Posts: 94
Joined: Mon Mar 21, 2011 9:36 am
Discord: keneanung#2803

Re: Vyzor, UI Manager for Mudlet [Beta?]

Post by keneanung »

Hmm... I seem to be diong something wrong and I can't find it...

I added this to the "Frames" of the sample Gui skript:
Code: [show] | [select all] lua
  
SampleGui.Frames = SampleGui.Frames or {

-- ...

   headings_frame        = Vyzor.Frame("headings_frame", 0, 0, 1, .05),

-- ...

   tab_frames = {}
}

  for key, name in ipairs(tabbedchat.chats) do
    SampleGui.Frames.tab_frames[#SampleGui.Frames.tab_frames+1] = Vyzor.Frame("tab_"..name, (1/#tabbedchat.chats) * (key -1), 0, (1/#tabbedchat.chats), 1)
  end
And this to the "Finalize" script:
Code: [show] | [select all] lua
-- ...
	frames.mapper_frame:Add( consoles.mapper_console )

   for _, frame in ipairs(frames.tab_frames) do
     frame:Add(backgrounds.grey)
     frames.headings_frame:Add( frame )
   end

	frames.chat_frame:Add( margins.five )
	frames.chat_frame:Add( paddings.five )
	frames.chat_frame:Add( borders.chat_border )
        frames.chat_frame:Add( frames.headings_frame )
	frames.chat_frame:Add( consoles.chat_console )

-- ...
But the tab_<name> frames don't seem to appear. What am I doing wrong?

User avatar
Oneymus
Posts: 321
Joined: Thu Sep 17, 2009 5:24 am

Re: Vyzor, UI Manager for Mudlet [Beta?]

Post by Oneymus »

Frames is a key->value table. A dictionary. ipairs() won't iterate over it.

User avatar
keneanung
Site Admin
Posts: 94
Joined: Mon Mar 21, 2011 9:36 am
Discord: keneanung#2803

Re: Vyzor, UI Manager for Mudlet [Beta?]

Post by keneanung »

But frames.tab_frames is not. I confirmed the iteration by using an echo( frame.Name) and all names were present.

User avatar
Oneymus
Posts: 321
Joined: Thu Sep 17, 2009 5:24 am

Re: Vyzor, UI Manager for Mudlet [Beta?]

Post by Oneymus »

Oh. I glossed over that part. Sorry.

Hrm... And it's not giving any errors, or it wouldn't be able to continue the script.

All of that looks technically correct (the best kind of correct). Nothing shows up at all? Are all of the other Frames working? Is your chat_frame itself showing up?

If you're up for it, you can go right into the .lua files in your profile directory and add test echoes; I would suggest adding some before you enter that for and afterward, so you know which lines are relevant. Something to look for would be the Background component not actually appearing. So, you might put an echo in the Add function, like...
Code: [show] | [select all] lua
if object.Subtype == "Background" then
    echo("  Background added to " .. name .. ".\n")
end
That at least verifies that it is working.

I'll do the same on my end and see if I can identify anything. If there are no other errors (does the GUI draw? Does it get stuck anywhere?), then it's possible there's some kind of conflict with the way I'm returning the Frames table.

I'm rambling. Sorry. I'll see what I can come up with.

Post Reply