Commit Graph
93 Commits
Author SHA1 Message Date
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
pztrn 3fc873ff2b Screenshot update :) 2016-10-07 22:27:32 +05:00
pztrn e46d203a3c Many fixes and debug prints removed.
Removed debug prints, as we don't really need them now.

Fixed database updating from cache, until now only inserts was working
fine, updates failing. All because of forgotten comma :(.

Reworked handling of icons in servers lists, now they didn't
recreated, but reused from created on application start. Can also
save us much memory for long runs.

Moved gamemode detector to mainwindow_helpers, where it should be.
2016-10-07 22:21:19 +05:00
pztrn 1fc5b925f6 Update selected server button - fixed label. 2016-10-07 21:34:15 +05:00
pztrn 50dc62605b Fixed lists columns addition on first start. 2016-10-07 21:31:42 +05:00
pztrn 6de1359e5d README update. 2016-10-07 21:27:23 +05:00
pztrn 13e091d52b Refactored mainwindow source, columns size and pos remembering.
Refactored MainWindow source, splitted initialization and
helper functions into separate files.

Now lists headers sizes and positions are remembered and correctly
restored on launch.
2016-10-07 21:14:48 +05:00
pztrn 296e495fbf About dialog fixes and lists columns upgrades.
About dialog should now be fixed everywhere. Previously it
causes crash on macOS and Windows. See https://github.com/mattn/go-gtk/issues/282

Columns now can be rearranged and resized. No saving or restoring yet.
2016-10-07 17:23:50 +05:00
pztrn def03ee25d Lock thread to database, so it should not crash anymore. 2016-10-07 14:57:01 +05:00
pztrn 102891c217 Renamed column which shows private or public from Private to Public. 2016-10-07 14:33:06 +05:00
pztrn 464946b7f6 Favorites servers fix, one server update and show privates.
Fixed favorites servers - they now correctly added/removed in/from cache,
and also fixed favorite server edition dialog, which now also takes
advantage from server's cache.

Added new toolbar button for updating one server. It works :).

Added new column in servers lists, which shows is server is private or public.
2016-10-07 14:28:44 +05:00
pztrn 51b23fa68f More debug output and servers refresh fix.
Fixed servers lists refresh. Despite on what list we're updating
(all servers or only favorites) server item should be updated in
both.
2016-10-07 02:50:52 +05:00
pztrn baf733f171 Do not crash if we selected server that didn't sent it's info. 2016-10-06 23:05:02 +05:00
pztrn 5ad43b5613 Fixed show/hide offline servers. 2016-10-06 22:43:45 +05:00
pztrn ceaaf67510 Urban Terror launch check on shutdown.
Added checking if Urban Terror launched while trying to shut down
URTrator. If yes - we will show error message and won't quit,
until Urban Terror will be dead.
2016-10-06 22:19:03 +05:00
pztrn e87d51b1e3 New file with constants. And we're now 0.1-beta :). 2016-10-06 21:45:09 +05:00
pztrn 8cfbca284e Players parsing fixes and short info done.
Fixed players parsing in server's response, now we can show 0 players.

Showr info (kinda) completed, general server info, players and vars
are here. Some work on sorting is in ToDo.
2016-10-06 21:34:14 +05:00
pztrn 5ba0664964 Server info preview started. 2016-10-06 20:48:35 +05:00
pztrn 11e3e4edb7 Show server name we connected in toolbar's label.
Also updated screenshot to show how it looks like.
2016-10-06 17:59:10 +05:00
pztrn 0214ea7fce Toolbar label added.
It will show current operation or why you can't do something.
2016-10-06 17:50:08 +05:00
pztrn 2efd47c301 Servers updating and ping detection fixes.
On servers updating when all data successfully gathered we're now
properly updating rows in Servers and Favorites lists.

Increased "simultaneous ping limit" for now, but anyway it provides
too bad results. Need to find a way to fix it.
2016-10-06 17:11:36 +05:00
pztrn 9ce4ad8945 No need in strconv now. 2016-10-06 16:33:12 +05:00
pztrn 99435a769f Profiles handling fixes.
Fixed profile update with some fields changed, now it won't show
error dialog.

