Welcome, Guest. Please login or register.
Did you miss your activation email?
September 19, 2024, 09:21:26 PM
Home Help Login Register
News: Zombie Master 2 discussion

Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Extra equipment menu column
Pages: [1]
Author Topic: Extra equipment menu column  (Read 9138 times)
Shifty Pete
Poster

Posts: 74


Shifty_Pete.exe


« on: January 06, 2012, 08:26:12 AM »

How do I widen the equipment menu so it fits 3 columns of items rather than 2? I've seen it done on other servers and would like to know how you code it.
« Last Edit: January 06, 2012, 08:34:31 AM by Shifty Pete »

http://www.steamcommunity.com/id/shifty_pete
Shifty Pete
Poster

Posts: 74


Shifty_Pete.exe


« Reply #1 on: January 10, 2012, 04:38:44 PM »

Thanks so much for the help guys >_>

http://www.steamcommunity.com/id/shifty_pete
Tommynator
Poster

Posts: 173

Tommynator is a traitor!


« Reply #2 on: January 10, 2012, 07:38:17 PM »

Are you good with derma? The file is cl_equip.lua
Tommynator
Poster

Posts: 173

Tommynator is a traitor!


« Reply #3 on: January 11, 2012, 04:27:38 PM »

Just made it on the beta, I think I'll release it when GMod 13 is out. It looks good, heh (I know it's in french, it's using translations)

sniperduck
Poster

Posts: 178


|:NxS:| Staff! :D


« Reply #4 on: January 11, 2012, 08:01:26 PM »

LEEK LEEK LEEK
...gmod13

The karma bar.


and nice tommy
...brb stealing idea

Overtime these forums have made me an asshole. ;D (TTT subforum)
|:NxS:| Custom TTT Server: source.nxs-gaming.com:27016
|:NxS:| Vanilla TTT Server: source.nxs-gaming.com:27016
|:NxS:| Fretta: <COMING SOON>
Tommynator
Poster

Posts: 173

Tommynator is a traitor!


« Reply #5 on: January 11, 2012, 08:07:24 PM »

-snip-
« Last Edit: January 11, 2012, 08:09:03 PM by Tommynator »
nrich588
Poster

Posts: 253

WzG Owner


« Reply #6 on: January 11, 2012, 10:30:19 PM »

Is one of the items on there a burn potato?
Tommynator
Poster

Posts: 173

Tommynator is a traitor!


« Reply #7 on: January 11, 2012, 10:43:53 PM »

Is one of the items on there a burn potato?

Lolwat? What is this?
Shifty Pete
Poster

Posts: 74


Shifty_Pete.exe


« Reply #8 on: January 11, 2012, 11:06:34 PM »

I'm pretty sure it's a parachute.

I haven't got any experience with derma. Could you please tell me exactly what to edit in cl_equip.lua to add another column?

(Also how did you get TTT working in the beta? It's all broken for me.)
« Last Edit: January 11, 2012, 11:18:22 PM by Shifty Pete »

http://www.steamcommunity.com/id/shifty_pete
Tommynator
Poster

Posts: 173

Tommynator is a traitor!


« Reply #9 on: January 12, 2012, 12:28:45 PM »

I'm pretty sure it's a parachute.

Yeah


I haven't got any experience with derma. Could you please tell me exactly what to edit in cl_equip.lua to add another column?

The object is DFrame :

local dframe = vgui.Create("DFrame")
local w, h = 500, 350
dframe:SetSize(w, h)

You need to increase the size first
Then there's dlist object

local dlist = vgui.Create("EquipSelect", dequip)
dlist:SetPos(0,0)
dlist:SetSize(154, h - 70)

Adjust the size to add a column.


(Also how did you get TTT working in the beta? It's all broken for me.)

Fixed it, there are only a few bugs now. The menu was completely broken :V
http://steamcommunity.com/id/johnnyboukz/screenshot/613847325814297623/?
Pages: [1]
Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Extra equipment menu column « previous next »
Jump to:  


Login with username, password and session length

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines
Page created in 0.009 seconds with 19 queries.