Search found 36 matches

by Puckster
Fri Sep 30, 2022 6:05 pm
Forum: Help Forum
Topic: Retaining Docked Window Layout
Replies: 1
Views: 4276

Re: Retaining Docked Window Layout

Like I said: "I know I must be missing something simple here."

Turns out it was a typo on my part:

Code: Select all

loadWondowLayout()
throws an error

Code: Select all

loadWindowLayout()
works precicely as expected, even on docked windows.

I retract my question and apologize for the distraction!
by Puckster
Fri Sep 23, 2022 5:20 pm
Forum: Help Forum
Topic: Retaining Docked Window Layout
Replies: 1
Views: 4276

Retaining Docked Window Layout

Apologies if this has been answered somewhere. It seems like something that should be straightforward, but I'm not finding anything in my searches and reading. I have several docked windows. When I start Mudlet, I have to manually resize them by grabbing the handles and adjusting the height and widt...
by Puckster
Tue Aug 30, 2022 7:01 pm
Forum: Help Forum
Topic: string.cut and UTF-8
Replies: 3
Views: 5825

Re: string.cut and UTF-8

Yep. Perfect!

Thanks!!!
by Puckster
Sun Aug 28, 2022 7:23 pm
Forum: Help Forum
Topic: string.cut and UTF-8
Replies: 3
Views: 5825

string.cut and UTF-8

I am using string.cut and it is struggling when the string contains special characters. Many of the string functions have UTF8 versions (like string.len and utf8.len), but I don't see anything similar of .cut. Any advice on the best way to handle UTF8 chars with string.cut?
by Puckster
Sat Aug 27, 2022 6:08 pm
Forum: Help Forum
Topic: Replace a text in a specific position in a user window
Replies: 10
Views: 8469

Re: Replace a text in a specific position in a user window

@demonnic aha, thanks! Similar to how I would do it if I were just rendering strings or such. Slick (and obvious now that you point it out ... ).

Thanks for all the help!
by Puckster
Fri Aug 26, 2022 1:13 pm
Forum: Help Forum
Topic: Replace a text in a specific position in a user window
Replies: 10
Views: 8469

Re: Replace a text in a specific position in a user window

@Dominic two questions that I don't see in the MDK wiki 1. can you remove rows from a table or would you just create a new table without that row and redraw the whole thing. 2. can a single element in the table be independently formatted or is it only by column? I need to format certain fields based...
by Puckster
Fri Aug 26, 2022 1:07 pm
Forum: Help Forum
Topic: Replace a text in a specific position in a user window
Replies: 10
Views: 8469

Re: Replace a text in a specific position in a user window

@Vadi, that was my fallback plan. I am using GMCP, and I get a GMCP.Room.Char.Upate event that only contains the updated information, so I was hoping to be surgical, and just replace those few (often one) values, but if I have to redraw the whole table, so be it. I didn't really think there would be...
by Puckster
Fri Aug 26, 2022 1:04 pm
Forum: Help Forum
Topic: Replace a text in a specific position in a user window
Replies: 10
Views: 8469

Re: Replace a text in a specific position in a user window

The TableMaker in MDK looks quite interesting. I would need to change my strategy a bit, but it looks like there is a good bit of flexibility. I'll tinker with that a bit.
by Puckster
Fri Aug 26, 2022 12:51 pm
Forum: Help Forum
Topic: Replace a text in a specific position in a user window
Replies: 10
Views: 8469

Re: Replace a text in a specific position in a user window

Yeah, I realized later last night after I posted this that the example is a much simplified one from what I actually need. I created it to reduce the variables while I figured out the solution. What this is for is for a list of mobs in a room. Sometimes the whole table will be replaced (i.e. enterin...
by Puckster
Fri Aug 26, 2022 3:29 am
Forum: Help Forum
Topic: Replace a text in a specific position in a user window
Replies: 10
Views: 8469

Replace a text in a specific position in a user window

I have the following code that generates tabular output in a user window. function WindowUpdate() roomWindow:clear() echo("roomWindow", "1234567890123456789012345678901234\n") echo("roomWindow", "Fruit Color Size Price\n") echo("roomWindow", "Ap...