mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-01-01 05:01:40 +09:00
Working readme Gui
This commit is contained in:
@@ -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
|
for _,command in pairs(commands.get_commands(frame.player_index)) do
|
||||||
table.add{
|
table.add{
|
||||||
type='label',
|
type='label',
|
||||||
caption='/'..comand.name
|
caption='/'..command.name
|
||||||
}
|
}
|
||||||
local help = table.add{
|
local discription = table.add{
|
||||||
type='label',
|
type='label',
|
||||||
caption=command.help,
|
caption=command.description,
|
||||||
}
|
}
|
||||||
help.style.width = 400
|
discription.style.width = 400
|
||||||
help.style.single_line = false
|
discription.style.single_line = false
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
Event.register(defines.events.on_player_created,function(event)
|
Event.register(defines.events.on_player_created,function(event)
|
||||||
if not player.admin then
|
|
||||||
local player = Game.get_player(event)
|
local player = Game.get_player(event)
|
||||||
|
if not player.admin then
|
||||||
script.raise_event(defines.events.on_gui_click,{
|
script.raise_event(defines.events.on_gui_click,{
|
||||||
name=defines.events.on_gui_click,
|
name=defines.events.on_gui_click,
|
||||||
tick=event.tick,
|
tick=event.tick,
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ Discord: https://discord.gg/r6dC2uK
|
|||||||
-- commands dir
|
-- commands dir
|
||||||
|
|
||||||
-- guis dir
|
-- guis dir
|
||||||
require('Guis/player-list')
|
|
||||||
require('Guis/readme')
|
require('Guis/readme')
|
||||||
|
require('Guis/player-list')
|
||||||
|
|
||||||
-- other
|
-- other
|
||||||
Reference in New Issue
Block a user