Recreating History p10
This commit is contained in:
parent
61b452af05
commit
4ca445a55c
1 changed files with 6 additions and 8 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
# Burning Wheel - Spell Burner
|
# Burning Wheel - Spell Burner
|
||||||
# By 2Shirt (Alan Mason)
|
# By 2Shirt (Alan Mason)
|
||||||
#
|
#
|
||||||
# Version 0.10a
|
# Version 0.11a
|
||||||
from tkinter import *
|
from tkinter import *
|
||||||
from tkinter import ttk
|
from tkinter import ttk
|
||||||
from math import ceil, floor, log
|
from math import ceil, floor, log
|
||||||
|
|
@ -461,7 +461,6 @@ class WeaponStats():
|
||||||
self.vaLabel.grid(column=7, row=self.row+1, sticky=(W, E))
|
self.vaLabel.grid(column=7, row=self.row+1, sticky=(W, E))
|
||||||
self.vaValueLabel = ttk.Label(self.frame, textvariable = self.wVA)
|
self.vaValueLabel = ttk.Label(self.frame, textvariable = self.wVA)
|
||||||
self.vaValueLabel.grid(column=8, row=self.row+1, sticky=(W, E))
|
self.vaValueLabel.grid(column=8, row=self.row+1, sticky=(W, E))
|
||||||
self.frame.configureGrid()
|
|
||||||
else:
|
else:
|
||||||
# hide widgets
|
# hide widgets
|
||||||
try:
|
try:
|
||||||
|
|
@ -478,7 +477,6 @@ class WeaponStats():
|
||||||
|
|
||||||
self.vaLabel.destroy()
|
self.vaLabel.destroy()
|
||||||
self.vaValueLabel.destroy()
|
self.vaValueLabel.destroy()
|
||||||
self.frame.configureGrid()
|
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
@ -522,7 +520,7 @@ class WeaponStats():
|
||||||
else: #self.tmp['Power'] < 0:
|
else: #self.tmp['Power'] < 0:
|
||||||
self.wPower.set('Will - ' + str(abs(self.tmp['Power'])))
|
self.wPower.set('Will - ' + str(abs(self.tmp['Power'])))
|
||||||
self.wRange.set(str(max(0,self.tmp['Range'])) + 'D')
|
self.wRange.set(str(max(0,self.tmp['Range'])) + 'D')
|
||||||
self.wVA.set(self.tmp['VA'])
|
self.wVA.set(str(max(0,self.tmp['VA'] + self.frame.majObTotal - self.frame.numMin)))
|
||||||
else:
|
else:
|
||||||
self.enabled = False
|
self.enabled = False
|
||||||
|
|
||||||
|
|
@ -556,7 +554,7 @@ class App(ttk.Frame):
|
||||||
|
|
||||||
def addMajorisSigil(self, *args):
|
def addMajorisSigil(self, *args):
|
||||||
self.majorisStartRow = self.majorisStartRow + 1
|
self.majorisStartRow = self.majorisStartRow + 1
|
||||||
if len(self.majorisSigils) < majorisMaxRows:
|
if len(self.majorisSigils) < self.majorisMaxRows:
|
||||||
self.majorisSigils.append(MajorisSigil(self, self.majorisStartRow))
|
self.majorisSigils.append(MajorisSigil(self, self.majorisStartRow))
|
||||||
self.configureGrid()
|
self.configureGrid()
|
||||||
|
|
||||||
|
|
@ -569,9 +567,6 @@ class App(ttk.Frame):
|
||||||
self.distiller2.updateStats()
|
self.distiller2.updateStats()
|
||||||
self.distiller3.updateStats()
|
self.distiller3.updateStats()
|
||||||
|
|
||||||
### Weapon Stats ###
|
|
||||||
self.weapon.updateStats()
|
|
||||||
|
|
||||||
### Final Spell ###
|
### Final Spell ###
|
||||||
# Init Variables
|
# Init Variables
|
||||||
if self.capValue.get():
|
if self.capValue.get():
|
||||||
|
|
@ -669,6 +664,9 @@ class App(ttk.Frame):
|
||||||
self.warningLabelText.set(' ')
|
self.warningLabelText.set(' ')
|
||||||
else:
|
else:
|
||||||
self.warningLabelText.set('[HOUSE RULED]')
|
self.warningLabelText.set('[HOUSE RULED]')
|
||||||
|
|
||||||
|
### Weapon Stats ###
|
||||||
|
self.weapon.updateStats()
|
||||||
self.configureGrid()
|
self.configureGrid()
|
||||||
|
|
||||||
def createWidgets(self):
|
def createWidgets(self):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue