Giter VIP home page Giter VIP logo

better.serverbrowser's Introduction

I'm a h̶͓̕u̸̬̇m̷͕̊a̶̝̋n̴̰͐ that likes to p̸̼̋r̶̖̿ö̶̱́ğ̷̠r̷͕͋a̸̧͠ḿ̶̲ and sometimes even enjoys l̴̩͂i̴̝̐f̴̲̊e̶̻̊.

Feel free to contact me about anything on my 🐦Twitter, for more serious things i have an 📧e-mail ([email protected]).

better.serverbrowser's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

better.serverbrowser's Issues

Fix string.find

I did play around with string.find yesterday and it seems it returns first occurrence or null if not found (see http://squirrel-lang.org/squirreldoc/reference/language/builtin_functions.html#string)
If you did what I did if (str.find(subStr) that would explains why your string.find did only works like 10% of the time.
Tested it and if (str.find(subStr) != null) { /* filter matched */ } works perfectly fine for me.

Won't open a PR for this, just leaving it here in case you want to clean up your code.

Difficult to tell which things are buttons

If possible it would be better to give the buttons an inactive background colour, or outline, or something that makes them stand out from just regular text, more specifically the "DESCRIPTION" and "MODS" buttons don't look like they are buttons

Update list on filter text change instead of enter pressed

Instead of listening for the enter key to filter the displayed servers its possible to use Hud_AddEventHandler( element, UIE_CHANGE, Callback ) on the text box (found that after some digging in other files).
Could then filter every time the box changes, not only if the user presses enter.
Only concern would be that if the server list is like SUPER long, it might lead to performance issues if its filtered every time the user types a single character into the filter box.

This would also free the enter key for other purposes (like connect to selected server), but I don't think there is a need for that.

Could add that myself, if you want.

Keyboard Nav does strange things

Just open the server browser and press arrow up (or down) till you reach either end of the list, then press the same arrow key again (maybe more than once) as if you wanted to navigate further in the same direction.
It will connect you to a server (I'm pretty sure its the one at the end of the list I navigated to).

Its not possible to navigate the filter settings using the keyboard.
Also if any of the filter settings fields has focus and you do use the arrow keys it scrolls the list.
I think that could be fixed by check if any server list element has focus and only if so reacting to keyboard input by scrolling.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.