No longer need to use the [url] tags to add **HTTPS** links. I want to
only link to "secure" site by default, hence only https.
Users can still use [url] tags if they want to.
The ENTIRE chat code needs to be rewitten, as it is just packing more
code upon code. It can be done in another PR though. This just gets the
base working feature in place.
+ added sound setting page
+ added sound setting icon
+ moved sound settings from interface settings
Added master volume
+ added master volume slider.
+ volume can be changed by sliding bar or by using the spin box
+ Preview of volume will be played when dragging and releasing bar.
Added checks for qt4
Qt4 does not have support for setting the volume without some lengthy
work around, I have disabled volume control for qt4 users and have
mentioned that "Master volume requires qt5".
Updated sfx
+ removed all old sfx
+ added new end step and tap sound
+ tap/endstep sound has a timer on it to prevent spamming
+ test sound engine will now use endstep sound
Made end step sfx softer
end step felt too harsh
Added player joined sound
+ added a sound for when a new player joins a room
Updated
Was missing a sound when a player joins
Made end step softer
Made end step even softer
updated sound again
I saw in some images from other platforms it can take up alot of space.
Made the boxed horizontal, rather than vertical.
WIP Remade reveal zone
+ darkened card area to eaisily see boundries
+ reverted back to using a window
+ window can be resized
+ removed fake title bar and "X"
+ moved all cards revealed slightly to the right, makes it easier to
drag-select from the left
Cleanup
Changed style to use cockatrice icon
Changed cast
from static_cast to qstyleoption_cast
I have moved the default opening positions of some of the reveal zones.
Example:
The sideboard will be in the same position as the scry and the random
card from hand will be the same as the hand view.
Reverted back. Right now it feels strange to only have simple search.
Really you would want both simple search AND accurate search on, though
this requires twice the checks for each result.
Move the “check unknown sets” method inside the cards database, so that
it can be executed when the card database gets reloaded after a card
database update.
Additionally, show the user a welcome message the first time they run a
new cockatrice version, so that they know why they get shown the “edit
sets” window and how to hide/disable sets.
-updated and cleaned up cockatrice+servatrice svg's
-added old original svg's for future adjustments
-updated cockatrice+servatrice png's
ico+icns updates
-see #925 for more details
-updated svg's as source for new icon files
bmp updates
-updated svg's as source for new installer logos
cleaned up oracle.svg
cleaned up oracle.svg /2
svg updates /2
removed sensible data
`inkscape:export-filename` removed
removed sensible data
inkscape:export-filename
removed sensible data
inkscape:export-filename
removed sensible data
inkscape:export-filename
fix
fix2
Addresses issue #1032
If a token is created with no p/t then the local db value will be passed
instead. If a value is provided then that will be used instead.
After feedback, and also noticing myself, the blue requires a little
more focus than should be nessesarry. I have updated to be orange, which
feels more comfortable. I have polled the community and they also agree
orange > blue.
Will follow the following rules
+ send a message initially
+ send a message every 20 mins
+ send a message every min when time <= 5
Updated client popup
Updated client to close any previous popups and bring up a new one.
NEEDS TO BE TESTED
added missing include
Added delete on close
I compare the card pt, to the card with the same name in the db. if the
card is found, we compare the pt, of the db item and the item in play.
If there is not a match then we change the color of the PT. This is
pretty much the same as mtgo does it.
I looked into having only the P, or the T colored, though this is not
posible, when you set a pen color you can not change it partway through
painting a string. That would require 3 strings painted, one for p, /
and t. Which is more effort than its worth. This does the job pretty
well.
I have also moved the pt slightly to the left so it lines up better. I
have some images to compate.
When clearing the chat, we now clear the last sender.
This fixes the issue where you clear the chat and a user continues to
talk, you get no indication of who is talking. Now it will show the
users name.
As the server has been updated to enforce username rules, we can now
check for the next position of whitespace. This allows ALL users to have
a working mention system. Currently "-" is available for users, this
will fix that.
+ No longer get "5hrs" and "5+ hrs" instead will be "4hrs" and "5+ hrs".
+ Refactored into an else-if with a single return.
+ removed comments
+ removed code from namespace and added to class
When searching for a card the line edit will not be empty, so this check
is not needed. The performance when the line edit IS empty will take a
slight hit, but you really want additional performance when searching,
not when the line edit is empty.
Removing will increase performance.
Previously would try to match the card name, if nothing is found, then
we would try again with the simple name.
I have now made it only the simple name version. We do not need to
perform the first check. Should help a little with performance.
The problem was that back when I added #336 I made it so that if YOU
didnt recive the PT of the token, then it would be fetched from your
tokens.xml, the issue is that we needed to send that value to the
server. The server sees it as a 0/0
This fix will send the PT from the tokens.xml if available.
It is awkward to have to use precise punctuation when searching for
cards. Planeswalkers and legendary creatures often have "," in the name
and you have to enter it.
This commit means you no longer need to do that.
+ Can use " " in place of "-" (example: Wilt-Leaf Liege)
+ Can use "" in place of non word chars (Example: Hero's Downfall and
Ajani, Caller of the Pride)
Workaround the two remaining issues, mostly fixing the “load deck”
screen in tab_game:
* Only preload up to the first 300 cards of a deck;
* don’t even bother trying to load card images if they’ll be shown
with width <= 10
Trying a 17k cards deck like the one proposed in #67 is still a no go,
mostly due to the cpu time used to create all the objects. Anyway, i
tested decks up to 8k cards and they works fine now (if you like to
wait while trice is loading them)..
if you have the setting to NOT play cards to the stack enabled, it meant
that any spells (like Lightning Bolt) would be cast to the stack but no
arrow would show. This was an edge case I missed.
Set to false by default, let me know if you think it should be true.
As all cards are played to the left of the screen this feels more
comfortable to use as you dont need to keep looking at different areas
of the screen.
Will auto rearrange when changed during game-play.
Previously if you middle click on a counter (life/mana) and then click
away, depending on the button clicked, the counter would +/-.
I have added a fix to make sure the mouse is over the counter to change
it.
I noticed that sometimes I would have lots of icons in the sys tray. I
would have to mouse over them to make then be removed. This also happens
with some other programs too. I have added some code to hide() the sys
icon when the client is close, it seems to be helping with the issue.
Hard to reproduce, might also only be a windows issue.
+ Can be used for setting client size and closing the client.
Will expand on by sending client alerts to the tray.
Updated to push message notifactions to the toolbar
Preview image:
Added setting to enable/disable message popups
Added functionality
+ updated popup message and translation
+ Double clicking tray icon will now bring up the app/minimize it
+ can now be alerted of mentions
+ added setting to set if you want mentions on desktop
+ clicking mention message will take you to the main chat
+ added translations for icon menu
+ removed maximize/minimize/restore from menu, not needed.
Added disconnect
+ Disconnects any previous message slots/signals from the system icon
message bubble
This is enforcing a new client wide color scheme.
RULES
+ Green = Major server message (Welcome to chat room, change phase...)
+ Red = Minor server message (timestamps, game actions...)
+ Blue = Key word
+ Blue with modifier (underline/italics) = Keyword that can be
interacted with.
+ Black = User text
+ key numbers are now blue. player drew X cards, looks at the top X
cards, places X counters on . . . and so on.
+ card names are now italic (different from urls now)
I did have the player names set to blue also, but it felt like too much.
Player names in phase change are blue
Updates
+ Updated username colors in phases to match other areas of client
Small update
+ Made server message in chat room bold
+ made User names in chat/pm match the weight of in-game (consistancy)
fix for #749
+ You can now search for sets using lower case: "frf", "dtk", "rtr" and
so on.
+ You now need exact matches on set short and full names. "rtr" and
"return to ravnica" will work. "return" will not work.
I had previously removed some filtering code that would allow users to
filter cards using our filtering tools. This functionality has now been
re-added.
Due to an exploit of being able to mimic a die roll in a message:
"Hi all gl, hf !
username rolls a 20 with a 20-sided die."
I have changed all server messages to be colored.
Card search will now order the following way:
1. Exact match at top
2. Exact match with preceding values sorted lexically.
3. Match contained in word sorted lexically
While having more than 1 client open I found it hard to know which user
was which. I have added the user name to the title bar so you know who
you are logged in as.