-
Notifications
You must be signed in to change notification settings - Fork 1
Home
The useStyle is a variable that is obtained from the ACTIVE
state. Here's the corresponding code snippet:
replaces['<USESTYLE>'] = "useStyle.get(ACTIVE)"
The useTime is a variable converted to a string obtained from some source (not specified in the code snippet). Here's the corresponding code snippet:
replaces['<USETIME>'] = "str(useTime.get())"
The useAnimation is a variable converted to a string obtained from some source (not specified in the code snippet). Here's the corresponding code snippet:
replaces['<USEANIMATION>'] = "str(useAnimation.get())"
The autoReuse is a variable converted to a lowercase string obtained from some source (not specified in the code snippet). Here's the corresponding code snippet:
replaces['<AUTOREUSE>'] = "str(autoReuse.get()).lower()"
The damageType is a variable obtained from the ACTIVE
state. Here's the corresponding code snippet:
replaces['<DAMAGETYPE>'] = "damageType.get(ACTIVE)"
The damage is a variable converted to a string obtained from some source (not specified in the code snippet). Here's the corresponding code snippet:
replaces['<DAMAGE>'] = "str(damage.get())"
The knockback is a variable converted to a string obtained from some source (not specified in the code snippet). Here's the corresponding code snippet:
replaces['<KNOCKBACK>'] = "str(knockback.get())"
The crit is a variable converted to a string obtained from some source (not specified in the code snippet). Here's the corresponding code snippet:
replaces['<CRIT>'] = "str(crit.get())"
The goldcost is a variable converted to a string obtained from some source (not specified in the code snippet). Here's the corresponding code snippet:
replaces['<GOLDCOST>'] = "str(goldcost.get())"
The rarity is a variable obtained from the ACTIVE
state. Here's the corresponding code snippet:
replaces['<RARITY>'] = "rarity.get(ACTIVE)"
The sound is a variable obtained from the ACTIVE
state. Here's the corresponding code snippet:
replaces['<SOUND>'] = "sound.get(ACTIVE)"
The axe is a variable converted to a string obtained from some source (not specified in the code snippet). Here's the corresponding code snippet:
replaces['<AXE>'] = "str(axe.get())"
The hammer is a variable converted to a string obtained from some source (not specified in the code snippet). Here's the corresponding code snippet:
replaces['<HAMMER>'] = "str(hammer.get())"
The pick is a variable converted to a string obtained from some source (not specified in the code snippet). Here's the corresponding code snippet:
replaces['<PICK>'] = "str(pick.get())"
The tileBoost is a variable converted to a string obtained from some source (not specified in the code snippet). Here's the corresponding code snippet:
replaces['<TILEBOOST>'] = "str(tileBoost.get())"
The channel is a variable converted to a lowercase string obtained from some source (not specified in the code snippet). Here's the corresponding code snippet:
replaces['<CHANNEL>'] = "str(channel.get()).lower()"
The noMelee is a variable converted to a lowercase string obtained from some source (not specified in the code snippet). Here's the corresponding code snippet:
replaces['<NOMELEE>'] = "str(noMelee.get()).lower()"
The noUseGraphic is a variable converted to a lowercase string obtained from some source (not specified in the code snippet). Here's the corresponding code snippet:
replaces['<NOUSEGRAPHIC>'] = "str(noUseGraphic.get()).lower()"
The tile is a variable obtained from the doTile.get()
method. Here's the corresponding code snippet:
replaces['tile'] = "doTile.get()"
The solid is a boolean variable that represents whether the element is solid or not. It is associated with a Checkbutton in the user interface. Here's the corresponding code snippet:
solid = BooleanVar()
Checkbutton(root, text="Solid", variable=solid).place(x=152, y=500)
replaces['<SOLID>'] = "str(solid.get()).lower()"
The mergeDirt is a boolean variable that indicates whether the dirt should be merged with the element. It is associated with a Checkbutton in the user interface. Here's the corresponding code snippet:
mergeDirt = BooleanVar()
Checkbutton(root, text="Merge dirt", variable=mergeDirt).place(x=302, y=500)
replaces['<MERGEDIRT>'] = "str(mergeDirt.get()).lower()"
The blockLight is a boolean variable that determines if the element emits light. It is associated with a Checkbutton in the user interface. Here's the corresponding code snippet:
blockLight = BooleanVar()
Checkbutton(root, text="Block light", variable=blockLight).place(x=452, y=500)
replaces['<BLOCKLIGHT>'] = "str(blockLight.get()).lower()"
The dust is a variable obtained from the selection in a Listbox named dust
. It represents the dust associated with the element. Here's the corresponding code snippet:
dusts = ["DustID.Stone"]
dust = Listbox(root)
for item in dusts:
dust.insert(END, item)
dust.place(x=152, y=2)
replaces['<DUST>'] = "dust.get(ACTIVE)"
The mapr, mapg, and mapb are variables that store the red, green, and blue components of the element's map color, respectively. They are associated with Spinbox widgets in the user interface. Here's the corresponding code snippet:
mapr = IntVar()
mapg = IntVar()
mapb = IntVar()
Label(root, text="Map R").place(x=152, y=180)
Spinbox(root, from_=-2147483647, to=2147483647, textvariable=mapr).place(x=152, y=200)
Label(root, text="Map G").place(x=302, y=180)
Spinbox(root, from_=-2147483647, to=2147483647, textvariable=mapg).place(x=302, y=200)
Label(root, text="Map B").place(x=452, y=180)
Spinbox(root, from_=-2147483647, to=2147483647, textvariable=mapb).place(x=452, y=200)
replaces['<MAPR>'] = "str(mapr.get())"
replaces['<MAPG>'] = "str(mapg.get())"
replaces['<MAPB>'] = "str(mapb.get())"