[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  MXP and Pueblo
. . -> [Subject]  Menu issue

Menu issue

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by ForgottenMUD   Belgium  (22 posts)  [Biography] bio
Date Mon 08 Oct 2012 09:50 PM (UTC)
Message
Am I doing something wrong?

If there's a menu, I can only right click at the beginning of the word, or it will display the generic menu with "Copy", "Copy as HTML", etc. It gets annoying because half of the time, I don't click at the right spot.

Screenshot: http://img689.imageshack.us/img689/585/menuissue.jpg

ForgottenMUD - original Java MUD
http://sites.google.com/site/forgottenmud
[Go to top] top

Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Mon 08 Oct 2012 10:05 PM (UTC)
Message
Template:version Please help us by advising the version of MUSHclient you are using. Use the Help menu -> About MUSHclient.


What MUD is this?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by ForgottenMUD   Belgium  (22 posts)  [Biography] bio
Date Reply #2 on Tue 09 Oct 2012 12:32 AM (UTC)
Message
I'm using the latest version, 4.73, and the MUD is a custom codebase.

After further investigation, I have found that this issue was caused by the TextRectangle method in a script which moves the displayed text to the right.

It appears that the length of the part of the word that I can't click (at the end of the word) is the same as the Left value set in TextRectangle. If Left = 0 then I can click the whole word, and if it's a high value (like 500) I can't click the word anywhere.

ForgottenMUD - original Java MUD
http://sites.google.com/site/forgottenmud
[Go to top] top

Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] bio   Forum Administrator
Date Reply #3 on Tue 09 Oct 2012 04:44 AM (UTC)
Message
So, problem solved? The text and its underlying hotspot (hyperlink) are two different things. If you move the text to the right the hyperlink (hotspot) has to move too.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Fiendish   USA  (2,514 posts)  [Biography] bio   Global Moderator
Date Reply #4 on Tue 09 Oct 2012 10:05 AM (UTC)
Message
I just want to point out that 4.73 is not the latest version.

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Twisol   USA  (2,257 posts)  [Biography] bio
Date Reply #5 on Wed 10 Oct 2012 12:44 AM (UTC)
Message
Fiendish said:
I just want to point out that 4.73 is not the latest version.

New versions are announced on the forums. The latest version (4.84) can be found here: http://www.gammon.com.au/forum/?id=11804 . The main product page usually lags behind by several versions.

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] bio   Forum Administrator
Date Reply #6 on Wed 10 Oct 2012 05:49 AM (UTC)
Message
Fixed downloads page to have 4.84 on it.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by ForgottenMUD   Belgium  (22 posts)  [Biography] bio
Date Reply #7 on Wed 10 Oct 2012 07:01 PM (UTC)

Amended on Wed 10 Oct 2012 07:11 PM (UTC) by ForgottenMUD

Message
Problem not solved.

1) I really hate to ask dumb questions, but I can't find the name of the main window (also referred to as output window, main output window, main scrolling output window) which I need to use WindowHotspotList and WindowMoveHotspot to move the hotspots. The function WindowList lists all mini-windows but not the main window.

2) I can right click single links from a <send> command (which are basically menus with one item) anywhere that I want, hence their hotspots appear to be moved automatically with TextRectangle.

3) Same behaviour with version 4.84.

ForgottenMUD - original Java MUD
http://sites.google.com/site/forgottenmud
[Go to top] top

Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] bio   Forum Administrator
Date Reply #8 on Wed 10 Oct 2012 08:56 PM (UTC)
Message
Er, these menus belong to a miniwindow don't they? Not the main window? The main window isn't addressable like that, it doesn't have hotspots.

I thought Fiendish uses TextRectangle, and hyperlinks and doesn't have these problems.

TextRectangle moves where the text is displayed, it shouldn't affect hotspots in miniwindows, at least I don't think so.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] bio   Forum Administrator
Date Reply #9 on Wed 10 Oct 2012 08:57 PM (UTC)
Message
LordOwl said:

After further investigation, I have found that this issue was caused by the TextRectangle method in a script which moves the displayed text to the right.


You are asking us to debug a script which you haven't shown us.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by ForgottenMUD   Belgium  (22 posts)  [Biography] bio
Date Reply #10 on Wed 10 Oct 2012 11:34 PM (UTC)
Message
These menus are actually in the main window. The following script creates the issue as shown in the screenshot above:


function create_rectangle ()

TextRectangle(50,   -- left
              100,  -- top
              50 + GetInfo (213) * 80, -- 50 + width for 80 characters
              -100,  -- 100 pixels from the bottom
              5,  -- BorderOffset, 
              ColourNameToRGB ("gray"),    -- BorderColour, 
              2,  -- BorderWidth, 
              ColourNameToRGB ("silver"),  -- OutsideFillColour, 
              8) -- OutsideFillStyle (fine hatch)

end

function OnPluginWorldOutputResized ()
 create_rectangle ()
end


when I connected to my MUD or The Two Towers (t2tmud.org, port 9999) which use MXP.

ForgottenMUD - original Java MUD
http://sites.google.com/site/forgottenmud
[Go to top] top

Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] bio   Forum Administrator
Date Reply #11 on Thu 11 Oct 2012 03:42 AM (UTC)
Message
You have found a bug in the way the MXP menus and TextRectangle interacted. Fixed in version 4.85 now available from here:

http://www.gammon.com.au/forum/?id=11813

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


34,747 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]