# Path: omnitool/database.py
# def get_custom_db(txt):
# def parse():


import pygame
from pgu import gui
from omnitool.database import tiles, multitiles, walls, names, version
        from omnitool.shared import lang, theme, exit_prog, exit_prog
        from omnitool.pgu_override import Quitbutton
        main.td(size)
        #surface label
        main.td(gui.Label(lang.fw_surf))

        surf = ["Grass Block", "Corrupt Grass Block", "Jungle Grass Block",
                "Mushroom Grass Block", "Hallowed Grass Block"]
        #surface drop down menu
        sur = gui.Select(width=300)
        sur.add("None", None)
        for grass in surf:
            sur.add(grass, tiles.index(grass))
        sur.value = None
        #add surface selection to table
        main.td(sur)

        #go to next line in table
        main.tr()
        #add tile label to table
        main.td(gui.Label(lang.fw_tile))
        #create tile list
        tiles_ = gui.List(300, 150)
        for tile in tiles:
            if tiles.index(tile) not in multitiles:
                tiles_.add(gui.Label(tile), value=tiles.index(tile))
        #add tile list to table
        main.td(tiles_)
        #add wall label to table
        main.td(gui.Label(lang.fw_wall))
        #create wall list
        guiwalls = gui.List(300, 150)

# Path: omnitool/database.py
# def get_custom_db(txt):
# def parse():


# Path: plugins/flatworld.py
import pygame
from pgu import gui
from omnitool.database import tiles, multitiles, walls, names, version
        from omnitool.shared import lang, theme, exit_prog, exit_prog
        from omnitool.pgu_override import Quitbutton

        main.td(size)
        #surface label
        main.td(gui.Label(lang.fw_surf))

        surf = ["Grass Block", "Corrupt Grass Block", "Jungle Grass Block",
                "Mushroom Grass Block", "Hallowed Grass Block"]
        #surface drop down menu
        sur = gui.Select(width=300)
        sur.add("None", None)
        for grass in surf:
            sur.add(grass, tiles.index(grass))
        sur.value = None
        #add surface selection to table
        main.td(sur)

        #go to next line in table
        main.tr()
        #add tile label to table
        main.td(gui.Label(lang.fw_tile))
        #create tile list
        tiles_ = gui.List(300, 150)
        for tile in tiles:
            if tiles.index(tile) not in multitiles:
                tiles_.add(gui.Label(tile), value=tiles.index(tile))
        #add tile list to table
        main.td(tiles_)
        #add wall label to table
        main.td(gui.Label(lang.fw_wall))
        #create wall list
        guiwalls = gui.List(300, 150)

        for wall in walls: