Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AddCSLuaFile()
- if CLIENT then
- function landingmenu()
- if vgui.CursorVisible() then return end
- local Menu = vgui.Create( "DFrame" )
- Menu:SetPos( 0, 0 )
- Menu:SetSize( ScrW() / 2, ScrH() / 1 )
- Menu:SetTitle( "" )
- Menu:SetDraggable( false )
- Menu:Center()
- Menu:SetBackgroundBlur( true )
- Menu:ShowCloseButton( false )
- Menu.Paint = function() -- The paint function
- surface.SetDrawColor( 0, 0, 0, 0 ) -- What color do You want to paint the button (R, B, G, A)
- surface.DrawRect( 0, 0, Menu:GetWide(), Menu:GetTall() )
- end
- local img_text = vgui.Create( "DImage", Menu )
- img_text:SetPos( ScrW() * 0.12, ScrH() * 0.25 )
- img_text:SetSize( ScrW() / 4, ScrH() / 1.8 )
- img_text:SetImage( "lande_menu.png" )
- local DermaButton = vgui.Create( "DButton", Menu ) // Create the button and parent it to the frame
- DermaButton:MakePopup()
- DermaButton:SetText( "Schließen" ) // Set the text on the button
- DermaButton:SetTextColor( Color( 255, 255, 255 ) )
- DermaButton:SetPos( ScrW() * 0.405, ScrH() * 0.78 ) // Set the position on the frame
- DermaButton:SetSize( ScrW() / 6, ScrH() / 16 ) // Set the size
- DermaButton:SetFont( "Trebuchet24" )
- DermaButton.Paint = function() -- The paint function
- surface.SetDrawColor( 0, 0, 0, 255 ) -- What color do You want to paint the button (R, B, G, A)
- surface.DrawRect( 0, 0, DermaButton:GetWide(), DermaButton:GetTall() )
- end
- DermaButton.DoClick = function()
- surface.PlaySound( "UI/buttonclick.wav" )
- Menu:Close()
- end
- local Landung_Korriban = vgui.Create( "DButton", Menu ) // Create the button and parent it to the frame
- Landung_Korriban:MakePopup()
- Landung_Korriban:SetText( "Korriban" ) // Set the text on the button
- Landung_Korriban:SetTextColor( Color( 255, 255, 255 ) )
- Landung_Korriban:SetPos( ScrW() * 0.43, ScrH() * 0.398 ) // Set the position on the frame
- Landung_Korriban:SetSize( ScrW() / 8, ScrH() / 37 ) // Set the size
- Landung_Korriban:SetFont( "Trebuchet24" )
- Landung_Korriban.Paint = function() -- The paint function
- surface.SetDrawColor( 0, 0, 0, 255 ) -- What color do You want to paint the button (R, B, G, A)
- surface.DrawRect( 0, 0, Landung_Korriban:GetWide(), Landung_Korriban:GetTall() )
- end
- Landung_Korriban.DoClick = function()
- surface.PlaySound( "UI/buttonclick.wav" )
- RunConsoleCommand( "say", "/akt Landung auf Korriban" )
- Menu:Close()
- end
- local Landung_Tython = vgui.Create( "DButton", Menu ) // Create the button and parent it to the frame
- Landung_Tython:MakePopup()
- Landung_Tython:SetText( "Tython" ) // Set the text on the button
- Landung_Tython:SetTextColor( Color( 255, 255, 255 ) )
- Landung_Tython:SetPos( ScrW() * 0.43, ScrH() * 0.447 ) // Set the position on the frame
- Landung_Tython:SetSize( ScrW() / 8, ScrH() / 37 ) // Set the size
- Landung_Tython:SetFont( "Trebuchet24" )
- Landung_Tython.Paint = function() -- The paint function
- surface.SetDrawColor( 0, 0, 0, 255 ) -- What color do You want to paint the button (R, B, G, A)
- surface.DrawRect( 0, 0, Landung_Tython:GetWide(), Landung_Tython:GetTall() )
- end
- Landung_Tython.DoClick = function()
- surface.PlaySound( "UI/buttonclick.wav" )
- RunConsoleCommand( "say", "/akt Landung auf Tython" )
- Menu:Close()
- end
- local Landung_Geonosis = vgui.Create( "DButton", Menu ) // Create the button and parent it to the frame
- Landung_Geonosis:MakePopup()
- Landung_Geonosis:SetText( "Geonosis" ) // Set the text on the button
- Landung_Geonosis:SetTextColor( Color( 255, 255, 255 ) )
- Landung_Geonosis:SetPos( ScrW() * 0.43, ScrH() * 0.496 ) // Set the position on the frame
- Landung_Geonosis:SetSize( ScrW() / 8, ScrH() / 37 ) // Set the size
- Landung_Geonosis:SetFont( "Trebuchet24" )
- Landung_Geonosis.Paint = function() -- The paint function
- surface.SetDrawColor( 0, 0, 0, 255 ) -- What color do You want to paint the button (R, B, G, A)
- surface.DrawRect( 0, 0, Landung_Geonosis:GetWide(), Landung_Geonosis:GetTall() )
- end
- Landung_Geonosis.DoClick = function()
- surface.PlaySound( "UI/buttonclick.wav" )
- RunConsoleCommand( "say", "/akt Landung auf Geonosis" )
- Menu:Close()
- end
- local Landung_Tatooine = vgui.Create( "DButton", Menu ) // Create the button and parent it to the frame
- Landung_Tatooine:MakePopup()
- Landung_Tatooine:SetText( "Tatooine" ) // Set the text on the button
- Landung_Tatooine:SetTextColor( Color( 255, 255, 255 ) )
- Landung_Tatooine:SetPos( ScrW() * 0.43, ScrH() * 0.545 ) // Set the position on the frame
- Landung_Tatooine:SetSize( ScrW() / 8, ScrH() / 37 ) // Set the size
- Landung_Tatooine:SetFont( "Trebuchet24" )
- Landung_Tatooine.Paint = function() -- The paint function
- surface.SetDrawColor( 0, 0, 0, 255 ) -- What color do You want to paint the button (R, B, G, A)
- surface.DrawRect( 0, 0, Landung_Tatooine:GetWide(), Landung_Tatooine:GetTall() )
- end
- Landung_Tatooine.DoClick = function()
- surface.PlaySound( "UI/buttonclick.wav" )
- RunConsoleCommand( "say", "/akt Landung auf Tatooine" )
- Menu:Close()
- end
- local Landung_Hoth = vgui.Create( "DButton", Menu ) // Create the button and parent it to the frame
- Landung_Hoth:MakePopup()
- Landung_Hoth:SetText( "Hoth" ) // Set the text on the button
- Landung_Hoth:SetTextColor( Color( 255, 255, 255 ) )
- Landung_Hoth:SetPos( ScrW() * 0.43, ScrH() * 0.594 ) // Set the position on the frame
- Landung_Hoth:SetSize( ScrW() / 8, ScrH() / 37 ) // Set the size
- Landung_Hoth:SetFont( "Trebuchet24" )
- Landung_Hoth.Paint = function() -- The paint function
- surface.SetDrawColor( 0, 0, 0, 255 ) -- What color do You want to paint the button (R, B, G, A)
- surface.DrawRect( 0, 0, Landung_Hoth:GetWide(), Landung_Hoth:GetTall() )
- end
- Landung_Hoth.DoClick = function()
- surface.PlaySound( "UI/buttonclick.wav" )
- RunConsoleCommand( "say", "/akt Landung auf Hoth" )
- Menu:Close()
- end
- local Landung_Asteroid = vgui.Create( "DButton", Menu ) // Create the button and parent it to the frame
- Landung_Asteroid:MakePopup()
- Landung_Asteroid:SetText( "Asteroid" ) // Set the text on the button
- Landung_Asteroid:SetTextColor( Color( 255, 255, 255 ) )
- Landung_Asteroid:SetPos( ScrW() * 0.43, ScrH() * 0.643 ) // Set the position on the frame
- Landung_Asteroid:SetSize( ScrW() / 8, ScrH() / 37 ) // Set the size
- Landung_Asteroid:SetFont( "Trebuchet24" )
- Landung_Asteroid.Paint = function() -- The paint function
- surface.SetDrawColor( 0, 0, 0, 255 ) -- What color do You want to paint the button (R, B, G, A)
- surface.DrawRect( 0, 0, Landung_Asteroid:GetWide(), Landung_Asteroid:GetTall() )
- end
- Landung_Asteroid.DoClick = function()
- surface.PlaySound( "UI/buttonclick.wav" )
- RunConsoleCommand( "say", "/akt Landung auf der Asteoriden Basis" )
- Menu:Close()
- end
- local Landung_Illum = vgui.Create( "DButton", Menu ) // Create the button and parent it to the frame
- Landung_Illum:MakePopup()
- Landung_Illum:SetText( "Illum" ) // Set the text on the button
- Landung_Illum:SetTextColor( Color( 255, 255, 255 ) )
- Landung_Illum:SetPos( ScrW() * 0.43, ScrH() * 0.692 ) // Set the position on the frame
- Landung_Illum:SetSize( ScrW() / 8, ScrH() / 37 ) // Set the size
- Landung_Illum:SetFont( "Trebuchet24" )
- Landung_Illum.Paint = function() -- The paint function
- surface.SetDrawColor( 0, 0, 0, 255 ) -- What color do You want to paint the button (R, B, G, A)
- surface.DrawRect( 0, 0, Landung_Illum:GetWide(), Landung_Illum:GetTall() )
- end
- Landung_Illum.DoClick = function()
- surface.PlaySound( "UI/buttonclick.wav" )
- RunConsoleCommand( "say", "/akt Landung auf Illum" )
- Menu:Close()
- end
- local Landung_Endor = vgui.Create( "DButton", Menu ) // Create the button and parent it to the frame
- Landung_Endor:MakePopup()
- Landung_Endor:SetText( "Endor" ) // Set the text on the button
- Landung_Endor:SetTextColor( Color( 255, 255, 255 ) )
- Landung_Endor:SetPos( ScrW() * 0.43, ScrH() * 0.741 ) // Set the position on the frame
- Landung_Endor:SetSize( ScrW() / 8, ScrH() / 37 ) // Set the size
- Landung_Endor:SetFont( "Trebuchet24" )
- Landung_Endor.Paint = function() -- The paint function
- surface.SetDrawColor( 0, 0, 0, 255 ) -- What color do You want to paint the button (R, B, G, A)
- surface.DrawRect( 0, 0, Landung_Endor:GetWide(), Landung_Endor:GetTall() )
- end
- Landung_Endor.DoClick = function()
- surface.PlaySound( "UI/buttonclick.wav" )
- RunConsoleCommand( "say", "/akt Landung auf Endor" )
- Menu:Close()
- end
- end
- local alreadyopen = false
- hook.Add( "Tick", "landingmenutoggle", function()
- if (input.IsKeyDown(KEY_K) and alreadyopen == false) then
- landingmenu()
- alreadyopen = true
- timer.Simple(1,function()
- alreadyopen = false
- end)
- end
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement