mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-09 15:54:47 -07:00
make cards on the stack slightly overlap to stress order (#4930)
* make cards on the stack slightly overlap to stress order dragging cards to the stack now places the card at the location it is dropped * make default play action append to stack * add vertical overlap to settings and vertical hand * Update cockatrice/src/dlg_settings.cpp Co-authored-by: tooomm <tooomm@users.noreply.github.com> * Fix format --------- Co-authored-by: tooomm <tooomm@users.noreply.github.com> Co-authored-by: ZeldaZach <zahalpern+github@gmail.com>
This commit is contained in:
parent
28f80e18a0
commit
fa727524dc
11 changed files with 104 additions and 49 deletions
|
|
@ -262,6 +262,7 @@ SettingsCache::SettingsCache()
|
|||
ignoreUnregisteredUserMessages = settings->value("chat/ignore_unregistered_messages", false).toBool();
|
||||
|
||||
scaleCards = settings->value("cards/scaleCards", true).toBool();
|
||||
verticalCardOverlapPercent = settings->value("cards/verticalCardOverlapPercent", 33).toInt();
|
||||
showMessagePopups = settings->value("chat/showmessagepopups", true).toBool();
|
||||
showMentionPopups = settings->value("chat/showmentionpopups", true).toBool();
|
||||
roomHistory = settings->value("chat/roomhistory", true).toBool();
|
||||
|
|
@ -332,6 +333,12 @@ void SettingsCache::setCardScaling(const int _scaleCards)
|
|||
settings->setValue("cards/scaleCards", scaleCards);
|
||||
}
|
||||
|
||||
void SettingsCache::setStackCardOverlapPercent(const int _verticalCardOverlapPercent)
|
||||
{
|
||||
verticalCardOverlapPercent = _verticalCardOverlapPercent;
|
||||
settings->setValue("cards/verticalCardOverlapPercent", verticalCardOverlapPercent);
|
||||
}
|
||||
|
||||
void SettingsCache::setShowMessagePopups(const int _showMessagePopups)
|
||||
{
|
||||
showMessagePopups = (bool)_showMessagePopups;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue