Skip to content
Snippets Groups Projects
Commit 1f1775eb authored by echicken's avatar echicken
Browse files

Fixed some display bugs.

Added a bit of text to main screen to explain
what the avatar is used for.
parent f35af44a
No related branches found
No related tags found
No related merge requests found
......@@ -314,7 +314,7 @@ function CollectionLister(dir, parent_frame) {
frames.container.x,
frames.container.y + 2,
Math.floor((frames.container.width - 2) / 2),
frames.container.height - 2,
frames.container.height - 3,
0,
frames.container
);
......@@ -322,7 +322,7 @@ function CollectionLister(dir, parent_frame) {
frames.info = new Frame(
frames.tree.x + frames.tree.width + 1,
frames.container.y + 2,
frames.tree.width - 1,
frames.container.width - frames.tree.width - 2,
5,
WHITE,
frames.container
......@@ -492,6 +492,7 @@ function MainMenu(parent_frame) {
const frames = {
parent : parent_frame,
tree : null,
info : null,
user_avatar : null
};
......@@ -530,13 +531,28 @@ function MainMenu(parent_frame) {
frames.tree = new Frame(
frames.parent.x + 1,
frames.parent.y + 2,
frames.parent.y + 3,
Math.floor((frames.parent.width - 2) / 2),
frames.parent.height - 3,
5,
0,
frames.parent
);
frames.info = new Frame(
frames.tree.x + frames.tree.width + 1,
frames.parent.y + 3,
frames.parent.width - frames.tree.width - 4,
5,
WHITE,
frames.parent
);
frames.info.word_wrap = true;
frames.info.putmsg(
'On participating systems, your avatar will ' +
'be displayed alongside messages that you ' +
'have posted.'
);
frames.user_avatar = new Frame(
frames.parent.x + frames.parent.width - 1 - avatar_lib.defs.width - 2,
frames.parent.y + frames.parent.height - 1 - avatar_lib.defs.height - 3,
......@@ -550,6 +566,7 @@ function MainMenu(parent_frame) {
if (frames.parent.is_open) {
frames.tree.open();
frames.info.open();
frames.user_avatar.open();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment