Besoin d'aide sur le dossier content.lua

  • Initiateur de la discussion
roxasgames27

roxasgames27

Nouveau né
Messages
19
Score réaction
0
Points
20
sans vouloir j'ai suprimer le contenue du ficher Content.lua qui aurrai sont contenue ??
 
Taink

Taink

El Magnifico
Messages
5 292
Score réaction
2 720
Points
965
roxasgames27 à dit:
sans vouloir j'ai suprimer le contenue du ficher Content.lua qui aurrai sont contenue ??
Je sais même pas de quoi vous parlez xD
 
Joe Leroi

Joe Leroi

Chuck Norris
Messages
4 368
Score réaction
933
Points
605
roxasgames27 à dit:
sans vouloir j'ai suprimer le contenue du ficher Content.lua qui aurrai sont contenue ??
De quel addons ?
 
Zozo147

Zozo147

Helpeur Divin
Messages
1 814
Score réaction
848
Points
430
roxasgames27 à dit:
sans vouloir j'ai suprimer le contenue du ficher Content.lua qui aurrai sont contenue ??
Si c'est le fichier du spawnmenu :

Code:
include( "contenticon.lua" )
include( "postprocessicon.lua" )
include( "contentcontainer.lua" )
include( "contentsidebar.lua" )
include( "contenttypes/custom.lua" )
include( "contenttypes/npcs.lua" )
include( "contenttypes/weapons.lua" )
include( "contenttypes/entities.lua" )
include( "contenttypes/postprocess.lua" )
include( "contenttypes/vehicles.lua" )
include( "contenttypes/saves.lua" )
include( "contenttypes/dupes.lua" )
include( "contenttypes/gameprops.lua" )
include( "contenttypes/addonprops.lua" )
local PANEL = {}
AccessorFunc( PANEL, "m_pSelectedPanel", "SelectedPanel" )
function PANEL:Init() self:SetPaintBackground( false ) self.CategoryTable = {} self.HorizontalDivider = vgui.Create( "DHorizontalDivider", self ) self.HorizontalDivider:Dock( FILL ) self.HorizontalDivider:SetLeftWidth( 192 ) self.HorizontalDivider:SetLeftMin( 192 ) self.HorizontalDivider:SetRightMin( 400 ) self.HorizontalDivider:SetDividerWidth( 6 ) --self.HorizontalDivider:SetCookieName( "SpawnMenuCreationMenuDiv" ) self.ContentNavBar = vgui.Create( "ContentSidebar", self.HorizontalDivider ) self.HorizontalDivider:SetLeft( self.ContentNavBar )
end
function PANEL:EnableModify() self.ContentNavBar:EnableModify()
end
function PANEL:CallPopulateHook( HookName ) hook.Call( HookName, GAMEMODE, self, self.ContentNavBar.Tree, self.OldSpawnlists )
end
function PANEL:SwitchPanel( panel ) if ( IsValid( self.SelectedPanel ) ) then self.SelectedPanel:SetVisible( false ) self.SelectedPanel = nil end self.SelectedPanel = panel self.HorizontalDivider:SetRight( self.SelectedPanel ) self.HorizontalDivider:InvalidateLayout( true ) self.SelectedPanel:SetVisible( true ) self:InvalidateParent()
end
vgui.Register( "SpawnmenuContentPanel", PANEL, "DPanel" )
local function CreateContentPanel() local ctrl = vgui.Create( "SpawnmenuContentPanel" ) ctrl.OldSpawnlists = ctrl.ContentNavBar.Tree:AddNode( "#spawnmenu.category.browse", "icon16/cog.png" ) ctrl:EnableModify() hook.Call( "PopulatePropMenu", GAMEMODE ) ctrl:CallPopulateHook( "PopulateContent" ) ctrl.OldSpawnlists:MoveToFront() ctrl.OldSpawnlists:SetExpanded( true ) return ctrl
end
spawnmenu.AddCreationTab( "#spawnmenu.content_tab", CreateContentPanel, "icon16/application_view_tile.png", -10 )
 
  • J'aime
Réactions: Taink
  • Initiateur de la discussion
roxasgames27

roxasgames27

Nouveau né
Messages
19
Score réaction
0
Points
20
Le fichier se situe
garrysmod/gamemodes/sandbox/gamemode/spawnmenu/creationmenu/content
 
  • Initiateur de la discussion
roxasgames27

roxasgames27

Nouveau né
Messages
19
Score réaction
0
Points
20
Zozo147 à dit:
Si c'est le fichier du spawnmenu :

Code:
include( "contenticon.lua" )
include( "postprocessicon.lua" )
include( "contentcontainer.lua" )
include( "contentsidebar.lua" )
include( "contenttypes/custom.lua" )
include( "contenttypes/npcs.lua" )
include( "contenttypes/weapons.lua" )
include( "contenttypes/entities.lua" )
include( "contenttypes/postprocess.lua" )
include( "contenttypes/vehicles.lua" )
include( "contenttypes/saves.lua" )
include( "contenttypes/dupes.lua" )
include( "contenttypes/gameprops.lua" )
include( "contenttypes/addonprops.lua" )
local PANEL = {}
AccessorFunc( PANEL, "m_pSelectedPanel", "SelectedPanel" )
function PANEL:Init() self:SetPaintBackground( false ) self.CategoryTable = {} self.HorizontalDivider = vgui.Create( "DHorizontalDivider", self ) self.HorizontalDivider:Dock( FILL ) self.HorizontalDivider:SetLeftWidth( 192 ) self.HorizontalDivider:SetLeftMin( 192 ) self.HorizontalDivider:SetRightMin( 400 ) self.HorizontalDivider:SetDividerWidth( 6 ) --self.HorizontalDivider:SetCookieName( "SpawnMenuCreationMenuDiv" ) self.ContentNavBar = vgui.Create( "ContentSidebar", self.HorizontalDivider ) self.HorizontalDivider:SetLeft( self.ContentNavBar )
end
function PANEL:EnableModify() self.ContentNavBar:EnableModify()
end
function PANEL:CallPopulateHook( HookName ) hook.Call( HookName, GAMEMODE, self, self.ContentNavBar.Tree, self.OldSpawnlists )
end
function PANEL:SwitchPanel( panel ) if ( IsValid( self.SelectedPanel ) ) then self.SelectedPanel:SetVisible( false ) self.SelectedPanel = nil end self.SelectedPanel = panel self.HorizontalDivider:SetRight( self.SelectedPanel ) self.HorizontalDivider:InvalidateLayout( true ) self.SelectedPanel:SetVisible( true ) self:InvalidateParent()
end
vgui.Register( "SpawnmenuContentPanel", PANEL, "DPanel" )
local function CreateContentPanel() local ctrl = vgui.Create( "SpawnmenuContentPanel" ) ctrl.OldSpawnlists = ctrl.ContentNavBar.Tree:AddNode( "#spawnmenu.category.browse", "icon16/cog.png" ) ctrl:EnableModify() hook.Call( "PopulatePropMenu", GAMEMODE ) ctrl:CallPopulateHook( "PopulateContent" ) ctrl.OldSpawnlists:MoveToFront() ctrl.OldSpawnlists:SetExpanded( true ) return ctrl
end
spawnmenu.AddCreationTab( "#spawnmenu.content_tab", CreateContentPanel, "icon16/application_view_tile.png", -10 )
Merci
 
Taink

Taink

El Magnifico
Messages
5 292
Score réaction
2 720
Points
965
roxasgames27 à dit:
Le fichier se situe
garrysmod/gamemodes/sandbox/gamemode/spawnmenu/creationmenu/content
Bah Zozo t'as répondu ^^
 
Zozo147

Zozo147

Helpeur Divin
Messages
1 814
Score réaction
848
Points
430
roxasgames27 à dit:
Le fichier se situe
garrysmod/gamemodes/sandbox/gamemode/spawnmenu/creationmenu/content
Ah oui donc c'est ce que j'ai mis juste au dessus :)
 
Joe Leroi

Joe Leroi

Chuck Norris
Messages
4 368
Score réaction
933
Points
605
Zozo147 à dit:
Si c'est le fichier du spawnmenu :

Code:
include( "contenticon.lua" )
include( "postprocessicon.lua" )
include( "contentcontainer.lua" )
include( "contentsidebar.lua" )
include( "contenttypes/custom.lua" )
include( "contenttypes/npcs.lua" )
include( "contenttypes/weapons.lua" )
include( "contenttypes/entities.lua" )
include( "contenttypes/postprocess.lua" )
include( "contenttypes/vehicles.lua" )
include( "contenttypes/saves.lua" )
include( "contenttypes/dupes.lua" )
include( "contenttypes/gameprops.lua" )
include( "contenttypes/addonprops.lua" )
local PANEL = {}
AccessorFunc( PANEL, "m_pSelectedPanel", "SelectedPanel" )
function PANEL:Init() self:SetPaintBackground( false ) self.CategoryTable = {} self.HorizontalDivider = vgui.Create( "DHorizontalDivider", self ) self.HorizontalDivider:Dock( FILL ) self.HorizontalDivider:SetLeftWidth( 192 ) self.HorizontalDivider:SetLeftMin( 192 ) self.HorizontalDivider:SetRightMin( 400 ) self.HorizontalDivider:SetDividerWidth( 6 ) --self.HorizontalDivider:SetCookieName( "SpawnMenuCreationMenuDiv" ) self.ContentNavBar = vgui.Create( "ContentSidebar", self.HorizontalDivider ) self.HorizontalDivider:SetLeft( self.ContentNavBar )
end
function PANEL:EnableModify() self.ContentNavBar:EnableModify()
end
function PANEL:CallPopulateHook( HookName ) hook.Call( HookName, GAMEMODE, self, self.ContentNavBar.Tree, self.OldSpawnlists )
end
function PANEL:SwitchPanel( panel ) if ( IsValid( self.SelectedPanel ) ) then self.SelectedPanel:SetVisible( false ) self.SelectedPanel = nil end self.SelectedPanel = panel self.HorizontalDivider:SetRight( self.SelectedPanel ) self.HorizontalDivider:InvalidateLayout( true ) self.SelectedPanel:SetVisible( true ) self:InvalidateParent()
end
vgui.Register( "SpawnmenuContentPanel", PANEL, "DPanel" )
local function CreateContentPanel() local ctrl = vgui.Create( "SpawnmenuContentPanel" ) ctrl.OldSpawnlists = ctrl.ContentNavBar.Tree:AddNode( "#spawnmenu.category.browse", "icon16/cog.png" ) ctrl:EnableModify() hook.Call( "PopulatePropMenu", GAMEMODE ) ctrl:CallPopulateHook( "PopulateContent" ) ctrl.OldSpawnlists:MoveToFront() ctrl.OldSpawnlists:SetExpanded( true ) return ctrl
end
spawnmenu.AddCreationTab( "#spawnmenu.content_tab", CreateContentPanel, "icon16/application_view_tile.png", -10 )
Enfin on aura pas pu savoir
 
  • Initiateur de la discussion
roxasgames27

roxasgames27

Nouveau né
Messages
19
Score réaction
0
Points
20
Discord d'entraide
Rejoignz-nous sur Discord