Removed "Second X session" checkbox column from profiles list,
have no idea (for now) how to properly use them.
2016-10-06 16:31:31 +05:00
pztrn 8691975dca 4.3.1 support. 2016-10-06 15:44:24 +05:00
pztrn f0c002b69a Some questions arises, answer added. 2016-10-06 15:04:55 +05:00
pztrn 6853fa6978 Updated screenshot with server's hostname colorizing :). 2016-10-06 15:03:34 +05:00
pztrn f37dd3adfd Huge refactor regarding concurrency.
Now we have pooler which will pool connections (like pinging),
so there will be no timeouts due to "we have launched 100000 goroutines".

Reworked all code to use events (see Eventer). Still more work about
this to go.

Maybe more fixes I forgot.
2016-10-06 13:55:03 +05:00
pztrn dd41537106 Hostname's colorizing is here. Added stub for server info window. 2016-10-05 20:46:02 +05:00
pztrn 98598e41e3 Possible Windows support. 2016-10-05 14:05:37 +05:00
pztrn 9ed4eb4e2c README update. 2016-10-05 13:13:28 +05:00
pztrn 37c17f395f Main window screenshow updated. 2016-10-05 12:58:00 +05:00
pztrn 047980e68b More database fixes.
Fixes inserting new and updating already cached server's data. Now
we will put all strings here.
2016-10-05 02:51:18 +05:00
pztrn c22744765b Favorites and database fixes, players info and extended server config.
Adding a favorite server now requires created valid profile. It will
not allow to create favorite server without proper profile.

Fixed servers updating database, now they put all fields there.

Added stubs for players info and extended server config things in
database.
2016-10-05 02:47:13 +05:00
pztrn dbf5b60ead Window and elements size and position saving and restore. 2016-10-05 02:16:02 +05:00
pztrn 8e58104cfa Configuration and tray icon.
Configuration is now properly saved for parameters in Options window.
Also they are restored fine.

Added tray icon with two default actions: show/hide and exit. More
to come.
2016-10-05 01:03:46 +05:00
pztrn 0f5dd8f236 Editing favorites done. 2016-10-05 00:04:24 +05:00
pztrn 26a3ead52a Don't rely on current_tab == "some_string", since we might change tab name. 2016-10-04 23:51:37 +05:00
pztrn 063f6a622a Favorites and fixes.
Favorites functionality done, except editing favorite server.
Note, that game profile defined for favorite server have
higher priority on normal profile selected in combobox near
"Launch!" button. Later WILL be ignored.

Bunch of fixes is added.
2016-10-04 23:39:32 +05:00
pztrn d6765501a8 Tooltips to every element! 2016-10-04 19:21:48 +05:00
pztrn 1394724a43 Sources updating info in README. 2016-10-04 19:00:44 +05:00
pztrn 0170cd5bb6 Screenshots :) 2016-10-04 18:56:13 +05:00
pztrnandGitHub cf0437c1a2 Merge pull request #1 from gitter-badger/gitter-badge
Add a Gitter chat badge to README.md
2016-10-04 19:49:52 +06:00
pztrn a9ff3ddfe5 macOS works - profiles. 2016-10-04 18:47:47 +05:00
pztrn 4e6cca530b Fix segfault on macOS when port wasn't properly parsed. 2016-10-04 18:38:58 +05:00
pztrn 812436fce3 4.3.0 version fix and macOS data path.
Fixed my typo with 4.3. version - it is detected as 4.3.0, not 4.3.000.

Possibly, macOS version is now true :).
2016-10-04 18:32:50 +05:00
pztrn b7e79ce01b SetHeadersClickable is only allowed with custom go-gtk. 2016-10-04 18:22:27 +05:00
pztrn cff72734c6 Urban Terror is now launching, in local X or in another. 2016-10-04 18:09:14 +05:00
pztrn ac938c16eb Initial commit, what works:
* Servers update
* Profile creation/edit/deletion
* Game launching
* Checks server version <> profile version.
2016-10-04 15:42:36 +05:00