Add parameters to addTopEdgeSettings() for changed defaults
This commit is contained in:
parent
ba3cacbf93
commit
d0356a12a3
|
@ -24,7 +24,8 @@ class TypeTray(_TopEdge):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
Boxes.__init__(self)
|
Boxes.__init__(self)
|
||||||
self.addTopEdgeSettings()
|
self.addTopEdgeSettings(fingerjoint={"surroundingspaces": 0.5},
|
||||||
|
roundedtriangle={"outset" : 1})
|
||||||
self.buildArgParser("sx", "sy", "h", "hi", "outside", "bottom_edge",
|
self.buildArgParser("sx", "sy", "h", "hi", "outside", "bottom_edge",
|
||||||
"top_edge")
|
"top_edge")
|
||||||
self.argparser.add_argument(
|
self.argparser.add_argument(
|
||||||
|
|
|
@ -25,7 +25,7 @@ class UniversalBox(_TopEdge, _ChestLid):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
Boxes.__init__(self)
|
Boxes.__init__(self)
|
||||||
self.addTopEdgeSettings()
|
self.addTopEdgeSettings(roundedtriangle={"outset" : 1})
|
||||||
self.addSettingsArgs(edges.FlexSettings)
|
self.addSettingsArgs(edges.FlexSettings)
|
||||||
self.buildArgParser("top_edge", "bottom_edge", "x", "y", "h")
|
self.buildArgParser("top_edge", "bottom_edge", "x", "y", "h")
|
||||||
self.argparser.add_argument(
|
self.argparser.add_argument(
|
||||||
|
|
|
@ -90,14 +90,16 @@ class _ChestLid(Boxes):
|
||||||
|
|
||||||
class _TopEdge(Boxes):
|
class _TopEdge(Boxes):
|
||||||
|
|
||||||
def addTopEdgeSettings(self):
|
def addTopEdgeSettings(self, fingerjoint={}, stackable={}, hinge={},
|
||||||
self.addSettingsArgs(edges.FingerJointSettings)
|
cabinethinge={}, lid={}, click={},
|
||||||
self.addSettingsArgs(edges.StackableSettings)
|
roundedtriangle={}):
|
||||||
self.addSettingsArgs(edges.HingeSettings)
|
self.addSettingsArgs(edges.FingerJointSettings, **fingerjoint)
|
||||||
self.addSettingsArgs(edges.CabinetHingeSettings)
|
self.addSettingsArgs(edges.StackableSettings, **stackable)
|
||||||
self.addSettingsArgs(edges.LidSettings)
|
self.addSettingsArgs(edges.HingeSettings, **hinge)
|
||||||
self.addSettingsArgs(edges.ClickSettings)
|
self.addSettingsArgs(edges.CabinetHingeSettings, **cabinethinge)
|
||||||
self.addSettingsArgs(edges.RoundedTriangleEdgeSettings)
|
self.addSettingsArgs(edges.LidSettings, **lid)
|
||||||
|
self.addSettingsArgs(edges.ClickSettings, **click)
|
||||||
|
self.addSettingsArgs(edges.RoundedTriangleEdgeSettings, **roundedtriangle)
|
||||||
|
|
||||||
def topEdges(self, top_edge):
|
def topEdges(self, top_edge):
|
||||||
t1 = t2 = t3 = t4 = self.edges.get(top_edge, self.edges["e"])
|
t1 = t2 = t3 = t4 = self.edges.get(top_edge, self.edges["e"])
|
||||||
|
|
Loading…
Reference in New Issue