#-------------#
#beging config#
#-------------#
module Config
#IMPORT ALL YOUR IMAGES TO THE PICTURES DIRECTORY!
#your main map's image name
MAP_NAME = 'map.png'
#here you can complete configure the text show when the cursor is at differnt
#locations on the map
#config whether you wish to use custom font, true or false
CUSTOM_FONT = false
#configure the name of the custom font
TEXT_FONT = 'Georgia'
#configure whether you wish to manually set the color of the text, true or false
CUSTOM_COLOR = true #when false default is white
# set the color of the text like so: [RED, GREEN, BLUE]min=0 max=255
SET_COLOR = [0, 0, 0]
#configure whether the text writen will be bold or not, true or false
BOLD_TEXT = true
#set the fonts size
FONT_SIZE = 25 #maximum size = 96
#set if you would like to use outlined text
OUTLINED_TEXT = true
#set if you would like to customize the color of the outline
OUTLINED_COLOR = true #when false default is black
# set the color of the outline: [red, green, blue]min=0 max=255
OUTLINED_COLOR_SET = [255, 255, 255]
#set to true to draw a box behind the text
TEXT_BACK = true
#set the color and opacity of the box
TEXT_BACK_COLOR = [255, 0, 0, 150]#[red, green, blue, opacity]
#set to true to give the box a border, only returns if back box = true
TEXT_BACK_BORDER = true #not functional
#set the color and opacity of the border
TEXT_BACK_BORDER_COLOR = [0, 0, 255, 255]#[red, green, blue, opacity]
#set to true to give the box a border
TEXT_BACK_BORDER = true #not functional
#set up the names that will be shown when the cursor is over locations,
#when 193 points at the index point of the map, refer to the index refernece
#image, config like so: when INDEX ID then [x, y , "TEXT"]
#just simply add a new line to configure a new location
#for index's not configured it will not return any text
def self.map_text(index)
return case index
when 193 then [6, 6, 'example text']
when 174 then [50, 50, 'example2 text']
#leave else, this returns no text if none is set
else ''
end
end
#here you configure the window that will show an image of the town you press
#the action button on
#define the windows [x, y, width, height] for your town images ect
WINDOW_SIZE = [112, 64, 416, 352]
#define the opacity of your towns windows(this does not effect the images)
#255=max, 0=min
WINDOW_OPACITY = 255
#configure the maps name that will be shown in the window, configure
#it exactly how you configured the text above, the index is set the same, it
#will show the text for the index point it is called from
def self.window_text(index)
return case index
when 193 then [30, 30, "example text"]
when 174 then [80, 50, "example text"]
#leave else, this returns no text if none is set
else ''
end
end
#config whether you wish to use custom font, true or false
W_CUSTOM_FONT = false
#configure the name of the custom font
W_TEXT_FONT = 'Georgia'
#configure whether you wish to manually set the color of the text, true or false
W_CUSTOM_COLOR = true #when false default is white
# set the color of the text like so: [RED, GREEN, BLUE]min=0 max=255
W_SET_COLOR = [0, 0, 0]
#configure whether the text writen will be bold or not, true or false
W_BOLD_TEXT = true
#set the fonts size
W_FONT_SIZE = 20 #maximum size = 96
#set if you would like to use outlined text
W_OUTLINED_TEXT = true
#set if you would like to customize the color of the outline
W_OUTLINED_COLOR = true #when false default is black
# set the color of the outline: [red, green, blue]min=0 max=255
W_OUTLINED_COLOR_SET = [255, 255, 255]
#set to true to draw a box behind the text
W_TEXT_BACK = true
#set the color and opacity of the box
W_TEXT_BACK_COLOR = [0, 0, 255, 100]#[red, green, blue, opacity]
#set to true to give the box a border, only returns if back box = true
W_TEXT_BACK_BORDER = true #not functional
#set the color and opacity of the border
W_TEXT_BACK_BORDER_COLOR = [255, 0, 0, 255]#[red, green, blue, opacity]
#to add a new image for an index point simply add a new line with the image's
#name E.G you want to add a image for index 0 you would add this:
#when 0 then 'IMAGE_NAME'
#where IMAGE_NAME is the name of the image to show, use the index reference
#image in the projects root folder for a reference of how the index is set-up
def self.image_name(index)
return case index
when 193 then 'pallettown.png'
when 174 then 'pallettown.png'
#leave else, this returns no window if no image is set
else ''
end
end
#set the [x, y, opacity] of the images, opacity max=255 min=0
IMAGE_XY = [0, 0, 255]
#set if tele windows are enabled
TELE_WINDOW = true
#setup teleport locations for index points [id, x, y, direction]
def self.tele_config(index)
return case index
when 193 then [2, 9, 7, 6]
#leave else, this returns no window if no image is set
else ''
end
end
end