Embed - a couple of questions

More
27 Oct 2014 22:06 #1 by Angie
Embed - a couple of questions was created by Angie
We will be using the mudportal embedded client for our web redesign. After testing it, I have a few questions:
-- Is there a way to increase the starting/default font size? Our mud wraps lines at 80 or so characters, so the font could safely be one size bigger to make use of the screen estate.
-- Is there a way to disable the command history dropdown? It exceeds the size of the iframe, so you can't see it anyway.
-- If I modify our script on here with the embed in mind, will it be used by the embedded client, or would it be a waste of time to do it?

Angie @ Midnight Sun 2
Alayla @ God Wars 2

Please Log in or Create an account to join the conversation.

More
28 Oct 2014 00:08 - 28 Oct 2014 00:12 #2 by plamzi
Replied by plamzi on topic Embed - a couple of questions
Your customizations will load in embedded view. Your code can detect whether it's running in embed mode by checking "Config.embed".

This is how you would change the default font size:
Event.listen('scrollview_ready', function() {
j('#scroll-view .out').css('fontSize', 14);
});

Disabling the command history dropdown is a bit harder. Are you finding that it interferes with command input in embed mode?
Last edit: 28 Oct 2014 00:12 by plamzi.
The following user(s) said Thank You: Angie

Please Log in or Create an account to join the conversation.

More
28 Oct 2014 21:42 #3 by Angie
Replied by Angie on topic Embed - a couple of questions
Thanks! I find that without the dropdown visible, it can sometimes get confusing when your input line is replaced with a history item. But it's not a huge issue.

Angie @ Midnight Sun 2
Alayla @ God Wars 2

Please Log in or Create an account to join the conversation.

More
28 Oct 2014 21:50 #4 by plamzi
Replied by plamzi on topic Embed - a couple of questions
The autocomplete dropdown should now be disabled in embed mode.
The following user(s) said Thank You: Angie

Please Log in or Create an account to join the conversation.