Page 28 of 33

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

Posted: Wed Jun 05, 2013 5:48 pm
by Oneymus
I believe this is a Qt limitation. As far as I am aware, you can only have one border in a stylesheet.

I will do further research when I am able.

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

Posted: Mon Jun 17, 2013 8:30 pm
by Akaya
Vyzor.BorderSide()

I was playing around with this earlier and couldn't figure out exactly how it works. Here was my attempt but didn't work for me:
Code: [show] | [select all] lua
--Creating the border sides
GUI.Menu["BorderTL"] = Vyzor.BorderSide( 1, Vyzor.BorderStyle.Solid, Vyzor.Brush( Vyzor.Color( Vyzor.ColorMode.Name, "white" )), 0 )
GUI.Menu["BorderTR"] = Vyzor.BorderSide( 1, Vyzor.BorderStyle.Solid, Vyzor.Brush( Vyzor.Color( Vyzor.ColorMode.Name, "white" )), 10 )
GUI.Menu["BorderLL"] = Vyzor.BorderSide( 1, Vyzor.BorderStyle.Solid, Vyzor.Brush( Vyzor.Color( Vyzor.ColorMode.Name, "white" )), 0 )
GUI.Menu["BorderLR"] = Vyzor.BorderSide( 1, Vyzor.BorderStyle.Solid, Vyzor.Brush( Vyzor.Color( Vyzor.ColorMode.Name, "white" )), 0 )
--Adding the sides to a Frame called GUI.Menu.Base
GUI.Menu.Base:Add( Vyzor.Border( 1, Vyzor.BorderStyle.Solid, Vyzor.Brush( Vyzor.Color( Vyzor.ColorMode.Name, "white" )),10,{GUI.Menu.BorderTL,GUI.Menu.BorderTR,GUI.Menu.BorderLL,GUI.Menu.BorderLR})
I was hoping to make the top-right corner have a rounded edge but I don't see where I'm declaring which side the border should be applied.

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

Posted: Wed Jun 19, 2013 2:01 am
by Akaya
When setting Vyzor.Color, colors with an underscore won't work. Not sure if this is intentional.

When setting a callback function, the function cannot include a global variable. For example, this will work:
myFrame.Callback = "Clicky"
This will not work:
myFrame.Callback = "myGlobalVar:Clicky"

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

Posted: Wed Jun 19, 2013 2:19 am
by Jor'Mox
Can you even do the : syntax with normal callback functions? I just use the . Syntax an pass the variables I need (strings and numbers only) afterward.

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

Posted: Wed Jun 19, 2013 6:26 am
by Vadi
You can't indeed. If you really need to do :, you can emulate it by passing the myGlobalVar as the first parameter.

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

Posted: Wed Jun 19, 2013 8:39 am
by Akaya
well that explains it :P

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

Posted: Wed Jul 03, 2013 1:58 pm
by Oneymus
I'll look into this over the weekend (~7/5-7/7) and see what I can find. Nothing stood out to me after a cursory inspection of the code.

Re: Vyzor, UI Manager for Mudlet

Posted: Tue Oct 22, 2013 7:48 am
by achlee
I prefer to keep a white background for my clients. That means I would like to change the default background color for widgets.

Specifically, how would I change the default background for:

Vyzor.Chat
Vyzor.MiniConsole

Re: Vyzor, UI Manager for Mudlet

Posted: Wed Nov 13, 2013 2:37 am
by Lilypad
This is going to sound silly, but how do I download Vyzor? Do I just make new scripts for it? Or is there a better way to put it all in?

Re: Vyzor, UI Manager for Mudlet

Posted: Wed Nov 13, 2013 3:29 pm
by Oneymus
Click on the link to GitHub in the first post. There, you will find the vyzor.mpackage. Download that. Then, using Mudlet's Package Manager, install that .mpackage.

Then you make your GUI. Vyzor is documented on the Wiki (also linked in the first post), and you can use the alias "vyzor help" to pull up your web browser with API documentation.

Any other questions, feel free to make a new thread and I will answer as I can.