mask encyclopedia
This commit is contained in:
40
data/scripts/_player/ui/encyclopedia/chapters/wpeturrets.lua
Normal file
40
data/scripts/_player/ui/encyclopedia/chapters/wpeturrets.lua
Normal file
@@ -0,0 +1,40 @@
|
||||
|
||||
Categories = Categories or {}
|
||||
category = {}
|
||||
|
||||
table.insert(Categories, category)
|
||||
|
||||
category.title = "WPE Turrets"%_t
|
||||
category.chapters =
|
||||
{
|
||||
{
|
||||
title = "Intro"%_t,
|
||||
picture = "data/textures/slide/thumb.png",
|
||||
text = "In this part of the encyclopedia you will find a description of the turrets from the Weapon Pack Extended mod.\n\nI recommend using turret models from the collection in the workshop."%_t,
|
||||
},
|
||||
|
||||
{
|
||||
title = "Smartcannon"%_t,
|
||||
picture = "data/textures/slide/3.png",
|
||||
text = "A lightweight version of the classic cannon.\n\nCompared to conventional cannons:\n+ Increased rate of fire (x2)\n+ Increased projectile speed (x1.5)\n+ A little more damage on the shield (10% - 15%)\n+ Can be equipped with homing missiles.\n- Less damage (x0.75)\n- Shorter damage range (x0.8)"%_t,
|
||||
},
|
||||
|
||||
{
|
||||
title = "Heavy Cannon"%_t,
|
||||
picture = "data/textures/slide/4.png",
|
||||
text = "The cannon of the main caliber. It shoots with heavy explosive shells, the hit of which can displace the enemy ship.\n\n+ High damage\n+ High projectile speed\n+ When hit, push the opponent\n+ Also can have a penetration\n- Low rate of fire\n- Occupies many slots\n- Big size\n- Requires more crew"%_t,
|
||||
},
|
||||
|
||||
{
|
||||
title = "Energy diffuser"%_t,
|
||||
picture = "data/textures/slide/1.png",
|
||||
text = "Short range combat weapon. Does not cause damage to the hull, but extremely effectively destroys shields. Requires civil slots.\n\nShield Damage x20"%_t,
|
||||
},
|
||||
|
||||
{
|
||||
title = "Hookgun"%_t,
|
||||
picture = "data/textures/slide/1.png",
|
||||
text = "Short range combat weapon. Does not cause damage to the shield, but extremely effectively to attrac. Requires 2 gunners slots.\n May have penetration\n"%_t,
|
||||
},
|
||||
|
||||
}
|
||||
1
data/scripts/_player/ui/encyclopedia/contents.lua
Normal file
1
data/scripts/_player/ui/encyclopedia/contents.lua
Normal file
@@ -0,0 +1 @@
|
||||
contents = {}
|
||||
17
data/scripts/_player/ui/encyclopedia/encyclopedia.lua
Normal file
17
data/scripts/_player/ui/encyclopedia/encyclopedia.lua
Normal file
@@ -0,0 +1,17 @@
|
||||
Encyclopedia._fillTree = Encyclopedia.fillTree
|
||||
|
||||
function Encyclopedia.fillTree()
|
||||
|
||||
include("chapters/wpeturrets")
|
||||
|
||||
Encyclopedia._fillTree()
|
||||
|
||||
local searchText = string.trim(self.searchTextBox.text)
|
||||
|
||||
if searchText == "" then
|
||||
Encyclopedia.fillTreeCompletely()
|
||||
else
|
||||
Encyclopedia.fillTreeFiltered(searchText)
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user