Skip to content
Darthsae edited this page Jul 18, 2023 · 9 revisions

TCreator wiki

Items

USESTYLE

The useStyle is a variable that is obtained from the ACTIVE state. Here's the corresponding code snippet:

replaces['<USESTYLE>'] = "useStyle.get(ACTIVE)"

USETIME

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())"

USEANIMATION

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())"

AUTOREUSE

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()"

DAMAGETYPE

The damageType is a variable obtained from the ACTIVE state. Here's the corresponding code snippet:

replaces['<DAMAGETYPE>'] = "damageType.get(ACTIVE)"

DAMAGE

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())"

KNOCKBACK

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())"

CRIT

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())"

GOLDCOST

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())"

RARITY

The rarity is a variable obtained from the ACTIVE state. Here's the corresponding code snippet:

replaces['<RARITY>'] = "rarity.get(ACTIVE)"

SOUND

The sound is a variable obtained from the ACTIVE state. Here's the corresponding code snippet:

replaces['<SOUND>'] = "sound.get(ACTIVE)"

AXE

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())"

HAMMER

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())"

PICK

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())"

TILEBOOST

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())"

CHANNEL

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()"

NOMELEE

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()"

NOUSEGRAPHIC

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()"

tile

The tile is a variable obtained from the doTile.get() method. Here's the corresponding code snippet:

replaces['tile'] = "doTile.get()"

Tiles

SOLID

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()"

MERGEDIRT

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()"

BLOCKLIGHT

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()"

DUST

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)"

MAPR, MAPG, MAPB

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())"
Clone this wiki locally