News/ 2022/ February/ 4.15 – gifs, music, and editable shortcuts!

Release 4.15.0

4.15 – gifs, music, and editable shortcuts!

Every Mudlet release is like a box of presents, according to Mudlet dev Delwing. This box brings gifs, scrollboxes, and revamped sound & music to Mudlet – welcome to the first update of 2022!

You can now use gifs in your Mudlet UI

You heard it here first, folks – Edru brings us gifs in 2022! In addition to supporting images, labels now support animated gifs as well. Show animated bars and backgrounds; get awesome meme gifs; show a flying money sign when you’ve sold stuff, or a little dude running on screen while you’re speedwalking ingame – let your imagination flow!

Try it out by dragging this link onto Mudlet, or with this on the input line:

lua installPackage"https://github.com/vadi2/gifs-demo/raw/main/gifs-demo.mpackage"

That said, gifs are pretty expensive to play – so don’t go too wild with them.

You can now use background music in your Mudlet UI

Lua music and sound API got a huge overhaul by mpconley in this update! And we don’t use such words here lightly – this update opens a lot of possibilities in the audio arena.

You can set music/sounds to fade in or out, adjust the volume on them individually, choose at which time should the playback start, select how many times it should loop (infinite? sure!), or even tag sounds with a similar category so you can control them en-masse.

Crazy, huh? Just as an example, you can now background ambience music when in area/zone A… and later when changing to a new area/zone replace the ambience music with another one. You can tag all sounds as ‘battle sounds’ and stop them all at once when the battle is done. Lots of things you can do now with this!

This functionality is coming over from MCMP support that already exists in Mudlet – so if you’re a game admin and would like this for your game, go for it.

Configurable shortcuts

Don’t like that Alt+D disconnects you from the game? You don’t have to put up with that anymore! Thanks to Delwing, all shortcuts used by Mudlet are now customisable via Settings:

Better stylesheets

demonnic has done so many nice things in this release that it’s hard to pick one, so if I had to settle on one this would be it – Geyser stylesheets! They allow you to create a managed stylesheet to make it easier to set and change properties, as well as inherit properties from another stylesheet, making it easier to manage multiple styles at once. Great tool for a UI builder.

If you’ve used CSSMan previously, this is a worthy replacement!

c/d/hecho works on labels

cecho("Hi! This text is <red>red, <blue>blue, <green> and green") – cecho is pretty familiar to us all, isn’t it? If you want to get your text onto a miniconsole, this is a very popular option. But why only miniconsoles and not labels as well? demonnic wondered that too, rolled up his sleeves, and fixed it – you can now use c/d/hecho functions on labels!

Scrollboxes

Ever wanted to create scrollable lists with labels Mudlet? Say a list of players, or wares in a shop? While it was quite doable with miniconsoles, it wasn’t the case with labels. Edru got to work fixing that and createScrollBox() is the result. Think of it as a container that you can put your labels into and if there’s not enough space, you get scrollbars – both horizontal and vertical directions work.

Credits

Thanks to all coders who made this amazing release happen: Chris Mitchell, Damian Monogue, Gustavo Sousa, Kebap, lithiumFlower, Manuel Wegmann, Mike Conley, Nils Schimmelmann, nsweeting2, Philipp, Delwing, Slobodan Terzić, Stephen Lyons, Tim Johnson, Vadim Peretokin, and 噢哎哟喂.

Thanks to all translators who are enabling Mudlet to speak their language: Alan Sneath , Hsin-Hsiang Peng, ifelse, Leris, Marco “M0lid3us” Tironi, mohammed hossam, Tostaito, Vadim Peretokin, and vingi.

Changelog

A lot of very handy improvements come with this update – too many to mention above. Scour the changelog below for good gems:

4.15.1 fixes a few issues that we’ve identified.

Enjoy this update!
Vadim.

