Attach miniwindow to another miniwindow

Posted by gameshogun on Wed 30 Sep 2015 09:33 PM — 5 posts, 21,867 views.

Philippines #0
Is it possible to associate or attach a miniwindow to another miniwindow?

For example,
miniwindow "main"
inside it I have a windows for HP, MP, and Mob Health

When I move miniwindow "main", I would like the other windows to move with it.


Currently, I was able to anchor the creation of the HP, MP, and Mob Health windows to "main". But when I move "main", the bars are left. I have to restart the world so the bars are redrawn in the new position of "main".

Thanks!
Australia Forum Administrator #1
Why not draw the bars in "main"?

Miniwindows can't be attached to each other. You can however turn a miniwindow into an image, so you could conceivably have the bars as hidden windows, and then convert them into images and load them into the main window, if that would help.
USA Global Moderator #2
Quote:
Why not draw the bars in "main"?

Modularity! I totally dig it.

Quote:
Miniwindows can't be attached to each other.

Don't forget we added a "friends" parameter to movewindow, so I think this could be done using that.
Amended on Thu 01 Oct 2015 12:26 PM by Fiendish
Australia Forum Administrator #3
I'd forgotten about that. Sounds like one of Fiendish's ideas.

Does that actually move the "friend" window?
USA Global Moderator #4
Should do.
https://github.com/nickgammon/mushclient/commit/e3bebba