+ padding_size = winmap_size[1] - len(line)
+ line += (" " * padding_size)
+ if count == world_data["inventory_selection"]:
+ line_new = []
+ for x in range(len(line)):
+ line_new += [(line[x], curses.A_REVERSE)]
+ line = line_new
+ winmap += line
+ winmap_size[0] = winmap_size[0] + 1
+ count += 1
+ offset = [0, 0]
+ if world_data["inventory_selection"] > win_size[0]/2:
+ if world_data["inventory_selection"] < len(world_data["inventory"]) \
+ - win_size[0]/2:
+ offset[0] = world_data["inventory_selection"] - int(win_size[0]/2)
+ else:
+ offset[0] = len(world_data["inventory"]) - win_size[0]
+ return offset, winmap_size, winmap
+
+
+def win_look():
+ winmap = ""
+ winmap_size = [0, 0]
+ for line in world_data["look"]:
+ winmap_size[1] = winmap_size[1] if len(line) <= winmap_size[1] \
+ else len(line)
+ for line in world_data["look"]: