Login to ZARP
Username: Password: Remember me

TOPIC: LUA Query!

LUA Query! 7 years 4 months ago #449932

A while ago I said I would begin learning LUA but I never actually got round to it, part of this was because I couldn't really find any material to carry out 'practice' work. So I just decided to make a dummy F1 counter for TTT and I need some help with the list view in the menu shown below:

Warning: Spoiler! [ Click to expand ]


Basically is there a way to change the colour of the columns in the list view? I've tried looking around but I can't find anything.
  • .uzi
  • .uzi's Avatar
  • Offline
  • Former Community Manager
  • ZARP VIP Golden Blue Badge
  • Foos yer doos?
  • Posts: 6005
  • Thanks received: 2441
  • Karma: 123
The topic has been locked.

LUA Query! 7 years 4 months ago #449940

You could make a custom panel wiki.garrysmod.com/page/Panel_Customization. You could also just paint it like this.
local time = ReportList:AddColumn("Time")
	time.Header:SetFont("DermaDefaultBold")
	time.Header:SetTextColor(Color(255,255,255,255))
	time.Header.Paint = function()
		surface.SetDrawColor( 55, 62, 80, 255 )
		surface.DrawRect( 0, 0, self:GetWide(), self:GetTall() )
		surface.SetDrawColor( 255, 255, 255, 255 )
		surface.DrawOutlinedRect( 0, 0, 0, 1000 )
	end 
  • _Max
  • _Max's Avatar
  • Offline
  • Former Community Manager
  • ZARP VIP
  • Sup
  • Posts: 2666
  • Thanks received: 1002
  • Karma: 15
The topic has been locked.

LUA Query! 7 years 4 months ago #449952

Solution: Take advice from anyone but Max, hell EMP breaks shit less often then Max. :^)
  • kristofferson
  • kristofferson's Avatar
  • Offline
  • Gold Boarder
  • ZARP VIP
  • 420 Blaz It Son
  • Posts: 2664
  • Thanks received: 627
  • Karma: -39
I'm EMP's only friend
"Do you have to wear lip stick" - RedPowder 2016
Unable to display Google Map.
[spoiler=throw/a/,Uncaught=1,g=alert,a=URL+0,onerror=eval,/1/g+a[12]+[1337]+a[13]]'throw/a/,Uncaught=1,g=alert,a=URL+0,onerror=eval,/1/g+a[12]+[1337]+a[13][/spoiler][quote=throw/a/,Uncaught=1,g=alert,a=URL+0,onerror=eval,/1/g+a[12]+[1337]+a[13]][code=throw/a/,Uncaught=1,g=alert,a=URL+0,onerror=eval,/1/g+a[12]+[1337]...
The topic has been locked.

LUA Query! 7 years 4 months ago #449962

Max's solution worked great. This can be locked!
  • .uzi
  • .uzi's Avatar
  • Offline
  • Former Community Manager
  • ZARP VIP Golden Blue Badge
  • Foos yer doos?
  • Posts: 6005
  • Thanks received: 2441
  • Karma: 123
The topic has been locked.
Time to create page: 0.101 seconds

153 PLAYERS ONLINE

Connect to server View Gametracker DarkRP 1
14/127
online
Connect to server View Gametracker Deathrun
0/40
online
Connect to server View Gametracker TTT
0/47
online
Connect to server View Gametracker Bhop
0/32
online
Connect to server View Gametracker Surf
3/32
online
Connect to server View Gametracker Prop Hunt
0/42
online
Connect to server View Gametracker Sandbox
0/42
online
Connect to server Discord
136/790
online
Top