Working readme Gui

This commit is contained in:
Cooldude2606
2017-12-28 15:35:15 +00:00
parent c4933b7a8b
commit 736ab5e3b1
2 changed files with 7 additions and 7 deletions

View File

@@ -49,20 +49,20 @@ end):add_tab('commands',{'readme.tab3-name'},{'readme.tab3-tooltip'},function(fr
for _,command in pairs(commands.get_commands(frame.player_index)) do
table.add{
type='label',
caption='/'..comand.name
caption='/'..command.name
}
local help = table.add{
local discription = table.add{
type='label',
caption=command.help,
caption=command.description,
}
help.style.width = 400
help.style.single_line = false
discription.style.width = 400
discription.style.single_line = false
end
end)
Event.register(defines.events.on_player_created,function(event)
local player = Game.get_player(event)
if not player.admin then
local player = Game.get_player(event)
script.raise_event(defines.events.on_gui_click,{
name=defines.events.on_gui_click,
tick=event.tick,

View File

@@ -15,7 +15,7 @@ Discord: https://discord.gg/r6dC2uK
-- commands dir
-- guis dir
require('Guis/player-list')
require('Guis/readme')
require('Guis/player-list')
-- other