From 12632c2f7fcdb89635a3946db7f6858024d6eafb Mon Sep 17 00:00:00 2001 From: Geeves Date: Thu, 27 Jun 2019 20:27:23 +0200 Subject: [PATCH] Improved NTNetRelay Interface (#6579) I encountered an issue when I was using the in-game IRC, where I had the "send message" button was above the box where the chat takes place, so when the chat eventually grew to a rather large size, you had to scroll up above the last message to hit "send message", which feels awkward and not very fun, having to scroll up and down the whole time. So, I separated the chat controls into stuff that doesn't have to do with messages, and stuff that has to do with messages, and placed the one above the box, and the other beneath the box, resulting in this: --- html/changelogs/geeves-relayjigger.yml | 41 ++++++++++++++++++++++++++ nano/templates/ntnet_chat.tmpl | 23 ++++++++++----- 2 files changed, 56 insertions(+), 8 deletions(-) create mode 100644 html/changelogs/geeves-relayjigger.yml diff --git a/html/changelogs/geeves-relayjigger.yml b/html/changelogs/geeves-relayjigger.yml new file mode 100644 index 00000000000..58ac60d9191 --- /dev/null +++ b/html/changelogs/geeves-relayjigger.yml @@ -0,0 +1,41 @@ +################################ +# Example Changelog File +# +# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb. +# +# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.) +# When it is, any changes listed below will disappear. +# +# Valid Prefixes: +# bugfix +# wip (For works in progress) +# tweak +# soundadd +# sounddel +# rscadd (general adding of nice things) +# rscdel (general deleting of nice things) +# imageadd +# imagedel +# maptweak +# spellcheck (typo fixes) +# experiment +# balance +# admin +# backend +# security +# refactor +################################# + +# Your name. +author: Geeves + +# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again. +delete-after: True + +# Any changes you've made. See valid prefix list above. +# INDENT WITH TWO SPACES. NOT TABS. SPACES. +# SCREW THIS UP AND IT WON'T WORK. +# Also, all entries are changed into a single [] after a master changelog generation. Just remove the brackets when you add new entries. +# Please surround your changes in double quotes ("), as certain characters otherwise screws up compiling. The quotes will not show up in the changelog. +changes: + - tweak: "Improved the NTNetRelay's UI a little, should be easier and less soul-crushing to use now." diff --git a/nano/templates/ntnet_chat.tmpl b/nano/templates/ntnet_chat.tmpl index 592b6481770..f29c49f364c 100644 --- a/nano/templates/ntnet_chat.tmpl +++ b/nano/templates/ntnet_chat.tmpl @@ -20,11 +20,10 @@ {{/if}}
- Controls: + Chat Controls:
-
{{:helper.link("Send message", null, {'PRG_speak' : 1})}}
{{:helper.link("Change nickname", null, {'PRG_changename' : 1})}}
{{:helper.link("Toggle administration mode", null, {'PRG_toggleadmin' : 1})}}
{{:helper.link("Leave channel", null, {'PRG_leavechannel' : 1})}} @@ -35,7 +34,11 @@
{{:helper.link("Delete channel", null, {'PRG_deletechannel' : 1})}} {{/if}}
-
+ + Connected Users
+ {{for data.clients}} + {{:value.name}}
+ {{/for}} Chat Window
@@ -46,10 +49,14 @@
- Connected Users
- {{for data.clients}} - {{:value.name}}
- {{/for}} +
+ Messaging: +
+
+ + +
{{:helper.link("Send message", null, {'PRG_speak' : 1})}}
+
{{else}} Controls: @@ -63,4 +70,4 @@
{{:helper.link(value.chan, null, {'PRG_joinchannel' : value.id})}}
{{/for}}
-{{/if}} \ No newline at end of file +{{/if}}