How is the setLabelClickCallback() function handled with Vyzor?
I was under the impression that frame.Callback("my_function") worked but it' doesn't seem to.
Vyzor, UI Manager for Mudlet
Re: Vyzor, UI Manager for Mudlet [Beta?]
Even though this was answered on the IRC, for reference I will replicate the answer here.
It would be frame.Callback = "my_function".
Unless something is listed as a function on the wiki, it's a property.
It would be frame.Callback = "my_function".
Unless something is listed as a function on the wiki, it's a property.
Re: Vyzor, UI Manager for Mudlet [Beta?]
When using Vyzor.Chat() I'm having troubles getting my channels to display in their respective tabs. Everything gets sent to the "All" tab and nothing else.
Trigger line (begin line of substring): (Shallam):
Re: Vyzor, UI Manager for Mudlet [Beta?]
should be 'chat:Append( "City" )'
Re: Vyzor, UI Manager for Mudlet [Beta?]
thank you
Re: Vyzor, UI Manager for Mudlet [Beta?]
Creating a status screen that will reflect gmcp.Char info. Currently I'm just echoing the gmcp data to a label. But it appears there's some issues with setting fonts on a label. Here's what the status screen looks like:
I'd like to get the small numbers a bit bigger. Any alternate ideas of how to enlarge the font? I can use a miniConsole but that will leave a big black box as a background. Ick.
I'd like to get the small numbers a bit bigger. Any alternate ideas of how to enlarge the font? I can use a miniConsole but that will leave a big black box as a background. Ick.
Re: Vyzor, UI Manager for Mudlet [Beta?]
I was just wondering if there was an easy way to completely remove/destroy all components/frames already created. I'm trying to go through the process of setting up a UI and it gets kind of buggy because I keep trying to re-create things that already exist, but slightly changed.
Re: Vyzor, UI Manager for Mudlet [Beta?]
If you try to recreate a Frame, it will give you the Frame with that name. So, the idea is not to recreate stuff. You can :Hide() and :Show() Frames, and you can :Remove() and :Add() Components to change their contents. Frames can also be :Move()'d and :Resize()'d.
What is it you're trying to do, specifically, that is giving you trouble?
What is it you're trying to do, specifically, that is giving you trouble?
Re: Vyzor, UI Manager for Mudlet [Beta?]
Basically I'm just trying to layout the visuals I want, and that requires regular tweaking until it's the way I like it. So I have something like this in a function:
Another few small problems/ideas I've encountered, and I'm not sure why this is the case, but I've created a Vyzor.Map and added it to a frame. It displays fine, it's pretty close to where I initially created it, but it's not following my movement. Am I missing some step? Do I need to manually update it? If so, should I be using GMCP and could I get an example?
I'm also wondering if there's a better way to do something I'm currently doing: In the affliction_box I'd like to keep a running list of afflictions, kind of like a persistent diagnose. I've managed to make it happen using a MiniConsole and Clear() then re-printing every affliction when the list changes, but I'm just curious if there's a more appropriate way to do this.
Lastly, not a big deal, but is there a way to center text horizontally or vertically in a MiniConsole? Once again, not a big deal if not.
Thanks in advance for any help you can lend!
EDIT: To clarify, I'm still trying to decide of the affliction_box MiniConsole is the way I want it, so I'm trying to resize regularly. I was just hoping there was a way to nullify all previous components created so I can re-create them the size I want just by editing the size above and re-running the function.
In a perfect world, I could just re-call the function and it would entirely re-create/re-draw the whole HUD, but that doesn't seem to work.
Another few small problems/ideas I've encountered, and I'm not sure why this is the case, but I've created a Vyzor.Map and added it to a frame. It displays fine, it's pretty close to where I initially created it, but it's not following my movement. Am I missing some step? Do I need to manually update it? If so, should I be using GMCP and could I get an example?
I'm also wondering if there's a better way to do something I'm currently doing: In the affliction_box I'd like to keep a running list of afflictions, kind of like a persistent diagnose. I've managed to make it happen using a MiniConsole and Clear() then re-printing every affliction when the list changes, but I'm just curious if there's a more appropriate way to do this.
Lastly, not a big deal, but is there a way to center text horizontally or vertically in a MiniConsole? Once again, not a big deal if not.
Thanks in advance for any help you can lend!
EDIT: To clarify, I'm still trying to decide of the affliction_box MiniConsole is the way I want it, so I'm trying to resize regularly. I was just hoping there was a way to nullify all previous components created so I can re-create them the size I want just by editing the size above and re-running the function.
Re: Vyzor, UI Manager for Mudlet [Beta?]
So, a couple things. Only one of your issues is specifically Vyzor, and that has to do with recalling the Frames. Unfortunately, if the Frame already exists, Vyzor will just send it back to you. In order to do what you'd like, you'll need to call Move() and Resize() on the Frames until you get what you like, then pop those values back into the constructor call.
Now, as for your other problems. The mapper is a complex topic. All Vyzor does it allow you to draw it to screen; you'll want to look at mapper sub-forum in order to get more help there.
There is a way to center and align text in a mini-console. It's not native to Mudlet; Demonnic has written a script for text align somewhere here on the forums.
And as for your affliction_box, that's probably the most straightforward way to do it. You could get fancy like Akaya, and making a dynamic tower and whatnot. But clearing the MiniConsole and rewriting it is the simplest method.
Now, as for your other problems. The mapper is a complex topic. All Vyzor does it allow you to draw it to screen; you'll want to look at mapper sub-forum in order to get more help there.
There is a way to center and align text in a mini-console. It's not native to Mudlet; Demonnic has written a script for text align somewhere here on the forums.
And as for your affliction_box, that's probably the most straightforward way to do it. You could get fancy like Akaya, and making a dynamic tower and whatnot. But clearing the MiniConsole and rewriting it is the simplest method.