Commit Graph
100 Commits
Author SHA1 Message Date
pztrn 9273273b49 Language selection combobox in options and accepted languages.
Added language selection combobox in options dialog. Selecting
language here will overwrite language code gathered from system.

Added AcceptedLanguages map to Translator, which holds readable
names and lang-country codes with avaailable languages. Filled
it with languages in which URTrator already translated. Francais
coming :)
2017-02-09 02:31:24 +05:00
pztrn 4890882021 README update and new screenshot :). 2017-02-09 01:21:56 +05:00
pztrn 177235c846 Merge branch 'master' of github.com:pztrn/urtrator 2017-02-09 01:17:04 +05:00
pztrn 65f6bd8b4d URTrator now can be translated. 2017-02-09 01:16:51 +05:00
pztrn 9821eb28fd README update. 2016-12-13 08:12:26 +05:00
pztrn 4020d52c03 Timer for tasks, servers autoupdating and other.
Added Timer - great package which will make periodic tasks to work.
Timer exposes "taskDone" event, which can be triggered when
task ends it's execution.

Added first periodic task - servers information updating. By
default it will execute every 10 minutes. Configurable thru
options.

Added new options pane: Servers updating. It controls all aspects
of servers updating thing. Master server address, servers
autoupdating checkbox and autoupdate timeout values are exposed
for now.

We're now on on 0.2.0-devel :).

Fixes #29.
2016-12-13 08:01:48 +05:00
pztrn 2997abf1aa All caches is now protected with mutexes. 2016-12-13 04:58:31 +05:00
pztrn 384754276a Pooler data race fix and experimental qt5 interface.
Fixed Pooler's data race which occurs on every server's pinging
goroutine creation, because of uncontrolled write to current
requests counter. Protected it with mutex.

Added very experimental and not-yet-working qt5 interface. Maybe
it will be completed someday.
2016-12-13 04:47:17 +05:00
pztrn af26eff895 Moved current UI in "gtk2" directory.
Get ready, we're migrating to Qt5 :).
2016-11-27 08:41:11 +05:00
pztrn e66875ffbe Version bump. 2016-11-26 19:32:37 +05:00
pztrn 979de8d858 Filtering by game mode implemented. 2016-11-26 16:20:57 +05:00
pztrn f0ddda1af5 "All versions" instead of "All" in version select comboboxes. 2016-11-26 16:06:33 +05:00
pztrn bd344fee2e Filter by server version and forgotten server's CVars window.
Implemented filtering servers by server's version, related to #27.
This combobox is saved-restored across restarts.

Added forgotten bd04870 server_cvars.go, which is responsible for
showing server's CVars window.
2016-11-26 16:00:17 +05:00
pztrn 7950ab5a1f macOS might have no GTK configuration, so forcing "only icons" for toolbar. 2016-11-26 09:35:59 +05:00
pztrn 3b3aae16b0 Accidently attached wrong widget. 2016-11-26 09:27:46 +05:00
pztrn a57c878dad Prettified favorites add/edit dialog. Fixes #33. 2016-11-26 09:24:36 +05:00
pztrn 474821ba7b Ooops :) 2016-11-26 09:11:51 +05:00
pztrn f32cf4d1f6 "GENERAL INFO" list item isn't needed anymore. 2016-11-26 09:10:57 +05:00
pztrn bd04870aa3 Splitted sidebar's list into two and separate CVars window.
Splitted sidebar's list into two separate lists - one for
general server's info (hostname, players, etc.) and one for
players list.

Also, moved CVars list to separate window which can be shown by
clicking approriate button under player's list.
2016-11-26 09:05:48 +05:00
pztrn 280c65f116 Distinguish bots from humans.
Players column now have three integers - first is real humans
count, second - bots count, and third - maximum players allowed
on this server. Also, sidebar will show bots count as well.
2016-11-26 07:38:26 +05:00
pztrn 32c6297765 Fixed game version combobox not selecting proper version on profile editing. 2016-11-25 04:49:19 +05:00
pztrn 190f76eb82 Fixed profiles editing crashing application if profile wasn't saved in database. 2016-11-25 04:44:46 +05:00
pztrn 5c295f08ab Prettify options window. 2016-11-25 04:31:45 +05:00
pztrn 061bfcaeb9 UI design updates.
Got rid of visible separators, replaced them with HBox and VBox.

