Search found 21 matches

by Jaren
Tue Feb 12, 2019 3:59 pm
Forum: Howtos, FAQs and Tips & Tricks
Topic: Allow label to change size upon wordwrap or newline.
Replies: 5
Views: 1535

Re: Allow label to change size upon wordwrap or newline.

Ok, I stopped recreating the container each time and just used these:

Code: Select all

Occupants:move(0, -(lines))
Occupants:resize(windowwidth, lines)
For some reason these did not work, which was why I was doing it the other way.

Code: Select all

moveWindow("Occupants", 0, -(lines))
resizeWindow("Occupants", 1150, lines)
by Jaren
Tue Feb 12, 2019 4:58 am
Forum: Howtos, FAQs and Tips & Tricks
Topic: Allow label to change size upon wordwrap or newline.
Replies: 5
Views: 1535

Re: Allow label to change size upon wordwrap or newline.

It's kinda wonky but I figured out a way to do this. I switched to a miniconsole but this should also work with a label. Basically it grabs the string I want to plop into a label or miniconsole etc, calculates the font size of each character, finds how many characters in the string and if the size o...
by Jaren
Mon Feb 11, 2019 8:03 pm
Forum: Howtos, FAQs and Tips & Tricks
Topic: Allow label to change size upon wordwrap or newline.
Replies: 5
Views: 1535

Allow label to change size upon wordwrap or newline.

Is there a way to tell a label to change it's size dynamically depending on how many lines of info it is displaying? For example say I have the line: "A taco appears before you." It takes up about 25 pixels of height so right now my label is just high enough and just wide enough to display that spec...
by Jaren
Mon Feb 04, 2019 6:05 pm
Forum: Mudlet Development
Topic: Mudlet 3.17 UserWindow Bug
Replies: 1
Views: 1126

Mudlet 3.17 UserWindow Bug

I am not sure if there is a more proper place to post bugs so please forgive me if there is. But I have found a major bug with the latest version (3.17) that affects UserWindows. When one is set to a floating state (not docked) and closed, it cannot be re-opened via "showWindow("name")" or "openUser...
by Jaren
Wed Jan 30, 2019 3:41 am
Forum: Mudlet Development
Topic: Dynamic Userwindow Wordwrap
Replies: 0
Views: 1210

Dynamic Userwindow Wordwrap

I love all the new features that userwindows have been given but I am wondering, is there a way to set a dynamic wordwrap? (Meaning the user resizes it and the wordwrap changes to match) I can't seem to find a function to get its current size. I found one for the main window but nothing for this. Th...
by Jaren
Fri Jan 25, 2019 11:35 pm
Forum: Scripts & Packages
Topic: Deleting a GMCP client entry from the server
Replies: 4
Views: 1467

Re: Deleting a GMCP client entry from the server

I have a plugin which lists all the skills that the player is currently monitoring. They also have the ability to toggle which skills are being monitored so if I start sending live data as to how their monitored skills are progressing, It could run into a situation where they un-toggle a particular ...
by Jaren
Fri Jan 25, 2019 8:50 pm
Forum: Scripts & Packages
Topic: Deleting a GMCP client entry from the server
Replies: 4
Views: 1467

Re: Deleting a GMCP client entry from the server

Thanks, A good idea but sadly it just leaves a placeholder. Looks like I can overwrite stuff pretty easily but getting rid of it entirely is the tricky thing. Tried these: 0xFF 0xFA 0xC9 package.testkey [] 0xFF 0xF0 0xFF 0xFA 0xC9 package.testkey {} 0xFF 0xF0 This will not parse: 0xFF 0xFA 0xC9 pack...
by Jaren
Fri Jan 25, 2019 10:11 am
Forum: Scripts & Packages
Topic: Deleting a GMCP client entry from the server
Replies: 4
Views: 1467

Deleting a GMCP client entry from the server

We have been adding GMCP to our server and things have been working out nicely but during the course of our development I have stumbled onto a small problem that requires me delete a key/value entry from the clients GMCP memory. I made a work around for this by setting the value of a key to "del" an...
by Jaren
Fri Jan 18, 2019 11:07 pm
Forum: Scripts & Packages
Topic: Adding GMCP to my MUD
Replies: 7
Views: 1478

Re: Adding GMCP to my MUD

It's at clok.contrarium.net on port 4000. I have been doing some digging on this and I may not have properly initialized telnet negotiations for the string I am sending. I will get back to you if I still have problems after tinkering with it tonight. Thanks for the quick reply by the way.