From 736ab5e3b1251a0e81575cbd3321517585b2fed2 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Thu, 28 Dec 2017 15:35:15 +0000 Subject: [PATCH] Working readme Gui --- Addons/Guis/readme.lua | 12 ++++++------ Addons/load.lua | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Addons/Guis/readme.lua b/Addons/Guis/readme.lua index 8ccd408b..e6664784 100644 --- a/Addons/Guis/readme.lua +++ b/Addons/Guis/readme.lua @@ -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, diff --git a/Addons/load.lua b/Addons/load.lua index f31e4d32..73dac323 100644 --- a/Addons/load.lua +++ b/Addons/load.lua @@ -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 \ No newline at end of file