Reworked profile add/edit window, now it looks prettier and
organic.
2016-11-25 04:11:44 +05:00
pztrn 5ca8299714 Show selected server's information on active tab changing.
URTrator will now show information about selected server on
activated tab. E.g. when you switched from "Servers" to
"Favorites", sidebar informational widget will be updated with
server's data for selected server on "Favorites" tab.
2016-11-25 03:12:05 +05:00
pztrn 9c8aa1cc34 Preparing to 0.1.0 release. 2016-11-23 10:13:01 +05:00
pztrn 5fcbd8536c Update selected server's info in sidebar after updating server's data. 2016-11-23 10:10:11 +05:00
pztrn fb7a471aec Shw message in toolbar when updating selected server's data. 2016-11-23 10:02:58 +05:00
pztrn 8c9d948a52 Fixed tooltip text for "Update all servers" button. 2016-11-23 09:53:09 +05:00
pztrn 8b44d194b5 Hide private servers checkboxes. 2016-11-23 09:49:39 +05:00
pztrn 3b0a93e63a By default srting players by name as well as cvars in sidebar. 2016-11-23 07:51:41 +05:00
pztrn b85ba0470c Fixed rendering of logo on launch button.
Also, made this logo smaller to beautify interface.
2016-11-23 07:42:58 +05:00
pztrn f127fdc9f4 Fixed players counting on servers update. 2016-11-23 07:41:14 +05:00
pztrn 5ef54d943e Removed unneded "Additional information" button. 2016-11-23 07:35:10 +05:00
pztrn 9e6cdfc869 Increased max ping requests to servers. Fixes #3. 2016-11-22 18:50:56 +05:00
pztrn bfd3f884b3 Automatic profile selection. Fixes #14.
Automatically select first added profile on every profiles list
update. Yes, quick hack. In future we will autodetect profiles
based on server version, and profiles combobox will only be
needed for quick connect.
2016-11-22 18:33:53 +05:00
pztrn 7e6b698c1c Proper sorting by servers names. Fixing #12. 2016-11-22 18:23:43 +05:00
pztrn 4516abb916 go-gtk fixed default sorting, so unlock it for all OSes. 2016-11-22 17:14:02 +05:00
pztrn e731653652 Fix for previous commit, wrong sorting call was masked on Windows. 2016-11-22 14:37:11 +05:00
pztrn e16d6fa878 Disabling setting default sort column on windows until it will
be fixed in go-gtk (https://github.com/mattn/go-gtk/issues/291).
2016-11-22 14:25:16 +05:00
pztrn 89298d894b Hello, 0.1.0-beta5! 2016-11-22 12:02:12 +05:00
pztrn 88b9b31f6a Updated README about required Go version. 2016-11-22 11:56:48 +05:00
pztrn 1fe49871f1 Proper sorting by server name. 2016-11-22 11:53:54 +05:00
pztrn 4f5bf90dbe Set 4.3.1 as default version in profiles dialog. 2016-11-22 11:38:48 +05:00
pztrn 25bebf87df Re-enabled sorting for servers lists and hide offline checkboxes default value.
Re-enabled sorting for servers lists, which forces to use devel
version of Go. 1.7.3 have problems with GC and URTrator will
segfault.

Hide offline checkboxes for all servers and favorites now
checked by default.
2016-11-22 11:36:17 +05:00
pztrn c4ed421106 Temporary disable sorting in servers list until fixed in go-gtk. 2016-11-22 10:51:48 +05:00
pztrn 0c0fcd5b24 First "sort by server name" implementation and button name fix.
First implementation of "Sort by server name" algo. Shitty, kinda
unreliable, but better than GTK's default.

Added Colorizer.Clear() func, which clears passed data from
colorcodes.

Fixed name on "Add to favorites" button.

Still cannot be successfully launched until some race conditions
will be fixed in go-gtk.
2016-11-22 09:48:19 +05:00
pztrn 4d466a9d2b Servers sorting by ping and players count.
For now only on "Servers" tab, and REQUIRES custom go-gtk build
(see https://github.com/mattn/go-gtk/issues/290#issuecomment-262127956)
2016-11-22 07:36:27 +05:00
pztrn 2cdee94efe Clipboard monitoring is here, so updating README. 2016-11-22 05:42:15 +05:00
pztrn 2b1caac8f6 Fixed caching servers not updating profile to use in database. 2016-11-22 05:03:30 +05:00
pztrn 862b336556 Windows-related build script and game launching fixes.
Fixed Windows build script to install gcc in MSYS2, which is
needed for some dependencies.

Fixed game launching on Windows, now ioq3 will search for game
data in proper directory.
2016-11-22 04:56:18 +05:00
pztrn 90f888bdfb Toolbar icons is now (temporary) hardcoded. 2016-11-22 03:30:58 +05:00
pztrn a132ee0f7b Fixed icons loading and changed icons from svg to png. 2016-11-22 02:55:48 +05:00
pztrn 8b06dff083 Forcing icons for servers lists. 2016-11-22 02:15:07 +05:00
pztrn ea8bdde224 Temporary disabled all modals on Linuxes due to mattn/go-gtk#289. 2016-11-22 01:10:31 +05:00
pztrn 6495e90737 gdk_threads are deprecated, as well as glib_threads. 2016-11-21 03:32:22 +05:00
pztrn 3e89df1009 Missing return definition for functions in prev commit. 2016-11-21 02:52:26 +05:00
pztrn c00ff2cea5 Check window position and size and hpane size in glib thread. 2016-11-21 02:49:05 +05:00
pztrn 93d2bb7fc1 Reverting moving LockOSThread to main module. 2016-11-21 02:43:05 +05:00
pztrn 0392f510f5 Moved runtime.LockOSThread() to urtrator.go. 2016-11-21 01:33:04 +05:00
pztrn 57a5f7cb4c Bumping to beta4. Not tagging, as Windows fix is coming. 2016-11-21 01:19:06 +05:00
pztrn 8a3f2a9a2e Stop updating servers if we're failed to connect to master server. 2016-11-04 19:37:50 +05:00
pztrn 4e9a6ae970 GLib threads initialization. 2016-11-04 18:46:07 +05:00
pztrn 7f80f99529 GTK actions fix WIP and icon size fix.
Again, possibly fixed GTK actions calls from other goroutines
by wrapping events calls in glib.IdleAdd(). This should prevent
executing more than one event simultaneously, which will also
prevent crashes.

Fixed icons sizing for couple of icons.
2016-11-04 18:28:52 +05:00
pztrn b1d38bbdcf Possibly solved crashes on GTK's actions. 2016-11-02 22:28:15 +05:00
pztrn e487b8521c Fixed clipboard watcher not watching after copying server's creds. 2016-10-13 02:40:27 +05:00
pztrn e12c76e424 Saving passwords for favorited private servers. 2016-10-12 23:26:43 +05:00
pztrn 640020d23f Fixed server name putting into status label.
Some server's names (like Turnpike City) was tructating without
preserving Pango markup integrity. This commit fixes it.
2016-10-12 22:18:36 +05:00
pztrn a64c842e19 Messageboxes fixes and copy server's creds to clipboard.
Fixed all messageboxes that can use struct object as self name
(e.g. m for messageboxes in mainwindow). Should help to avoid some
errors.

Added possibility to copy server's credentials into clipboard
for ease of sharing.
2016-10-12 19:23:10 +05:00
pztrn 1330699f41 Favorites servers and profiles fix.
If favorite server for some reason have no profile defined - pop up
an error message and do nothing.
2016-10-11 20:07:10 +05:00
pztrn a97b041679 Improved clipboard watching mechanism.
And it will look only within first string in clipboard.
2016-10-11 19:49:02 +05:00
pztrn 68bd842c1f First variant of clipboard watching. 2016-10-11 13:14:08 +05:00
pztrn 9be55c982e Beta3 is here. 2016-10-11 00:18:10 +05:00
pztrn 35097c3805 Changed order for applying OS-specific workarounds. 2016-10-11 00:14:37 +05:00
pztrn 3537b05dce Moved windows actions to mainwindow_init_win.go. 2016-10-11 00:14:00 +05:00
pztrn 56c0d2787a Mac GTK+2 theme initialization fix. 2016-10-10 21:19:04 +05:00
pztrn f8b29a03d3 Added initial Windows build script. 2016-10-10 21:09:05 +05:00
pztrn eaaa8b565f Windows: import fixes. 2016-10-10 20:21:10 +05:00
pztrn e817a8fe64 Windows theming with default theme. 2016-10-10 20:18:59 +05:00
pztrn 1a15c6cd4d Added Windows-related initialization things. 2016-10-10 20:11:41 +05:00
pztrn 2746e0e315 Options window tabs moved to left. 2016-10-10 19:22:21 +05:00
pztrn 2784586f8d More Mac integration works - now it is able to load and use GTK+
themes. Configuration interface on ToDo.

This also indicates that URTrator is now able to perform basic
window theming.
2016-10-10 19:16:51 +05:00
pztrn 25dfa5072b Add "-a" to macOS's open command.
On my machine this prevents terminal window to be opened.
2016-10-09 21:27:17 +05:00
pztrn df4d6a3cca macOS fixes for profiles and launching. Version bump.
More fixes here. First, fixed binary path parsing for profiles,
so you should be able to add a profile on macOS now. Only one
requirement - you should add Quake3-UrT.x86_64 file, which located
inside Urban Terror's application bundle, under Contents/MacOS
directory.

Fixed the way we call Urban Terror on macOS and tested it. Should
work now flawlessly.

Bumped to 0.1.0-beta2, and mac-only release for now.
2016-10-09 17:06:47 +05:00
pztrn eaffb1f1ab Oops, wrong removing of wrong import. Now fixed. 2016-10-09 13:27:16 +05:00
pztrn c5349ab336 Unused import removed. 2016-10-09 13:25:43 +05:00
pztrn f283e93719 One more possible fix. 2016-10-09 13:23:59 +05:00
pztrn bbe03c485e Prossible MacOS launch fix. 2016-10-09 13:15:19 +05:00
pztrn f793b2f467 Updated macOS build script and some README update. 2016-10-09 03:29:36 +05:00
pztrn 1278b71798 Bump to 0.1.0-beta1. 2016-10-09 01:32:17 +05:00
pztrn 662f12aa4b Fixed launching URTrator if server name have no markup. 2016-10-09 01:31:53 +05:00
pztrn 64b87d3a8b Completely fixed favorited servers. You may want to re-edit them. 2016-10-09 01:29:46 +05:00
pztrn e12bcdd386 Fixed favorite server addition and saving. 2016-10-09 01:23:38 +05:00
pztrn 1b3b7bccf8 macOS building script added. 2016-10-09 01:02:21 +05:00
pztrn 3a2a826d5b Added artwork. 2016-10-09 00:40:36 +05:00
pztrn 12a5605276 Fix for windows not to show console on launch. 2016-10-08 23:57:21 +05:00
pztrn e2a9298f85 One more huge refactoring and quick connect widget working.
Refactored the way URTrator working with profiles - now everything
that could be taken from internal cache will be taken from cache.
The very same as with servers.

Moved all callbacks from callbacks to events, so we achieve full
asynchronity here and can launch anything in goroutines :).

Moved MainWindow-related game launching functions into another
file (mainwindow_launch.go).

Made quick connect widget working. Note, that even if you're on
Favorites and trying to connect to one of favorited servers but
with quick connect - you still have to choose right profile
near Launch button!

Maybe something else I forget.
2016-10-08 19:57:33 +05:00
pztrn 4421e29695 Fixed handling offline servers.
Fixed handling offline servers and "Hide offline servers" checkbox,
now we will hide servers that was online but went offline properly.
2016-10-08 12:24:03 +05:00
pztrn cc20dca39c Favorites dialog server updates.
Favorites dialog now able to fetch server's information and
update list of available game profiles.
2016-10-08 00:29:46 +05:00
pztrn ac57e6376c Fixed favorite servers updating crash when nothing was selected on Servers tab. 2016-10-08 00:01:20 +05:00