Mudlet features and API requests

User avatar
Zaphob
Posts: 143
Joined: Wed May 09, 2012 8:07 am
Location: mg.mud.de

Re: Mudlet features and API requests

Post by Zaphob »

I would love the ALT + R (reconnect) shortcut to work without the menu-bar displayed. Because, the menu-bar is not shown by default for new profiles. See also discussion next door.

SilverDragon
Posts: 23
Joined: Tue Mar 01, 2011 10:00 pm

Re: Mudlet features and API requests

Post by SilverDragon »

Not sure if someone's already requested these, but I wanna add my vote for:

A way to reference and set via a function (aka getSysx(), setSysX(), where x is the name of what you want to get/set) main system fontsize, font style, and screen wrap

a function to hide/show the scroll bar in the main window, or a setting checkbox to remove/hide it (because really.... mouse = scrollwheel = unnecessary usage of precious screen real estate, and IMO it detracts from the look of any gui.) And even if you didn't have a mouse, pgup, pgdown, or if touchscreen, just flicking on the screen scrolls fine. :3

NOTE: I found out that using the setAppStyleSheet, and setting everything to black background makes the scrollbars black holes....for the whole app, which is fine by me, but not a very clean method. just to note, they are still there and still work in the editors, you just have to guess where the drag handle is.

SilverDragon
Posts: 23
Joined: Tue Mar 01, 2011 10:00 pm

Re: Mudlet features and API requests

Post by SilverDragon »

And another one for the record :D

A way to set the Geyser mapper container's background that is permanent. Not just a image label that only shows up when your at the coordinates you were when you set the image

Bump for people who don't want a black hole map box.

User avatar
SlySven
Posts: 980
Joined: Mon Mar 04, 2013 3:40 pm
Location: Deepest Wiltshire, UK
Discord: SlySven#2703

Re: Mudlet features and API requests

Post by SlySven »

You can set a coloured background for the mapper which I think works in the the mapper as a detachable widget and as a Geyser window. Note that currently (development and release 3.0.0 previews) the 3D mapper does have a plain black background - I am aware of a C++ code to tweak that and it will get fixed the next time I take a scalpel, er, sledgehammer to that area of the code...!

User avatar
Belgarath
Posts: 232
Joined: Fri Jul 26, 2013 7:19 am
Discord: macjabeth#7149

Re: Mudlet features and API requests

Post by Belgarath »

I'd find it very useful to have a function I can call to have the inbuilt logger ignore a certain line. Similar to denying the current send.

e.g.
Code: [show] | [select all] lua
  -- exact match trigger: This is very spammy and doesn't need to be logged.
  ignoreLogOutput()
I know there is a Logger script out already that could be played with to fit this functionality, but it'd be much nicer to have it built in.

azure_glass
Posts: 97
Joined: Wed Jul 25, 2012 12:35 pm

Re: Mudlet features and API requests

Post by azure_glass »

I think something like that could be useful

SaveProfile() -- saves profile i normal mudlet dir
SaveProfile("c:/backup") -- saves profile in directory "c:/backup"
English is not my native language. If you don't understand what im writing ask. :)
Ubuntu 17.04, Mudlet 3.1

azure_glass
Posts: 97
Joined: Wed Jul 25, 2012 12:35 pm

Re: Mudlet features and API requests

Post by azure_glass »

createMapper
createMapper(x, y, width, height)

createMapper(100,50,355,300) -- ok

createMapper(100,50,35%,40%) -- Should be added
createMapper(100,-50,35%,40%) -- Should be added
English is not my native language. If you don't understand what im writing ask. :)
Ubuntu 17.04, Mudlet 3.1

SilverDragon
Posts: 23
Joined: Tue Mar 01, 2011 10:00 pm

Re: Mudlet features and API requests

Post by SilverDragon »

azure_glass wrote:createMapper
createMapper(x, y, width, height)

createMapper(100,50,355,300) -- ok

createMapper(100,50,35%,40%) -- Should be added
createMapper(100,-50,35%,40%) -- Should be added

It's possible (and relatively simple) for you to get that functionality yourself with a little math
Code: [show] | [select all] lua
-- grab screen dimensions --
local swidth, sheight = getMainWindowSize()
-- set our map width/height to 35% and 40% respectively --
local mapwidth, mapheight = (swidth * 0.35), (sheight * 0.4)

-- Then to position the map in any of the corners... --

--- bottom right corner --
local mapx, mapy = (swidth - mapwidth), (sheight - mapheight)
-- top right corner --
local mapx, mapy = (swidth - mapwidth), 0
-- bottom left corner --
local mapx, mapy = 0, (sheight - mapheight)
-- top left corner --
local mapx, mapy = 0, 0
Edit: I forgot; Mudlet comes prepackaged with a window manager called geyser, which has a function to create a mapper and accepts negative and percentage values.
Code: [show] | [select all] lua
myMap = Geyser.Mapper:new({
  name = "myMap",
  x = 0, y = -50,
  width = "35%",
  height = "40%",
}, main)

Avaloniac
Posts: 13
Joined: Wed Nov 18, 2009 8:40 pm
Location: avalon.mud.de
Contact:

Re: Mudlet features and API requests

Post by Avaloniac »

i would appreciate..

miniConsole - transparency

setting Color view Settings from Preferences via function...esp. Background/Foreground and Command line fore/back

maybe console behavior of main at all

playing ogg files

Mapper in Label working, transparency

User avatar
SlySven
Posts: 980
Joined: Mon Mar 04, 2013 3:40 pm
Location: Deepest Wiltshire, UK
Discord: SlySven#2703

Re: Mudlet features and API requests

Post by SlySven »

Let me check, by miniConsole you mean the ones that are superimposed over the main profile console (and not the docked/floating consoles, err, user-windows)?

I am not sure but can you change the "Colour view Settings" by using lua scripts that adjust colours for a "main" console - it is on my to do list to unify some of the internal "console" code to reduce the differences in code for the "main" one and all the other types of console but it is a bit of the way down my task list?

The current sound code does use native OS things underneath - so if your system can play Ogg Vorbis files it seems likely that the Qt library functions will use whatever capabilities the operation system can furnish.

Not sure what you mean by "Mapper in Label working, transparency" !

Post Reply