>changelog — Mudlet-4.14.1…Mudlet-4.15.0 186 changes
added
offer to update editor theme as well for dark theme #5563
(Enhance) add map deletion functionality #5627
`map.pauseSpeedwalk()` and `map.resumeSpeedwalk()` + mpp alias to generic mapper #5629
Add Asteria as a known game with Discord Rich Presence #5646
auto-enable theme for dark mode desktops #5574
show unicode characters which can change how code is interpreted in editor #5650
add mirror generic_mapper download path for chinese player #5652
Add IDManager.lua to mudlet.pro #5659
Add `windowType()` function #5696
Add color `echo aliases for testing triggers #5690
Main window shortcuts overrides #5704
`getProfileStats()` to see # of triggers, aliases, etc from Lua #5706
Add overline support to c/d/hecho, ansi2decho, and c/d/hecho2ansi functions #5719
Add `getLabelStylesheet()` #5728
Add `getBackgroundColor()` #5721
Close profile action #5712
Add fadein and fadeout to MCMP #5769
add IRC server password support #5700
Add failure reasons to `installPackage` and `installModule` #5785
Add error messages to `fg` and `bg` #5777
Add clang tools to docker build #5808
Add string.escape for escaping special Lua pattern characters #5806
Add Geyser.StyleSheet for managing stylesheets with inheritance #5781
Add beginning of Arabic translation #5838
Add first-time placeholder text for aliases #5853
Add missing cursor and selection functionality to Geyser.MiniConsole #5851
ANSI Esc code support for MSDP #5880
allow transparent labels through right click map menu #5873
Add additional 2string functions for stripping formatting codes from c/d/hecho formatted text #5881
allow to resize animated gif to label size #5901
improved
New Crowdin updates #5625
document what order default games are to be added in #5645
better map.echo in map.find_me #5656
New Crowdin updates #5654
c/d/hecho now support strikethrough #5669
c/d/hfeedTriggers, d/hecho2ansi functions now support bold, underline, italics, and strikethrough #5671
Improve variable icons by using a color which works in both light and dark modes #5686
expose cecho2ansi and have it work for non-ansi color names as well #5672
ansi2decho now supports italics, underline, and strikethrough #5670
do not try loading or saving password securely when storing them portably #5678
Announce how to undo it when hiding the input line buttons #5741
Announce compact line only once #5746
add a QSpinWidget for adjusting special exit weight in exit dialog #5758
add door symbol display to custom exits lines and to stubs #4608
allow profiles to be individually resized when multi-playing #5757
Better extension selection in map save/load dialogs #5655
add MUME information blurb #5766
Improve c/d/hecho to work on Labels #5751
New Crowdin updates #5684
code editor to show virtual characters better #5790
shorten duplicate area name msg #5791
add flag and getter to track whether MSDP has been negotiated #5816
clean-up/unify and extend item statistics reporting system #5817
be explicit with all our callable with 1 arg class constructors #5818
get Label Size hint and Geyser.Label adjustSize #5815
add ScrollBox Gui Element #5739
New Crowdin updates #5788
Improve Lua API for Sound and Music #5799
New Crowdin updates #5839
`getProfileStats()` now includes active patterns #5847
Enhance labels to allow animated gif #5827
fixup layout and tab-ordering for preferences dialogue #5846
New Crowdin updates #5840
provide alternative representations of most control characters #5573
TMedia Code Refactor #5926
setMoviePaused should only ever pause, not unpause as well #5921
rename setMovieStart → startMovie, setMoviePause → pauseMovie #5920
getLabelStylesheet → getLabelStyleSheet #5931
New Crowdin updates #5907
fixed
Fix generic mapper custom_exits bug, add special exits support for chinese mud #5620
Fix missing space in telnet negotiation warning #5621
clear speedWalkPath and speedWalkWeight in generic_mapper upon completion #5642
fix buttontoolbar resizing on start #5637
Fix faulty regular expression error message #5657
don't show tab character in code editor #5663
correct placement of const in a function declaration/definition #5676
prevent unwanted and unneeded copying of an item in a container #5677
Fix the label for dark theme #5687
Fix ansi2decho to respect custom colors #5668
fix hidden container not attaching when reloading #5674
windowvista and Mactintosh styles not colouring PushButtons (again!) #5715
get menu shortcuts and their key sequences working all the time again #5723
Fix compiling latest development with Qt Creator #5738
Fix empty newline on send with no command separator #5736
shortcuts crash & reset to default values #5713
fix strange disabled items in darktheme right click #5755
Fix allow shortcuts to be updated when active profile changes #5756
Fix linewrapping for really long words without spaces in Western languages #5570
Fix replace throwing ambiguous error or appending to entire console if nothing is selected to replace #5745
Fix profile close abort to work right #5754
get dark-desktop detection working also on FreeBSD #5767
clear Mapper area selector QComboBox on map deletion #5651
avoid unbalanced `QPainter` `save()` and `restore()` calls #5773
small size of exit stubs (alternative 2 "blobs on stubs") #5772
Fix datetime:parse and :calculcate_UTCdiff to account for DST #5778
get replays working again #5776
Don't show hidden Geyser.CommandLines in Adjustable.Containers #5842
enable Multi-view as soon as second profile is started and show all profiles when it is active and further profiles are started #5762
use better form for a couple of translatable texts. #5359
make logging have a per profile persistent control method #5874
enable restoration of editor toolbars even if both get hidden #5532
Fix control character mode being used uninitialised #5886
Fix documentation for scrollbar related functions #5882
prevent bogus NAWS and window resize events on tab changes #5887
Fix regression in Geyser.Label.echo due to #5751 (c/d/hecho in Labels) #5892
diatrics in code editor on Linux #5898
compact input line crash when it's translated in other language #5909
MXP Sound/Music Tags not functioning with U Attribute #5877
flatten XML to prevent issues clearing settings on older Mudlet versions #5911
correctly save fore/background color and transparency of labels in JSON map files #5929
other
(autocommit) Updated text for translation #5632
(autocommit) Updated IRE mapping script to latest upstream #5633
[ImgBot] Optimize images #5710
(autocommit) Updated text for translation #5722
repair broken link #5734
(autocommit) Updated text for translation #5782
(autocommit) Updated IRE mapping script to latest upstream #5783
(autocommit) Updated autocompletion data #5845
(autocommit) Updated text for translation #5905
(autocommit) Updated autocompletion data #5906
(autocommit) Updated autocompletion data #5933
(autocommit) Updated autocompletion data #5941
4.15.0 release!
infrastructure
delete .travis.yml #5611
Bump GabrielBB/xvfb-action from 1.5 to 1.6 #5635
add Danger-friendly label to dependabot commits #5639
Update text for translation in Crowdin #5660
Update autocompletion data in Mudlet #5679
Update text for translation in Crowdin #5697
Update bundled IRE mapper script to latest upstream #5698
Update autocompletion data in Mudlet #5699
Bump actions/cache from 2.1.6 to 2.1.7 #5702
Add .imgbotconfig file to set a PR Title which conforms with our danger checks #5714
update development/ptb version to 4.14.1 #5718
Bump actions/setup-node from 2.4.1 to 2.5.0 #5725
documented data structures used for modules #5541
Add short qsl macro to stand in for 'QStringLiteral' #5640
refactor busted tests to help us determine code coverage #5737
Update text for translation in Crowdin #5747
Update autocompletion data in Mudlet #5748
update new instances of QStringLiteral to shorter qsl #5760
Update text for translation in Crowdin #5764
Update bundled IRE mapper script to latest upstream #5765
add Lua tests for `windowType()` #5731
infra Win10 fix dependency installation script to handle nulls in PATH #5750
Bump carlosperate/download-file-action from 1.0.3 to 1.1.0 #5786
update .clang-format for c++17 #5784
replace `qsl(...)` used for Tooltips #5694
improve code quality with structured bindings #5787
Fix Typo in qt-ordered-map submodule init #5797
still run clang-tidy diff when its own workflow is modified #5796
exclude 3rdparty dir for clang-tidy #5795
update QtKeychain dependency #5792
allow alternative linkers in C++ #5800
Update text for translation in Crowdin #5802
Bump actions/setup-node from 2.5.0 to 2.5.1 #5804
update Mudlet copyright for 2022 #5794
update vcpkg to latest #5793
update codespaces configuration to Debian 11 #5789
fix CodeQL builds #5805
update dofile(), loadfile(), os.execute() handling of path/filenames with special characters #5707
re-enable windows builds in github actions #5809
Revert "re-enable windows builds in github actions (#… #5810
switch to our qt-orderedmap fork #5812
extract trigger processing logic from matching logic #5811
Update text for translation in Crowdin #5819
mock utf8 for changelog script (fix PTBs) #5821
remove stray `match_wildcard()` function definition #5823
fix doc link for `utf8.patternEscape` #5820
document places StringUtils.lua is used in #5822
a bit of trivial trigger cleanup #5825
enable C++17 globally #5831
don't error in PTB workflow if nothing happened last day #5835
Bump ZedThree/clang-tidy-review from 0.7.0 to 0.7.1 #5849
Exclude 3rdparty and ui files from VScode analysis #5855
rename regexList and regexPropertyList to patterns and patternsKind #5829
Add simple option to use Clang sanitizers #5848
revert "don't error in PTB workflow if nothing happened last day" #5870
automatically add milestones to PRs #5900
move away from constructor initialisation lists - part 1 #5890
add missing stylesheet file to mudlet.pro #5917
fix up milestone tagging workflow #5923
fix a couple of typos in workflows #5914
don't gitignore .lua files #5922
exclude 3rdparty folder in VScode #5912
Bump carlosperate/download-file-action #5935
↑↓ navigate ↵ open ctrlK anywhere