mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Added option to reset card scaling.
This commit is contained in:
parent
13d34238e2
commit
faa474dd0b
1 changed files with 14 additions and 0 deletions
|
@ -540,6 +540,10 @@ class PysolMenubarTkCommon:
|
|||
submenu.add_command(
|
||||
label=n_("&Decrease the card size"),
|
||||
command=self.mDecreaseCardset, accelerator=m+"-")
|
||||
submenu.add_command(
|
||||
label=n_("&Reset the card size"),
|
||||
command=self.mResetCardset)
|
||||
submenu.add_separator()
|
||||
submenu.add_checkbutton(
|
||||
label=n_("&Auto scaling"), variable=self.tkopt.auto_scale,
|
||||
command=self.mOptAutoScale, accelerator=m+'0')
|
||||
|
@ -1517,6 +1521,16 @@ Unsupported game for import.
|
|||
self.tkopt.auto_scale.set(False)
|
||||
self._updateCardSize()
|
||||
|
||||
def mResetCardset(self, *event):
|
||||
if self._cancelDrag(break_pause=True):
|
||||
return
|
||||
self.app.opt.scale_x = 1
|
||||
self.app.opt.scale_y = 1
|
||||
|
||||
self.app.opt.auto_scale = False
|
||||
self.tkopt.auto_scale.set(False)
|
||||
self._updateCardSize()
|
||||
|
||||
def mOptAutoScale(self, *event):
|
||||
if self._cancelDrag(break_pause=True):
|
||||
return
|
||||
|
|
Loading…
Add table
Reference in a new issue