Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.05 KB | None | 0 0
  1. language = language or "en"
  2.  
  3. text = {
  4. ["en"] = {name = "Minimap HUD",
  5.     description = "Adds a minimap to the HUD",
  6.     {name = "Minimap Size", options = {"Tiny", "Small", "Medium", "Large", "Huge", "Giant"}},
  7.     {name = "Position", options = {"Top Right", "Top Left", "Top Center", "Middle Left", "Middle Center", "Middle Right", "Bottom Left", "Bottom Center", "Bottom Right"}},
  8.     {name = "Horisontal Margin", options = {"None", "Very Tiny", "Tiny", "Very Small", "Small", "Medium", "Large", "Very Large", "Huge", "Giant"}},
  9.     {name = "Vertical Margin", options = {"None", "Very Tiny", "Tiny", "Very Small", "Small", "Medium", "Large", "Very Large", "Huge", "Giant"}}
  10.     },
  11. ["ru"] = {name = "Миникарта",
  12.     description = "Добавляет миникарту в игровой интерфейс",
  13.     {name = "Размер миникарты", options = {"Маленький", "Небольшой", "Средний", "Большой", "Огромный", "Гигантский"}},
  14.     {name = "Положение", options = {"Верх справа", "Верх слева", "Верх центр", "Середина слева", "Середина центр", "Середина справа", "Низ слева", "Низ центр", "Низ справа"}},
  15.     {name = "Горизонтальный отступ", options = {"Нет", "Почти нет", "Очень маленький", "Маленький", "Небольшой", "Средний", "Большой", "Очень большой", "Огромный", "Гигантский"}},
  16.     {name = "Вертикальный отступ", options = {"Нет", "Почти нет", "Очень маленький", "Маленький", "Небольшой", "Средний", "Большой", "Очень большой", "Огромный", "Гигантский"}}
  17.     }}
  18.  
  19.  
  20. name = text[language].name
  21. description = text[language].description
  22. author = "squeek"
  23. version = "1.0.3a"
  24. forumthread = "/files/file/352-minimap-hud/"
  25. icon_atlas = "modicon.xml"
  26. icon = "modicon.tex"
  27. dont_starve_compatible = true
  28. reign_of_giants_compatible = true
  29.  
  30. -- this setting is dumb; this mod is likely compatible with all future versions
  31. api_version = 10
  32.  
  33.  
  34.  
  35. configuration_options =
  36. {
  37.     {
  38.         name = text[language][1].name,
  39.         options =
  40.         {
  41.             {description = text[language][1].options[1], data = 0.125},
  42.             {description = text[language][1].options[2], data = 0.175},
  43.             {description = text[language][1].options[3], data = 0.225},
  44.             {description = text[language][1].options[4], data = 0.275},
  45.             {description = text[language][1].options[5], data = 0.325},
  46.             {description = text[language][1].options[6], data = 0.375},
  47.         },
  48.         default = 0.225,
  49.     },
  50.     {
  51.         name = text[language][2].name,
  52.         options =
  53.         {
  54.             {description = text[language][2].options[1], data = "top_right"},
  55.             {description = text[language][2].options[2], data = "top_left"},
  56.             {description = text[language][2].options[3], data = "top_center"},
  57.             {description = text[language][2].options[4], data = "middle_left"},
  58.             {description = text[language][2].options[5], data = "middle_center"},
  59.             {description = text[language][2].options[6], data = "middle_right"},
  60.             {description = text[language][2].options[7], data = "bottom_left"},
  61.             {description = text[language][2].options[8], data = "bottom_center"},
  62.             {description = text[language][2].options[9], data = "bottom_right"},
  63.         },
  64.         default = "top_right"
  65.     },
  66.     {
  67.         name = text[language][3].name,
  68.         options =
  69.         {
  70.             {description = text[language][3].options[1], data = 0},
  71.             {description = text[language][3].options[2], data = 5},
  72.             {description = text[language][3].options[3], data = 12.5},
  73.             {description = text[language][3].options[4], data = 25},
  74.             {description = text[language][3].options[5], data = 50},
  75.             {description = text[language][3].options[6], data = 125},
  76.             {description = text[language][3].options[7], data = 235},
  77.             {description = text[language][3].options[8], data = 350},
  78.             {description = text[language][3].options[9], data = 450},
  79.         },
  80.         default = 235
  81.     },
  82.     {
  83.         name = text[language][4].name,
  84.         options =
  85.         {
  86.             {description = text[language][4].options[1], data = 0},
  87.             {description = text[language][4].options[2], data = 5},
  88.             {description = text[language][4].options[3], data = 12.5},
  89.             {description = text[language][4].options[4], data = 25},
  90.             {description = text[language][4].options[5], data = 50},
  91.             {description = text[language][4].options[6], data = 125},
  92.             {description = text[language][4].options[7], data = 235},
  93.             {description = text[language][4].options[8], data = 350},
  94.             {description = text[language][4].options[9], data = 450},
  95.         },
  96.         default = 25
  97.     },
  98. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement