- Initiateur de la discussion
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 ??
Je sais même pas de quoi vous parlez xDroxasgames27 à dit:sans vouloir j'ai suprimer le contenue du ficher Content.lua qui aurrai sont contenue ??
De quel addons ?roxasgames27 à dit:sans vouloir j'ai suprimer le contenue du ficher Content.lua qui aurrai sont contenue ??
Si c'est le fichier du spawnmenu :roxasgames27 à dit:sans vouloir j'ai suprimer le contenue du ficher Content.lua qui aurrai sont contenue ??
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 )
MerciZozo147 à 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 )
Bah Zozo t'as répondu ^^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 dessusroxasgames27 à dit:Le fichier se situe
garrysmod/gamemodes/sandbox/gamemode/spawnmenu/creationmenu/content
Enfin on aura pas pu savoirZozo147 à 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 )
Encore merciZozo147 à dit:Ah oui donc c'est ce que j'ai mis juste au dessus