Search found 17 matches

by SoulSpirit
Mon Dec 23, 2019 8:45 pm
Forum: Help Forum
Topic: Handling Windows display scaling
Replies: 9
Views: 9894

Re: Handling Windows display scaling

You're perfectly right, and I undestand what's happening.
I'd like to react to the scaling factor, but how do I detect it from within a Mudlet Lua script?

Thanks again.
by SoulSpirit
Thu Dec 19, 2019 8:11 am
Forum: Help Forum
Topic: Handling Windows display scaling
Replies: 9
Views: 9894

Re: Handling Windows display scaling

you have: setFontSize(16). Which means 16px. Which is why your label uses 16px font in both cases. If you don't want Mudlet's gui to scale at all, Mudlet is built using Qt tolkit, so disabling (or tweaking) scaling in Qt will directly affect Mudlet. More info here: https://www.qt.io/blog/2016/01/26...
by SoulSpirit
Wed Dec 18, 2019 9:54 am
Forum: Help Forum
Topic: Handling Windows display scaling
Replies: 9
Views: 9894

Handling Windows display scaling

Hi, the UI I'm designing with Mudlet is composed of many elements which sizes are pixel-perfect. In many cases I draw labels with a width/height (defined in pixels) that can perfectly fit text of a specific size (defined in points). Everything goes well if Windows is set to 100% scale (control panel...
by SoulSpirit
Mon Aug 05, 2019 2:30 pm
Forum: Help Forum
Topic: Wide characters overlap
Replies: 6
Views: 6750

Re: Wide characters overlap

I tried with the text you linked. Some emojis are "single spaced" others are "double spaced". In either case the character is partially cut on the right. Note that the output is perfect in the command bar: https://snag.gy/8u3QVv.jpg Taking 2 adjacent characters rendered in the 2 ...
by SoulSpirit
Mon Aug 05, 2019 1:41 pm
Forum: Help Forum
Topic: Wide characters overlap
Replies: 6
Views: 6750

Re: Wide characters overlap

I can see colored emoji since before Mudlet 3.1, I'm pretty sure about that. I think that's a Windows' feature: when it finds a character falling in the "emoji" category not handled by the selected font, it fallbacks to Segoe Color Emoji. Perhaps this is the cause of the issue. I suppose m...
by SoulSpirit
Mon Aug 05, 2019 9:02 am
Forum: Help Forum
Topic: Wide characters overlap
Replies: 6
Views: 6750

Wide characters overlap

Hi, I was curious to try out the support for emoji characters in version 4 to implement some interesting features on my plugins, but there's something wrong. I copied and pasted the example on the news released yesterday, but the text echoed is displayed like this: https://snag.gy/w9LGfu.jpg And the...
by SoulSpirit
Fri Sep 07, 2018 7:07 am
Forum: Help Forum
Topic: Keeping variables through multiple lines
Replies: 4
Views: 3919

Re: Keeping variables through multiple lines

I'd use 3 triggers to handle this: 1st. the initiator: could be the multiline trigger you said to capture the beginning of the "table". It should set a global flag (like "playersTrigger=true") 2nd. matches evey line of your table (something like ^(\S)\s+[-] (.+)$ ) and contains t...
by SoulSpirit
Thu Sep 06, 2018 1:19 pm
Forum: Help Forum
Topic: Sync with online DB
Replies: 16
Views: 15321

Re: Sync with online DB

@SoulSpirit The PR is ready. If you'd like to test this, here are testing builds: https://transfer.sh/3TVR4/Mudlet-3.13.0-testing-PR1957-7e77b9d-linux-x64.AppImage.tar Linux https://transfer.sh/8FKdk/Mudlet-3.13.0-testing-PR1957-7e77b9d.dmg macOS https://ci.appveyor.com/api/buildjobs/86g7wpny37cgex...
by SoulSpirit
Wed Sep 05, 2018 1:24 pm
Forum: Help Forum
Topic: Sync with online DB
Replies: 16
Views: 15321

Re: Sync with online DB

local handlerId = registerAnonymousEventHandler( "sysDownloadDone", function(_, filename) local f, s, result = io.open(filename) if f then result = f:read("*a"); io.close(f) end if result:find("The document has moved",1,true) ~= nil then local redirectUrl = result:matc...
by SoulSpirit
Tue Aug 28, 2018 6:59 am
Forum: Help Forum
Topic: Git
Replies: 4
Views: 3871

Re: Git

Vadi wrote:
Tue Aug 28, 2018 4:09 am
Yep, there is. Export what you want first, then import it via the module manager (and delete the originals). What you import will be automatically saved back to the files you originally imported now - and you can sync those with Git.
Thanks, it works!
Not very intuitive to setup, but it works :)