mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 12:31:41 +09:00
Added info to readme
This commit is contained in:
@@ -8,33 +8,32 @@ Discord: https://discord.gg/r6dC2uK
|
|||||||
]]
|
]]
|
||||||
--Please Only Edit Below This Line-----------------------------------------------------------
|
--Please Only Edit Below This Line-----------------------------------------------------------
|
||||||
|
|
||||||
|
local function format_480(label)
|
||||||
|
label.style.maximal_width = 480
|
||||||
|
label.style.single_line = false
|
||||||
|
end
|
||||||
|
|
||||||
Gui.center.add{
|
Gui.center.add{
|
||||||
name='readme',
|
name='readme',
|
||||||
caption='utility/questionmark',
|
caption='utility/questionmark',
|
||||||
tooltip={'readme.tooltip'}
|
tooltip={'readme.tooltip'}
|
||||||
}:add_tab('guildlines',{'readme.tab1-name'},{'readme.tab1-tooltip'},function(frame)
|
}:add_tab('guildlines',{'readme.tab1-name'},{'readme.tab1-tooltip'},function(frame)
|
||||||
for i = 1,10 do
|
for i = 1,10 do
|
||||||
local line = frame.add{
|
format_480(frame.add{
|
||||||
type='label',
|
type='label',
|
||||||
caption={'readme.tab1-line'..tostring(i)}
|
caption={'readme.tab1-line'..tostring(i)}
|
||||||
}
|
})
|
||||||
line.style.maximal_width = 480
|
|
||||||
line.style.single_line = false
|
|
||||||
end
|
end
|
||||||
end):add_tab('chat',{'readme.tab2-name'},{'readme.tab2-tooltip'},function(frame)
|
end):add_tab('chat',{'readme.tab2-name'},{'readme.tab2-tooltip'},function(frame)
|
||||||
local line = frame.add{
|
format_480(frame.add{
|
||||||
type='label',
|
type='label',
|
||||||
caption={'readme.tab2-singleline'}
|
caption={'readme.tab2-singleline'}
|
||||||
}
|
})
|
||||||
line.style.maximal_width = 480
|
|
||||||
line.style.single_line = false
|
|
||||||
end):add_tab('commands',{'readme.tab3-name'},{'readme.tab3-tooltip'},function(frame)
|
end):add_tab('commands',{'readme.tab3-name'},{'readme.tab3-tooltip'},function(frame)
|
||||||
local line = frame.add{
|
format_480(frame.add{
|
||||||
type='label',
|
type='label',
|
||||||
caption={'readme.tab3-singleline'}
|
caption={'readme.tab3-singleline'}
|
||||||
}
|
})
|
||||||
line.style.maximal_width = 480
|
|
||||||
line.style.single_line = false
|
|
||||||
local table = frame.add{name='command_table',type='table',column_count=2}
|
local table = frame.add{name='command_table',type='table',column_count=2}
|
||||||
table.add{
|
table.add{
|
||||||
type='label',
|
type='label',
|
||||||
@@ -46,7 +45,7 @@ end):add_tab('commands',{'readme.tab3-name'},{'readme.tab3-tooltip'},function(fr
|
|||||||
}
|
}
|
||||||
table.draw_vertical_lines = true
|
table.draw_vertical_lines = true
|
||||||
table.draw_horizontal_line_after_headers = true
|
table.draw_horizontal_line_after_headers = true
|
||||||
for _,command in pairs(commands.get_commands(frame.player_index)) do
|
for _,command in pairs(commands.get_commands(frame)) do
|
||||||
table.add{
|
table.add{
|
||||||
type='label',
|
type='label',
|
||||||
caption='/'..command.name
|
caption='/'..command.name
|
||||||
@@ -58,6 +57,38 @@ end):add_tab('commands',{'readme.tab3-name'},{'readme.tab3-tooltip'},function(fr
|
|||||||
discription.style.width = 400
|
discription.style.width = 400
|
||||||
discription.style.single_line = false
|
discription.style.single_line = false
|
||||||
end
|
end
|
||||||
|
end):add_tab('links',{'readme.tab4-name'},{'readme.tab4-tooltip'},function(frame)
|
||||||
|
local function format(text_box)
|
||||||
|
text_box.style.minimal_width=400
|
||||||
|
text_box.read_only = true
|
||||||
|
text_box.word_wrap = true
|
||||||
|
text_box.selectable = true
|
||||||
|
end
|
||||||
|
for i = 1,4 do
|
||||||
|
frame.add{
|
||||||
|
type="label",
|
||||||
|
caption={'readme.tab4-cap'..tostring(i)}
|
||||||
|
}
|
||||||
|
format(frame.add{
|
||||||
|
type='text-box',
|
||||||
|
text={'readme.tab4-link'..tostring(i)}
|
||||||
|
})
|
||||||
|
end
|
||||||
|
end):add_tab('servers'.{'readme.tab5-name'},{'readme.tab5-tooltip'},function(frame)
|
||||||
|
format_480(frame.add{
|
||||||
|
type='label',
|
||||||
|
caption={'readme.tab5-singleline'}
|
||||||
|
})
|
||||||
|
for i = 1,6 do
|
||||||
|
frame.add{
|
||||||
|
type='label',
|
||||||
|
caption={'readme.tab5-format',tostring(i),{'readme.tab5-cap'..tostring(i)}}
|
||||||
|
}
|
||||||
|
format_480(frame.add{
|
||||||
|
type='label',
|
||||||
|
caption={'readme.tab5-des'..tostring(i)}
|
||||||
|
})
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
Event.register(defines.events.on_player_joined_game,function(event)
|
Event.register(defines.events.on_player_joined_game,function(event)
|
||||||
|
|||||||
@@ -19,4 +19,27 @@ tab3-name=Commands
|
|||||||
tab3-tooltip=These are the commands you can use
|
tab3-tooltip=These are the commands you can use
|
||||||
tab3-singleline=These are the many diffrent custom commands you are able to use, the base game commands are not shown
|
tab3-singleline=These are the many diffrent custom commands you are able to use, the base game commands are not shown
|
||||||
tab3-col1=Command Name
|
tab3-col1=Command Name
|
||||||
tab3-col2=Command Help
|
tab3-col2=Command Help
|
||||||
|
tab4-name=Links
|
||||||
|
tab4-tooltip=Helpful links for ways to get in touch
|
||||||
|
tab4-cap1=Discord voice and chat server:
|
||||||
|
tab4-link1=https://discord.me/explosivegaming
|
||||||
|
tab4-cap2=Our website:
|
||||||
|
tab4-link2=https://explosivegaming.nl
|
||||||
|
tab4-cap3=Steam:
|
||||||
|
tab4-link3=http://steamcommunity.com/groups/tntexplosivegaming
|
||||||
|
tab4-cap4=Patreon:
|
||||||
|
tab4-link4=https://www.patreon.com/badgamernl
|
||||||
|
tab5-singleline=Welcome to the Explosive Gaming Community!
|
||||||
|
tab5-cap1=Public
|
||||||
|
tab5-des1=A place for all players, this map reset every 24h.
|
||||||
|
tab5-cap2=Standard
|
||||||
|
tab5-des2=Before you play make sure you understand the game, reset every 48h.
|
||||||
|
tab5-cap3=Pro
|
||||||
|
tab5-des3=A pure mega base server, reset every 7 days and a password is needed to join.
|
||||||
|
tab5-cap4=Modded
|
||||||
|
tab5-des4=A modded server not much to say, just download the mods to play. Link on Discord for members.
|
||||||
|
tab5-cap5=Events
|
||||||
|
tab5-des5=Sometimes we hold events, may require a password, join discord for more info.
|
||||||
|
tab5-cap6=Donator
|
||||||
|
tab5-des6=For those people who have two much money and give us some. Anything goes per request.
|
||||||
Reference in New Issue
Block a user